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

busybox image name is hardcoded in VolumePermissionEnricher class, need to make it as config #891

Closed
kumar-cloud opened this issue Sep 8, 2021 · 4 comments · Fixed by #892
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kumar-cloud
Copy link
Contributor

kumar-cloud commented Sep 8, 2021

Description

busybox image name is hardcoded in VolumePermissionEnricher.java Line 115.
Now a days every one have their own ECR registries maintained.Few people are using Dockerhub pro version to pull images.
Due to this , we are getting rate limiting issue from Dockerhub. So Please make this image name as config for enricher.

Where is this code :

return new ContainerBuilder()
                        .withName(ENRICHER_NAME)
                        .withImage("busybox")
                        .withImagePullPolicy("IfNotPresent")
                        .withCommand(createChmodCommandArray(mountPoints))
                        .withVolumeMounts(createMounts(mountPoints))
                        .build();

Thanks to @rohanKanojia for providing hint on fix.
How to fix:
Maybe we can add another field in enricher configuration to override image name: https://github.com/eclipse/jkube/blob/master/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/VolumePermissionEnricher.java#L57

Info

  • Eclipse JKube version : master
  • Maven version (mvn -v) : Apache Maven 3.6.3

  • Kubernetes / Red Hat OpenShift setup and version :

  • If it's a bug, how to reproduce :

  • Use Dockerhub as registry without credentials. recently Dockerhub has introduced RateLimiting for Pulling images.

@manusa
Copy link
Member

manusa commented Sep 8, 2021

Hi @kumar-cloud,

Thanks for reporting.

Maybe we can add another field in enricher configuration to override image name: https://github.com/eclipse/jkube/blob/master/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/VolumePermissionEnricher.java#L57

Yes, this is exactly what needs to be done. Would you be interested in contributing a fix?

@kumar-cloud
Copy link
Contributor Author

kumar-cloud commented Sep 8, 2021 via email

@rohanKanojia
Copy link
Member

@kumar-cloud : We have this webpage regarding contributing to project[0]. Please review it and see if it helps(You're also welcome to provide feedback regarding improvements since you would have a fresh perspective).

In case of any doubt, you can always reach out to us on Gitter Channel[1] (like you previously did). Our channel is usually active during IST/CET timezones.

[0] https://www.eclipse.org/jkube/contributing
[1] https://gitter.im/eclipse/jkube

@kumar-cloud
Copy link
Contributor Author

kumar-cloud commented Sep 9, 2021 via email

@manusa manusa added this to the 1.5.0 milestone Sep 14, 2021
@manusa manusa added the enhancement New feature or request label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants