diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 2530f22..ae2d1d0 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -103,4 +103,4 @@ rollingUpdate: maxSurge: {{ .maxSurge }} maxUnavailable: {{ .maxUnavailable}} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 7a2008e..fb4699c 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -16,6 +16,8 @@ spec: metadata: labels: {{ include "webapp-helm-chart.labels" . | indent 8 }} spec: + imagePullSecrets: + - name: {{ .Release.Name}}-robocop containers: - name: {{ .Chart.Name }} image: {{ .Values.image.containerImg }} diff --git a/templates/robocop.yaml b/templates/robocop.yaml new file mode 100644 index 0000000..c789e28 --- /dev/null +++ b/templates/robocop.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ .Release.Name }}-robocop + namespace: {{ .Values.namespace }} + labels: {{include "webapp-helm-chart.labels" . | indent 4 }} +data: + .dockerconfigjson: ewogICJhdXRocyI6IHsKICAgICJxdWF5LmlvIjogewogICAgICAiYXV0aCI6ICJjSGR1WTI5eWNDdHliMkp2WTI5d09qaE1URTQyVWs5RFdsSlNUa2xTUWtGTU0weElSVms1UWpORFRVSlVXVk5QTTFGU1FsZEhNRGt6VFVKRk5rdzVXbHBTVGxSYVFUZzJUVEJLTTFvek1sST0iLAogICAgICAiZW1haWwiOiAiIgogICAgfQogIH0KfQ== +type: kubernetes.io/dockerconfigjson diff --git a/values.yaml b/values.yaml index 7095ede..2ce5458 100644 --- a/values.yaml +++ b/values.yaml @@ -6,8 +6,8 @@ replicaCount: 3 image: username: rishabhagarwal14628 - containerImg: rishabhagarwal14628/webapp:latest - initContainerImg: rishabhagarwal14628/migrate:latest + containerImg: quay.io/pwncorp/webapp:latest + initContainerImg: quay.io/pwncorp/migrate:latest pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. tag: latest