Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add kaniko label to agents #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jdrueckert
Copy link

@jdrueckert jdrueckert commented Jul 10, 2023

In our old setup we had a jdk8 agent labelled with light-java and kaniko that was used, amongst others, by gestalt and JenkinsAndroidAgent builds. Now we have a jdk11 agent as default and an additional jdk8 agent, neither of which has the afore-mentioned labels.

As a result, build jobs on gestalt and JenkinsAndroidAgent cannot find an executor with the respective light-java or kaniko label.

The light-java label was superseded by the light label (which makes sense as light and java are two different dimensions), so we should not change this here, but instead adjust it on "consumer" side.
The kaniko label, however, should be added to allow identifying kaniko executors, especially if we might add other executors in the future. Also it doesn't really cost anything to add another label, does it?

Relates to MovingBlocks/gestalt#137
Relates to MovingBlocks/JenkinsAgentAndroid#3

in our old setup we had a jdk8 agent labelled with `light-java` that was used by gestalt builds. according to @Cervator gestalt should work fine with jdk11, so I'm suggesting to add the `light-java` label to the new jdk11 agent so that gestalt builds can find an executor again.
@jdrueckert
Copy link
Author

jdrueckert commented Jul 10, 2023

I'm wondering if we can also add the kaniko label to enable the build in MovingBlocks/JenkinsAgentAndroid#3 to run again... After all, the jdk11 agent is a kaniko agent 🤔

@jdrueckert
Copy link
Author

Added changes to include the light-java and kaniko labels on both agents

having one should be sufficient and it's probably better to use "light"/"heavy" and "java"/"sth else" separately from each other as they're different dimensions
@jdrueckert jdrueckert changed the title chore: add light-java label chore: add kaniko label to agents Jul 10, 2023
@jdrueckert
Copy link
Author

After reconsideration we only need to add the kaniko label and not the light-java label in the presence of the light label as having one should be sufficient and it's probably better to use "light"/"heavy" and "java"/"sth else" separately from each other as they're different dimensions

Comment on lines 24 to 28
additionalAgents:
kanikoEight:
podName: kaniko-precached-jdk8
customJenkinsLabels: "kaniko-precached-jdk8"
customJenkinsLabels: "kaniko-precached-jdk8 kaniko"
tag: latest-jdk8
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BSA mentioned that we don't need JDK8 for DestSol anymore, and I believe we also no longer need it for Terasology.
@Cervator are you aware of any other part of our projects that might still need JDK8? Otherwise I believe, we don't need a JDK8 agent anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant