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: Implement parameter to set image repository (#69) #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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
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
Loading