bcgov / cas-postgres

Postgres container image intended for OpenShift and general usage
Apache License 2.0
2 stars 0 forks source link

Export patroni image data from cas-postgres values.yaml for reuse in parent charts #115

Closed dleard closed 1 year ago

dleard commented 2 years ago

It is possible for a parent chart to use values from a subchart if the subchart's values.yaml has an exports field at the root. https://helm.sh/docs/topics/charts/#importing-child-values-via-dependencies

It would be helpful to reuse the patroni image from the cas-postgres repo in the charts that consume it as a subchart. Besides ease of use, this helps to ensure that the image we're using in cas-postgres is what is being used in the parent consuming the subchart. If we hardcode image data in the parent, and change image data in cas-postgres, it's possible to miss changes that may contain important security updates.

To do this add this to the cas-postgres values.yaml.

exports:
  patroni_image:
    repository: <repository>
    pullPolicy: <policy>
    tag: <tag>
dleard commented 1 year ago

@pbastia closing this as we want to move away from cas-postgres and start using the operator