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

chore: update imagePullSecrets for quay.io registry private repositories #18

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ rollingUpdate:
maxSurge: {{ .maxSurge }}
maxUnavailable: {{ .maxUnavailable}}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 9 additions & 0 deletions templates/robocop.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down