Skip to content

Commit fa3f6ef

Browse files
authored
Added chart to docker image version sync in helm (#25)
1 parent c9e52a4 commit fa3f6ef

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ You can customize the values of the helm deployment by using the following Value
3333
| `nameOverride` | Overrides release name | `""` |
3434
| `fullnameOverride` | Overrides release fullname | `""` |
3535
| `image.repository` | Container image repository | `emberstack/kubernetes-reflector` |
36-
| `image.tag` | Container image tag | `latest` |
37-
| `image.pullPolicy` | Container image pull policy | `Always` if `image.tag` is `latest`, else `IfNotPresent`|
36+
| `image.tag` | Container image tag | `Same as chart version` |
37+
| `image.pullPolicy` | Container image pull policy | `IfNotPresent` |
3838
| `extensions.certManager.enabled` | `cert-manager` addon | `true` |
3939
| `configuration.logging.minimumLevel` | Logging minimum level | `Information` |
4040
| `rbac.enabled` | Create and use RBAC resources | `true` |

helm/reflector/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The configuration parameters in this section control the resources requested and
2424
| `nameOverride` | Overrides release name | `""` |
2525
| `fullnameOverride` | Overrides release fullname | `""` |
2626
| `image.repository` | Container image repository | `emberstack/kubernetes-reflector` |
27-
| `image.tag` | Container image tag | `latest` |
28-
| `image.pullPolicy` | Container image pull policy | `Always` if `image.tag` is `latest`, else `IfNotPresent`|
27+
| `image.tag` | Container image tag | `Same as chart version` |
28+
| `image.pullPolicy` | Container image pull policy | `IfNotPresent` |
2929
| `extensions.certManager.enabled` | `cert-manager` addon | `true` |
3030
| `configuration.logging.minimumLevel` | Logging minimum level | `Information` |
3131
| `rbac.enabled` | Create and use RBAC resources | `true` |

helm/reflector/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ spec:
2222
spec:
2323
containers:
2424
- name: {{ .Chart.Name }}
25+
{{- if .Values.image.tag }}
2526
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
27+
{{- else }}
28+
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
29+
{{- end }}
2630
imagePullPolicy: {{ .Values.image.pullPolicy }}
2731
env:
2832
- name: ES_Reflector__Extensions__CertManager__Enabled

helm/reflector/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
image:
66
repository: emberstack/es.kubernetes.reflector
7-
tag: latest
8-
pullPolicy: Always
7+
tag: ""
8+
pullPolicy: IfNotPresent
99

1010
nameOverride: ""
1111
fullnameOverride: ""

0 commit comments

Comments
 (0)