Skip to content

Commit

Permalink
feat: Implement parameter to set image repository (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMarusenko committed Nov 7, 2024
1 parent 8021b07 commit fecc91f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ A Helm chart for KubeRocketCI Headlamp
| fullnameOverride | string | `""` | Overrides the full name of the chart |
| global.dnsWildCard | string | `nil` | a cluster DNS wildcard name |
| global.platform | string | `"kubernetes"` | platform type that can be "kubernetes" or "openshift" |
| 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/edp-headlamp"` | KubeRocketCI headlamp Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/edp-headlamp) |
| image.tag | string | `nil` | KubeRocketCI headlamp Docker image tag. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/edp-headlamp/tags) |
| imagePullSecrets | list | `[]` | An optional list of references to secrets in the same namespace to use for pulling any of the images used |
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 @@ -29,7 +29,7 @@ spec:
- name: {{ include "headlamp.name" . }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
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.image.pullPolicy }}
{{ if .Values.config.oidc.enabled }}
env:
Expand Down
4 changes: 3 additions & 1 deletion deploy-templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ global:
platform: "kubernetes"

image:
# -- Set the image registry, default to Docker Hub; can be customized to use an alternative provider
registry: "docker.io"
# -- KubeRocketCI headlamp Docker image name. The released image can be found on [Dockerhub](https://hub.docker.com/r/epamedp/edp-headlamp)
repository: epamedp/edp-headlamp
# -- If not defined then .Chart.AppVersion is used
Expand Down Expand Up @@ -108,7 +110,7 @@ ingress:
tls: []
# - secretName: chart-example-tls
# hosts:
# - portal-edp.example.com
# - portal-krci.example.com
# -- Defines the base URL for the portal.
# -- If hosts not defined the will create by pattern "portal-[namespace].[global DNS wildcard]"
host: ""
Expand Down

0 comments on commit fecc91f

Please sign in to comment.