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

Builder annotation support #5104

Merged
merged 3 commits into from
Jan 26, 2024
Merged

Conversation

rodcloutier
Copy link
Contributor

@rodcloutier rodcloutier commented Jan 25, 2024

This PR proposes to add the possibility to configure annotation on the build pod.

This was required to allow build pods to properly execute in the context of using Buildah in an AppArmor enabled Kubernetes cluster.

Also included are a few tweak encountered while running the operator out of cluster.

Release Note

Add possibility to use custom annotations on builder pods.

Fixes #5106

@rodcloutier
Copy link
Contributor Author

I am struggling to find any place to insert test for this enhancement. Could anyone chime in?

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

Please, open separate PRs in order to discuss each different topic separately. Regarding this specific feature, LGTM. For testing, please, have a look at this example:

func TestBuilderWithNodeSelector(t *testing.T) {

pkg/apis/camel/v1/common_types.go Outdated Show resolved Hide resolved
pkg/cmd/operator/operator.go Outdated Show resolved Hide resolved
pkg/cmd/operator/operator.go Outdated Show resolved Hide resolved
pkg/controller/integrationkit/build.go Outdated Show resolved Hide resolved
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 34.8% to 35.3% (+0.5%)

Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 34.8% to 35.3% (+0.5%)

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

+1 for the controller test. That's the way to improve quality! Thanks!

Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 34.8% to 35.6% (+0.8%)

@squakez squakez merged commit ec9406b into apache:main Jan 26, 2024
14 of 16 checks passed
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.

Add possibility to configure annotation for the builder pods
3 participants