-
Notifications
You must be signed in to change notification settings - Fork 65
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(charts): add global.imageRegistry parameter #227
base: develop
Are you sure you want to change the base?
Conversation
I tried to force push to re-run the CI job, it seems to have failed before installing the chart in the integration test. |
I suspect we need something like this: https://github.com/openebs/lvm-localpv/pull/357/files |
CC @niladrih |
CI check fails due to CI issue. Fix: #229. |
@LKummer could you please rebase your branch? The CI should run better after the recent changes. |
Add global.imageRegistry option overridden by localpv.image.registry and helperPod.image.registry for localpv and helper Pod respectively. Fix registry options requiring a trailing slash while still supporting a trailing slash to avoid breaking existing configurations. Signed-off-by: Lior Friedman <[email protected]>
Signed-off-by: Lior Friedman <[email protected]>
Signed-off-by: Lior Friedman <[email protected]>
Thank you @niladrih, I've rebased my branch. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #227 +/- ##
===========================================
- Coverage 37.91% 37.35% -0.57%
===========================================
Files 36 1 -35
Lines 3373 779 -2594
===========================================
- Hits 1279 291 -988
+ Misses 2012 479 -1533
+ Partials 82 9 -73
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
This would be good to have on all openebs charts
@@ -45,7 +45,7 @@ spec: | |||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | |||
containers: | |||
- name: {{ template "localpv.fullname" . }} | |||
image: "{{ .Values.localpv.image.registry }}{{ .Values.localpv.image.repository }}:{{ .Values.localpv.image.tag }}" | |||
image: "{{ with .Values.localpv.image.registry | default .Values.global.imageRegistry | trimSuffix "/" }}{{ . }}/{{ end }}{{ .Values.localpv.image.repository }}:{{ .Values.localpv.image.tag }}" |
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.
nit: a function in helpers might be good to have here
Thanks for this change @LKummer. I'll merge when you resolve the review conversation (as in click on the 'Resolve conversation' button, up to you if you'll take the suggestion or not). |
Pull Request template
Why is this PR required? What issue does it fix?:
Fixes #203.
What this PR does?:
global.imageRegistry
Helm parameter for specifying an image registry to be used for all images. It is overridden bylocalpv.image.registry
andhelperPod.image.registry
when specified./
, while still supporting a trailing/
to avoid breaking existing configurations.Does this PR require any upgrade changes?:
No.
If the changes in this PR are manually verified, list down the scenarios covered::
global.imageRegistry
set without trailing/
.global.imageRegistry
andlocalpv.image.registry
set without trailing/
.global.imageRegistry
andhelperPod.image.registry
set without trailing/
.global.imageRegistry
,localpv.image.registry
andhelperPod.image.registry
set without trailing/
.localpv.image.registry
set with trailing/
.helperPod.image.registry
set with trailing/
.Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
No.
Checklist:
<type>(<scope>): <subject>