-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Store push secret correctly for Connect Build with Buildah #12158
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lukas Kral <[email protected]>
cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.java
Outdated
Show resolved
Hide resolved
scholzj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW: A unit test might be nice for this as well?
Signed-off-by: Lukas Kral <[email protected]>
I guess ideally both for the volume mount and the env var. As it seems a bit lacking the coverage. |
|
Yeah I will add more tests for those methods. I saw that they are not covered. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12158 +/- ##
============================================
- Coverage 74.76% 74.76% -0.01%
- Complexity 6618 6625 +7
============================================
Files 377 377
Lines 25334 25353 +19
Branches 3396 3400 +4
============================================
+ Hits 18942 18954 +12
- Misses 5006 5011 +5
- Partials 1386 1388 +2
🚀 New features to boost your workflow:
|
… volumemounts, and envvars Signed-off-by: Lukas Kral <[email protected]>
Signed-off-by: Lukas Kral <[email protected]>
|
@scholzj I added UTs for both Kaniko and Buildah Volumes, VolumeMounts, and EnvVars. Please have a look if it's better now or you want to test it differently. Thanks. |
scholzj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the test seem to be failing. Not entirely sure why ...
cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaConnectBuildTest.java
Outdated
Show resolved
Hide resolved
cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaConnectBuildTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lukas Kral <[email protected]>
|
/gha run pipeline=regression,fg-regression |
|
⏳ System test verification started: link The following 6 job(s) will be executed:
Tests will start after successful build completion. |
|
🎉 System test verification passed: link |
|
/gha run pipeline=regression-fg |
|
⏳ System test verification started: link The following 6 job(s) will be executed:
Tests will start after successful build completion. |
|
❌ System test verification failed: link |
|
🎉 System test verification passed: link |
ppatierno
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left a couple of suggestions but feel free to ignore them if you don't agree ;-)
cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.java
Outdated
Show resolved
Hide resolved
cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaConnectBuild.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lukas Kral <[email protected]>
|
/gha run pipeline=regression,regression-fg |
|
⏳ System test verification started: link The following 12 job(s) will be executed:
Tests will start after successful build completion. |
|
❌ System test verification failed: link |
|
❌ System test verification failed: link |
Type of change
Description
This PR fixes issue with not functional push secret in case that Buildah is used in Connect Build (and the particular feature gate).
The push secret wasn't configured correctly at all, this way we will mount it to one place and reference it by
REGISTRY_AUTH_FILEenv variable (so we will not have to pass it through option in every Buildah command).Fixes #12157
Checklist