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

feat: update global image secrets #258

Merged
merged 5 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
15 changes: 9 additions & 6 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ spec:
labels:
{{- include "testkube-cloud-api.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
Expand Down
15 changes: 9 additions & 6 deletions charts/testkube-cloud-api/templates/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
serviceAccountName: {{ include "testkube-cloud-api.serviceAccountName" . }}
securityContext: {{ include "testkube-cloud-api.podSecurityContext" . | nindent 8 }}
containers:
Expand Down
15 changes: 9 additions & 6 deletions charts/testkube-cloud-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ spec:
labels:
{{- include "testkube-cloud-ui.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 3 additions & 3 deletions charts/testkube-enterprise/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
version: 2.1.120
- name: dex
repository: file://./charts/dex
version: 0.19.1-5
version: 0.19.1-6
- name: mongodb
repository: file://./charts/mongodb
version: 16.2.1-1
Expand All @@ -26,5 +26,5 @@ dependencies:
- name: minio
repository: file://./charts/minio
version: 14.8.3-2
digest: sha256:b6fbe7cb944ce37c14a965350b09c8377f43fcbbf0a02135edb8251cdf231648
generated: "2025-01-14T13:14:23.484708618Z"
digest: sha256:b071cf70170326b315e92cfd28ae76ba70071dcf25cc4328c7b0013120f37772
generated: "2025-01-14T16:38:19.9646+02:00"
2 changes: 1 addition & 1 deletion charts/testkube-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
repository: https://kubeshop.github.io/helm-charts
condition: testkube-agent.enabled
- name: dex
version: 0.19.1-5
version: 0.19.1-6
repository: file://./charts/dex
condition: dex.enabled
- name: mongodb
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-enterprise/charts/dex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: dex
version: 0.19.1-5
version: 0.19.1-6
appVersion: "2.41.1"
kubeVersion: ">=1.14.0-0"
description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ spec:
spec:
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
serviceAccountName: {{ include "dex.serviceAccountName" . }}
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
Expand Down
15 changes: 9 additions & 6 deletions charts/testkube-logs-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ spec:
labels:
{{- include "testkube-log-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
serviceAccountName: {{ include "testkube-log-service.serviceAccountName" . }}
securityContext: {{ include "testkube-logs-service.podSecurityContext" . | nindent 8 }}
containers:
Expand Down
15 changes: 9 additions & 6 deletions charts/testkube-worker-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ spec:
labels:
{{- include "testkube-worker-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- with (default .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
{{- range . }}
{{- if typeIsLike "map[string]interface {}" . }}
- name: {{ .name | quote }}
{{- else }}
- name: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
Expand Down
Loading