-
Notifications
You must be signed in to change notification settings - Fork 523
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
Add support for specifying imagePullSecrets
via resource configuration
#2467
Comments
imagePullSecrets
via resource configurationimagePullSecrets
via resource configuration
@rohanKanojia @manusa can i work on this? |
@Devashishbasu : This one would be a somewhat medium-level difficulty issue. You just need to add a field to ControllerResourceConfig and PodTemplateHandler would read that. A similar field |
@rohanKanojia i have added this code for reading imagePullSecrets in PodTemplateHandler is it okay or i have to modify it? or do i have to add test cases? public PodTemplateSpec getPodTemplate(ControllerResourceConfig config) {
List<String> imagePullSecrets = new ArrayList<>();
if (config.getImagePullSecrets() != null) {
for (String secret : config.getImagePullSecrets()) {
imagePullSecrets.add(new String(secret));
}
}
podTemplateSpec.setImagePullSecrets(imagePullSecrets);
} |
In order to complete this issue, you need to do this:
|
thankyou so much |
Hi @rohanKanojia, I have made all the changes ..how do I test these changes?? |
@Devashishbasu : Unit tests added to verify this change should pass. You can also verify by going to any demo project in
|
ok thanks |
Hi @rohanKanojia ...unit tests added to verify my changes have passed and when i am building hello-world from quickstarts/maven using mvn clean install its showing build success ...but when i am trying to run mvn k8s:resource then its showing this error please help |
@Devashishbasu : Which quickstart are you using? I meant running it like this: # Build project
$ mvn clean install
# Go to quickstart
$ cd quickstarts/maven/spring-boot
# Run kubernetes-maven-plugin
$ mvn k8s:resource -Pkubernetes |
@Devashishbasu : polite ping, are you still working on this issue? |
Hi rohan , no, I am not working on this issue |
@rohanKanojia, I am interested in working on this issue. Could you assign it to me? |
@arman-yekkehkhani : Thanks a lot for showing interest in fixing this issue. I had added some code pointers in #2467 (comment) If you need any help, Please don't hesitate to contact me on Eclipse JKube Gitter Channel. |
…s via resource configuration, issue eclipse-jkube#2467 Signed-off-by: arman-yekkehkhani <[email protected]>
…ce_generation.adoc, issue eclipse-jkube#2467 Signed-off-by: arman-yekkehkhani <[email protected]>
@arman-yekkehkhani : I see you've started working on this. Could you please create a draft PR? |
@rohanKanojia Hi Rohan, I created the PR. However, I am not sure how to implement the Gradle integration test. |
@arman-yekkehkhani : Could you please take a look at old pull requests for adding gradle integration test? #2533 |
…clipse-jkube#2467 Signed-off-by: arman-yekkehkhani <[email protected]>
@rohanKanojia Thank you so much! I added the integration test. Please have a look at it. |
…ass, issue eclipse-jkube#2467 Signed-off-by: arman-yekkehkhani <[email protected]>
Signed-off-by: arman-yekkehkhani <[email protected]>
…2467 Signed-off-by: arman-yekkehkhani <[email protected]>
…nfiguration (3133) feature(imagePullSecrets): Add support for specifying imagePullSecrets via resource configuration, issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]> --- feature(imagePullSecrets): add imagePullSecrets to _controller_resource_generation.adoc, issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]> --- Merge branch 'eclipse-jkube:master' into gh_2467-experimental --- feature(imagePullSecrets): add gradle plugin integration test, issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]> --- feature(imagePullSecrets): remove public access modifier from test class, issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]> --- feature(imagePullSecrets): add license, issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]> --- feature(imagePullSecrets): update CHANGELOG.md , issue #2467 Signed-off-by: arman-yekkehkhani <[email protected]>
Component
JKube Kit
Is your enhancement related to a problem? Please describe
This was asked by a user on Gitter chat:
As a user, If I want to specify
imagePullSecrets
for Deployment, I need to add them in resource fragment like this:https://github.com/eclipse/jkube/blob/5dc19d9563adb3c10a2ad1f30e8f404d5ca29ab9/quickstarts/maven/tomee/src/main/jkube/deployment.yaml#L26-L27
This option should also be exposed via controller resource configuration
Describe the solution you'd like
As a user, I want to specify imagePullSecrets in my pom.xml like this:
so that generated Deployment (or any other controller) contains specified imagePullSecrets
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: