diff --git a/charts/clair/templates/deployment.yaml b/charts/clair/templates/deployment.yaml index 12342a15..402ed6c7 100644 --- a/charts/clair/templates/deployment.yaml +++ b/charts/clair/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: {{- end }} initContainers: - name: pg-ready-wait - image: postgres:11.3 + image: "{{ .Values.postgres.image.repository}}:{{ .Values.postgres.image.tag}}" command: [ "sh", "-c", "until pg_isready -h {{ .Values.config.postgresHost }} -p {{ .Values.config.postgresPort }}; do echo waiting for database; sleep 1; done;"] diff --git a/charts/clair/values.yaml b/charts/clair/values.yaml index e0b207c9..751f9639 100644 --- a/charts/clair/values.yaml +++ b/charts/clair/values.yaml @@ -68,3 +68,8 @@ extraEnv: - name: CLAIR_MODE value: combo extraArgs: [] + +postgres: + image: + repository: quay.io/devtron/postgres + tag: 11.9