Skip to content

Commit

Permalink
feat: Implement parameter to set image repository (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMarusenko committed Nov 7, 2024
1 parent 3783dfa commit 54aa968
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ A Helm chart for KubeRocketCI Codebase Operator
| envs[0].value | string | `"360"` | |
| envs[1] | object | `{"name":"CODEBASE_BRANCH_MAX_CONCURRENT_RECONCILES","value":"3"}` | Maximum number of parallel reconciliation codebasebranches |
| global.platform | string | `"kubernetes"` | platform type that can be "kubernetes" or "openshift" |
| image.registry | string | `"docker.io"` | |
| image.repository | string | `"epamedp/codebase-operator"` | EDP codebase-operator Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator) |
| image.tag | string | `nil` | EDP codebase-operator Docker image tag. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator/tags) |
| imagePullPolicy | string | `"IfNotPresent"` | |
Expand Down
2 changes: 1 addition & 1 deletion deploy-templates/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
runAsNonRoot: true
containers:
- name: {{ .Values.name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
ports:
- containerPort: 9443
name: webhook-server
Expand Down
2 changes: 2 additions & 0 deletions deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
image:
# Image registry. Default to Docker Hub, but can be changed to another provider
registry: "docker.io"
# -- EDP codebase-operator Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator)
repository: epamedp/codebase-operator
# if not defined then .Chart.AppVersion is used
Expand Down

0 comments on commit 54aa968

Please sign in to comment.