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

feat: append imagePullSecrets to injected pods to support private registries #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yonatankahana
Copy link
Member

@yonatankahana yonatankahana commented Dec 10, 2022

The main problem here is that the secret may (and probably will) not be available in every namespace and not in the same name always. So I am still wondering if this is the right approach or the user should do it manually. Maybe it should be optional and not enabled by default(?). Maybe configurable with some annotations?

TODO:

  • Decide if this is the correct way
  • Implement patch functions
  • Add tests
  • Helm chart support
  • Add documentation

Close #49

@yonatankahana yonatankahana added area/injection Patch Injections area area/helm Helm chart area labels Dec 10, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 72.07% // Head: 73.22% // Increases project coverage by +1.15% 🎉

Coverage data is based on head (2d23f47) compared to base (7068686).
Patch coverage: 94.73% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   72.07%   73.22%   +1.15%     
==========================================
  Files           5        5              
  Lines         709      747      +38     
==========================================
+ Hits          511      547      +36     
- Misses        164      166       +2     
  Partials       34       34              
Impacted Files Coverage Δ
pkg/admission/admission.go 61.92% <66.66%> (+0.06%) ⬆️
pkg/inject/inject.go 93.53% <97.14%> (+0.43%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yonatankahana yonatankahana added the enhancement New feature or request label Feb 23, 2023
@mddavisjha
Copy link

As a note, we use https://github.com/titansoft-pte-ltd/imagepullsecret-patcher across our cluster so that everything gets our private registry imagepullsecret automatically injected into the deployments. K8TZ doesn't really have to do this, but if it does get added, I could have this injector do both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm chart area area/injection Patch Injections area enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k8tz sidecar container: pulling from private registry fails
3 participants