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

Support custom global.imageRegistry in migration job #152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gugu
Copy link

@gugu gugu commented Jan 12, 2025

There is a common standard to prefix dockerhub images with global.imageRegistry variable in case someone does not want/can not use dockerhub. Example: elastic/helm-charts#720

All dependent charts (postgres/redis) support this variable, chatwoot has an option as well, but busybox image is hardcoded for dockerhub. This change allows to use global.imageRegistry here as well

There is a common standard to prefix dockerhub images with global.imageRegistry variable in case someone does not want/can not use dockerhub. Example: elastic/helm-charts#720

All dependent charts (postgres/redis) support this variable, chatwoot has an option as well, but busybox image is hardcoded for dockerhub. This change allows to use global.imageRegistry here as well
Copy link
Member

@vishnu-narayanan vishnu-narayanan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gugu Thank you for the PR. Could you please address the minor review comments?

Also, please add the defaults in values.yaml file.

global:
  imageRegistry: ""

@@ -39,7 +39,7 @@ spec:
done;
echo "Database ready to accept connections." ;
- name: init-redis
image: busybox:1.28
image: "{{.Values.global.imageRegistry}}busybox:1.28"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image: "{{.Values.global.imageRegistry}}busybox:1.28"
image: "{{ .Values.global.imageRegistry | default "" }}busybox:1.28"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants