Skip to content

Commit

Permalink
feat: Implement parameter to set image repository (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMarusenko committed Nov 7, 2024
1 parent 0f2d4a1 commit 2736b5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ A Helm chart for KubeRocketCI Gerrit Operator
| global.openshift.deploymentType | string | `"deployments"` | Which type of kind will be deployed to Openshift (values: deployments/deploymentConfigs) |
| global.platform | string | `"openshift"` | platform type that can be "kubernetes" or "openshift" |
| groupMemberSyncInterval | string | `"30m"` | If not defined the exponential formula with the max value of 1hr will be used |
| image.registry | string | `"docker.io"` | Set the image registry, default to Docker Hub; can be customized to use an alternative provider |
| image.repository | string | `"epamedp/gerrit-operator"` | KubeRocketCI gerrit-operator Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/gerrit-operator) |
| image.tag | string | `nil` | KubeRocketCI gerrit-operator Docker image tag. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/gerrit-operator/tags) |
| imagePullPolicy | string | `"IfNotPresent"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ spec:
labels:
app: {{ .Values.gerrit.name }}
spec:
{{- if .Values.gerrit.imagePullSecrets}}
{{- if .Values.PullSecrets}}
imagePullSecrets:
{{- range .Values.gerrit.imagePullSecrets }}
{{- range .Values.PullSecrets }}
- {{. -}}
{{- end -}}
{{end}}
Expand All @@ -44,7 +44,7 @@ spec:
{{- with .Values.gerrit.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
image: {{.Values.gerrit.image}}:{{.Values.gerrit.version}}
image: {{.Values.}}:{{.Values.gerrit.version}}
imagePullPolicy: "{{ .Values.gerrit.imagePullPolicy }}"
name: {{ .Values.gerrit.name }}
ports:
Expand Down
2 changes: 1 addition & 1 deletion deploy-templates/templates/operator_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
containers:
- name: {{ .Values.name }}
# Replace this with the built image name
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
command:
- {{ .Values.name }}
Expand Down
4 changes: 3 additions & 1 deletion deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
image:
# -- Set the image registry, default to Docker Hub; can be customized to use an alternative provider
registry: "docker.io"
# -- KubeRocketCI gerrit-operator Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/gerrit-operator)
repository: epamedp/gerrit-operator
# -- if not defined then .Chart.AppVersion is used
Expand Down Expand Up @@ -83,7 +85,7 @@ gerrit:
tls: []
# - secretName: chart-example-tls
# hosts:
# - gerrit-edp.example.com
# - gerrit-krci.example.com

resources:
limits:
Expand Down

0 comments on commit 2736b5f

Please sign in to comment.