Skip to content

Fix helm image.repository to include image name #36

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

Closed
ron1 opened this issue Oct 22, 2021 · 6 comments · Fixed by #45 or #57
Closed

Fix helm image.repository to include image name #36

ron1 opened this issue Oct 22, 2021 · 6 comments · Fixed by #45 or #57
Labels
enhancement New feature or request

Comments

@ron1
Copy link

ron1 commented Oct 22, 2021

Fix helm image.repository to include image name to be consistent with relatedImages.*.repository which already includes image name. This change also allows the postgres-operator image name to be overridden which is a secondary benefit.

@jkatz
Copy link
Contributor

jkatz commented Oct 22, 2021

@ron1 Can you please provide an example?

@ron1
Copy link
Author

ron1 commented Oct 22, 2021

For example, relatedImages.postgres_13.repository value registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha includes image name crunchy-postgres-ha. But image.repository value registry.developers.crunchydata.com/crunchydata is missing image name postgres-operator. In this case, the image name is appended to image.repository value here:

image: "{{ .Values.image.repository }}/postgres-operator:{{ .Values.image.tag }}"
.

So, for related images, the helm repository value includes the image name but for the operator image, its helm repository value excludes the image name.

A simple fix would be to remove string /postgres-operator from line

image: "{{ .Values.image.repository }}/postgres-operator:{{ .Values.image.tag }}"
and append string /postgres-operator to line
repository: registry.developers.crunchydata.com/crunchydata
.

Does that make sense?

@jkatz jkatz added the enhancement New feature or request label Oct 26, 2021
@jkatz
Copy link
Contributor

jkatz commented Oct 26, 2021

@ron1 Yup that makes sense. That seems reasonable to do.

jkatz pushed a commit to jkatz/postgres-operator-examples that referenced this issue Nov 3, 2021
Provide ultimate flexibility by allowing user to just specify
the image itself. This avoids messy image repo / name / tag
stuff, and aligns more with convention.

closes CrunchyData#36
jkatz pushed a commit to jkatz/postgres-operator-examples that referenced this issue Nov 4, 2021
Provide ultimate flexibility by allowing user to just specify
the image itself. This avoids messy image repo / name / tag
stuff, and aligns more with convention.

closes CrunchyData#36
@jkatz jkatz closed this as completed in #45 Nov 4, 2021
jkatz added a commit that referenced this issue Nov 4, 2021
Provide flexibility by allowing user to just specify the image
itself. This avoids messy image repo / name / tag stuff, and
aligns more with convention.

closes #36
@ron1
Copy link
Author

ron1 commented Nov 17, 2021

@jkatz This issue is a bit orthogonal to the "related images" format and your "related images" patch which closed this issue. Instead, this issue focuses exclusively on the "postgres-operator" image format.

Currently, this chart hard-codes the image name to be "postgres-operator". I want the ability to change its image name to say "mirrored-postgres-operator" following the pattern Rancher uses when they bundle a third-party image with their product. An example of this Rancher approach is available here: https://github.com/rancher/rancher/releases/download/v2.5.11/rancher-images.txt.

Please consider re-opening this issue and applying the changes I proposed above.

Thanks.

@jkatz jkatz reopened this Nov 18, 2021
@jkatz
Copy link
Contributor

jkatz commented Nov 18, 2021

@ron1 Got it. That should be fairly easy to tackle.

jkatz pushed a commit to jkatz/postgres-operator-examples that referenced this issue Nov 18, 2021
This has the PGO image match the same format of the other
related images that can be loaded in via Helm.

close CrunchyData#36
@jkatz jkatz closed this as completed in #57 Nov 18, 2021
jkatz added a commit that referenced this issue Nov 18, 2021
This has the PGO image match the same format of the other
related images that can be loaded in via Helm.

close #36
@ron1
Copy link
Author

ron1 commented Nov 18, 2021

@jkatz Perfect! Thanks much!

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
2 participants