Skip to content

Commit

Permalink
Allow explicit setting of pullSecret for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWebb committed Oct 25, 2023
1 parent c607698 commit 53c29eb
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/hq/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: codetogether-hq
description: CodeTogether HQ provides advanced project insights for developers

type: application
version: 1.4.14
version: 1.4.15
appVersion: "2023.3.0"
kubeVersion: ">= 1.18.0"

Expand Down
8 changes: 4 additions & 4 deletions charts/hq/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ spec:
labels:
{{- include "codetogether.selectorLabels" . | nindent 8 }}
spec:
{{- if eq .Values.imageCredentials.enabled true }}
imagePullSecrets:
- name: {{ include "codetogether.fullname" . }}-pull-secret
{{- else if .Values.imageCredentials.pullSecret }}
{{- if .Values.imageCredentials.pullSecret }}
imagePullSecrets:
- name: {{ .Values.imageCredentials.pullSecret }}
{{- else if eq .Values.imageCredentials.enabled true }}
imagePullSecrets:
- name: {{ include "codetogether.fullname" . }}-pull-secret
{{- end }}
serviceAccountName: {{ include "codetogether.serviceAccountName" . }}
containers:
Expand Down
4 changes: 3 additions & 1 deletion charts/hq/templates/secret-pullimage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- if eq .Values.imageCredentials.enabled true }}
{{- if .Values.imageCredentials.pullSecret }}
# If using already configured secret, we don't need our own
{{- else if eq .Values.imageCredentials.enabled true }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/hq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ image:
#
imageCredentials:
# pullSecret: "my-customer-pull-secret"
# Configure credentials if using private Docker registry.
# Use pullSecret or configure credentials if using private Docker registry.
enabled: true
registry: hub.edge.codetogether.com
username: "my-customer-username"
Expand Down
2 changes: 1 addition & 1 deletion charts/live/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: codetogether
description: CodeTogether Live provides pair programming and collaborative coding

type: application
version: 1.4.13
version: 1.4.14
appVersion: "2023.2.0"
kubeVersion: ">= 1.18.0"

Expand Down
5 changes: 4 additions & 1 deletion charts/live/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ spec:
labels:
{{- include "codetogether.selectorLabels" . | nindent 8 }}
spec:
{{- if eq .Values.imageCredentials.enabled true }}
{{- if .Values.imageCredentials.pullSecret }}
imagePullSecrets:
- name: {{ .Values.imageCredentials.pullSecret }}
{{- else if eq .Values.imageCredentials.enabled true }}
imagePullSecrets:
- name: {{ include "codetogether.fullname" . }}-pull-secret
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion charts/live/templates/secret-pullimage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- if eq .Values.imageCredentials.enabled true }}
{{- if .Values.imageCredentials.pullSecret }}
# If using already configured secret, we don't need our own
{{- else if eq .Values.imageCredentials.enabled true }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
3 changes: 2 additions & 1 deletion charts/live/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ image:
# credentials provided by your Genuitec Sales Representative.
#
imageCredentials:
# Configure credentials if using private Docker registry.
# pullSecret: "my-customer-pull-secret"
# Use pullSecret or configure credentials if using private Docker registry.
enabled: false
registry: hub.edge.codetogether.com
username: "my-customer-username"
Expand Down

0 comments on commit 53c29eb

Please sign in to comment.