Skip to content

Commit

Permalink
Get operator tag from .Chart.AppVersion (#166)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed May 28, 2022
1 parent 9db93b4 commit f212b1b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/kubevault-operator/README.md
Expand Up @@ -54,7 +54,7 @@ The following table lists the configurable parameters of the `kubevault-operator
| registryFQDN | Docker registry fqdn used to pull docker images Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | <code>""</code> |
| operator.registry | Docker registry used to pull KubeVault operator image | <code>kubevault</code> |
| operator.repository | KubeVault operator container image | <code>vault-operator</code> |
| operator.tag | KubeVault operator container image tag | <code>v0.7.0</code> |
| operator.tag | KubeVault operator container image tag | <code>""</code> |
| operator.resources | Compute Resources required by the operator container | <code>{}</code> |
| operator.securityContext | requests: cpu: 100m memory: 128Mi Security options the operator container should run with | <code>{}</code> |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br> Example: <br> `helm template charts/kubevault-operator \` <br> `--set imagePullSecrets[0].name=sec0 \` <br> `--set imagePullSecrets[1].name=sec1` | <code>[]</code> |
Expand Down
2 changes: 1 addition & 1 deletion charts/kubevault-operator/templates/deployment.yaml
Expand Up @@ -36,7 +36,7 @@ spec:
- name: operator
securityContext:
{{- toYaml .Values.operator.securityContext | nindent 10 }}
image: {{ include "operator.registry" . }}/{{ .Values.operator.repository }}:{{ .Values.operator.tag }}
image: {{ include "operator.registry" . }}/{{ .Values.operator.repository }}:{{ .Values.operator.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- operator
Expand Down
2 changes: 1 addition & 1 deletion charts/kubevault-operator/values.yaml
Expand Up @@ -28,7 +28,7 @@ operator:
# KubeVault operator container image
repository: vault-operator
# KubeVault operator container image tag
tag: v0.7.0
tag: ""
# Compute Resources required by the operator container
resources: {}
# requests:
Expand Down
2 changes: 1 addition & 1 deletion charts/kubevault-webhook-server/README.md
Expand Up @@ -54,7 +54,7 @@ The following table lists the configurable parameters of the `kubevault-webhook-
| registryFQDN | Docker registry fqdn used to pull docker images Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | <code>""</code> |
| server.registry | Docker registry used to pull KubeVault webhook server image | <code>kubevault</code> |
| server.repository | KubeVault webhook server container image | <code>vault-operator</code> |
| server.tag | KubeVault webhook server container image tag | <code>v0.7.0</code> |
| server.tag | KubeVault webhook server container image tag | <code>""</code> |
| server.resources | Compute Resources required by the webhook server container | <code>{}</code> |
| server.securityContext | requests: cpu: 100m memory: 128Mi Security options the webhook server container should run with | <code>{}</code> |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br> Example: <br> `helm template charts/kubevault-webhook-server \` <br> `--set imagePullSecrets[0].name=sec0 \` <br> `--set imagePullSecrets[1].name=sec1` | <code>[]</code> |
Expand Down
2 changes: 1 addition & 1 deletion charts/kubevault-webhook-server/templates/deployment.yaml
Expand Up @@ -36,7 +36,7 @@ spec:
- name: operator
securityContext:
{{- toYaml .Values.server.securityContext | nindent 10 }}
image: {{ include "server.registry" . }}/{{ .Values.server.repository }}:{{ .Values.server.tag }}
image: {{ include "server.registry" . }}/{{ .Values.server.repository }}:{{ .Values.server.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- run
Expand Down
2 changes: 1 addition & 1 deletion charts/kubevault-webhook-server/values.yaml
Expand Up @@ -28,7 +28,7 @@ server:
# KubeVault webhook server container image
repository: vault-operator
# KubeVault webhook server container image tag
tag: v0.7.0
tag: ""
# Compute Resources required by the webhook server container
resources: {}
# requests:
Expand Down

0 comments on commit f212b1b

Please sign in to comment.