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 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
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.122
- 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:7cc2ad0564d9c0cbc33f6a5695ea82a2e746d5feb737f8a655a9c625a69ba5a8
generated: "2025-01-14T23:23:17.781228184+02:00"
digest: sha256:91be435ce892be5b37c027d6c1f8684bf06ac02bed5129fee98a9dd790b8ad83
generated: "2025-01-15T11:32:53.508422+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