Skip to content

Commit d2b301d

Browse files
daniil-nedostupMykolaMarusenko
authored andcommitted
chore: Add ImagePullSecrets field support (#190)
1 parent 6c39bc9 commit d2b301d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

deploy-templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ A Helm chart for KubeRocketCI Codebase Operator
3030
| 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) |
3131
| 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) |
3232
| imagePullPolicy | string | `"IfNotPresent"` | |
33+
| imagePullSecrets | list | `[]` | Optional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry |
3334
| jira.apiUrl | string | `"https://jiraeu-api.example.com"` | API URL for development |
3435
| jira.credentialName | string | `"ci-jira"` | Name of secret with credentials to Jira server |
3536
| jira.integration | bool | `false` | Flag to enable/disable Jira integration |

deploy-templates/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
serviceAccountName: edp-{{ .Values.name }}
2222
securityContext:
2323
runAsNonRoot: true
24+
{{- if .Values.imagePullSecrets }}
25+
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
26+
{{- end }}
2427
containers:
2528
- name: {{ .Values.name }}
2629
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}

deploy-templates/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ envs:
2121
- name: CODEBASE_BRANCH_MAX_CONCURRENT_RECONCILES
2222
value: "3"
2323
imagePullPolicy: "IfNotPresent"
24+
# -- Optional array of imagePullSecrets containing private registry credentials
25+
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
26+
imagePullSecrets: []
27+
# - name: regcred
2428

2529
resources:
2630
limits:

0 commit comments

Comments
 (0)