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: add config for a private registry #28

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 4 additions & 0 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{ if .Values.global.privateRegistry }}
image: "{{ .Values.global.privateRegistry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{ else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{ end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ENTERPRISE_MODE
Expand Down
8 changes: 8 additions & 0 deletions charts/testkube-cloud-api/templates/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ spec:
{{- end }}
initContainers:
- name: wait-for
{{ if .Values.global.privateRegistry }}
image: "{{ .Values.global.privateRegistry}}/mongo:6.0.5-jammy"
{{- else }}
image: mongo:6.0.5-jammy
{{- end }}
command:
- bash
- -c
Expand Down Expand Up @@ -51,7 +55,11 @@ spec:
{{- end }}
containers:
- name: migrations
{{ if .Values.global.privateRegistry }}
image: "{{ .Values.global.privateRegistry}}/{{ .Values.api.migrations.image.repository }}:{{ .Values.image.tag }}"
{{- else }}
image: {{ .Values.api.migrations.image.repository }}:{{ .Values.image.tag }}
{{- end }}
args:
- up
env:
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-cloud-api/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ spec:
{{- end }}
containers:
- name: minio
{{ if .Values.global.privateRegistry }}
image: {{ .Values.global.privateRegistry }}/{{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag | quote }}
{{ else }}
image: "{{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag }}"
{{ end }}
imagePullPolicy: {{ .Values.minio.image.pullPolicy }}
args:
- server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ metadata:
spec:
containers:
- name: wget
{{ if .Valuse.global.usePrivateRegistry}}
image: {{ .Values.global.registry.url }}/busybox
{{ else }}
image: busybox
{{ end }}
command: ['wget']
args: ['{{ include "testkube-cloud-api.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
4 changes: 4 additions & 0 deletions charts/testkube-cloud-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{ if .Valuse.global.privateRegistry }}
image: "{{ .Values.global.privateRegistry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{ else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{ end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-cloud-ui/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ metadata:
spec:
containers:
- name: wget
{{ if .Values.global.privateRegistry }}
image: "{{ .Values.global.privateRegistry }}/busybox"
{{ else }}
image: busybox
{{ end }}
command: ['wget']
args: ['{{ include "testkube-cloud-ui.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
2 changes: 2 additions & 0 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ global:
certManager:
# -- Certificate Issuer ref (only used if `provider` is set to `cert-manager`)
issuerRef: ""
# -- PrivateRegistry to use for all images
privateRegistry:
# -- Image pull secrets to use for testkube-cloud-api and testkube-cloud-ui
imagePullSecrets: []
ingress:
Expand Down
Loading