Skip to content

Commit

Permalink
adapt chart
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Nov 30, 2022
1 parent 61ef0d1 commit e88269d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/kyverno-aws-adapter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kyverno-aws-adapter
description: Helm chart for the Kyverno AWS Adapter
type: application
version: 0.1.0
appVersion: 0.1.0
version: v0.0.1
appVersion: v0.0.1
keywords:
- kubernetes
- nirmata
Expand Down
4 changes: 4 additions & 0 deletions charts/kyverno-aws-adapter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ Generate the dockerconfigjson value
{{- $user_pwd_hashed := printf "%s:%s" .Values.registryConfig.username .Values.registryConfig.password | b64enc }}
{{- printf "{\"auths\":{\"ghcr.io\":{\"auth\":\"%s\"}}}" $user_pwd_hashed | b64enc }}
{{- end }}

{{- define "kyverno-aws-adapter.image" -}}
{{ printf "%s:%s" (required "An image repository is required" .Values.image.repository) (default .Chart.AppVersion .Values.image.tag) }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/kyverno-aws-adapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
containers:
- command:
- /manager
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: {{ include "kyverno-aws-adapter.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: manager
{{- if .Values.pollInterval }}
Expand Down
4 changes: 2 additions & 2 deletions charts/kyverno-aws-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ image:
repository: ghcr.io/nirmata/kyverno-aws-adapter
# -- Image pull policy
pullPolicy: Always
# -- Image tag
tag: latest
# -- Image tag (defaults to chart app version)
tag:

0 comments on commit e88269d

Please sign in to comment.