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 2da086f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ 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.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) |
| 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/codebase-operator"` | KubeRocketCI 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` | KubeRocketCI 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"` | |
| jira.apiUrl | string | `"https://jiraeu-api.example.com"` | API URL for development |
| jira.credentialName | string | `"ci-jira"` | Name of secret with credentials to Jira server |
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
8 changes: 5 additions & 3 deletions deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
image:
# -- EDP codebase-operator Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator)
# -- Set the image registry, default to Docker Hub; can be customized to use an alternative provider
registry: "docker.io"
# -- KubeRocketCI 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
# -- EDP codebase-operator Docker image tag. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator/tags)
# -- KubeRocketCI codebase-operator Docker image tag. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/codebase-operator/tags)
tag:
envs:
- name: RECONCILATION_PERIOD
Expand Down Expand Up @@ -46,6 +48,6 @@ jira:
# the continual collection of anonymized statistics, essential for informed decision-making and strategic
# platform enhancements. This feature respects user preferences, offering the choice to participate in shaping
# the platform's improvement initiatives while ensuring anonymity and data privacy.
# Read more about EDP telemetry here: https://epam.github.io/edp-install/developer-guide/telemetry/
# Read more about KubeRocketCI telemetry here: https://docs.kuberocketci.io/docs/developer-guide/telemetry/
# -- Flag to enable/disable telemetry
telemetryEnabled: true

0 comments on commit 2da086f

Please sign in to comment.