Commit 0a1d0d47 by orangedeng Committed by Alena Prokharchyk

Use repository for image name key in templates

In system-charts, we need to use the `repository` and `tag` to define container's image name. After that, we can collect them together and provide an images list we need for system charts.
parent a4979154
......@@ -47,7 +47,7 @@ The following table lists the configurable parameters of the external-dns chart
| `google.project` | When using the Google provider, specify the Google project (required when provider=google). | `""` |
| `google.serviceAccountSecret` | When using the Google provider, optionally specify the existing secret which contains credentials.json if necessary. | `""` |
| `google.serviceAccountKey` | When using the Google provider, optionally specify the service account key JSON file. Must be provided when no existing secret is used, in this case a new secret will be created holding this service account | `""` |
| `image.name` | Container image name (Including repository name if not `hub.docker.com`). | `registry.opensource.zalan.do/teapot/external-dns` |
| `image.repository` | Container image name (Including repository name if not `hub.docker.com`). | `registry.opensource.zalan.do/teapot/external-dns` |
| `image.pullPolicy` | Container pull policy. | `IfNotPresent` |
| `image.tag` | Container image tag. | `v0.5.9` |
| `image.pullSecrets` | Array of pull secret names | `[]` |
......
......@@ -25,7 +25,7 @@ spec:
{{- end }}
containers:
- name: {{ template "external-dns.name" . }}
image: {{ template "system_default_registry" . }}{{ .Values.image.name}}:{{ .Values.image.tag }}
image: {{ template "system_default_registry" . }}{{ .Values.image.repository}}:{{ .Values.image.tag }}
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
args:
{{- if .Values.logLevel }}
......
## Details about the image to be pulled.
image:
name: rancher/kubernetes-external-dns
repository: rancher/kubernetes-external-dns
tag: v0.5.11
pullSecrets: []
pullPolicy: IfNotPresent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment