Skip to content

Commit

Permalink
fix image pull error due to missing sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpavan committed Feb 11, 2025
1 parent bbd0ab7 commit bf1f094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions charts/tekton-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ tekton-operator
{{- end -}}

{{- define "tekton-operator.pruner-image" -}}
{{- $tag := .Values.pruner.image.tag -}}
{{- $image := .Values.pruner.image.repository -}}
{{- printf "%s:%s" $image $tag -}}
{{- if contains "sha256:" .Values.pruner.image.tag -}}
{{- printf "%s@%s" .Values.pruner.image.repository .Values.pruner.image.tag -}}
{{- else -}}
{{- printf "%s:%s" .Values.pruner.image.repository .Values.pruner.image.tag -}}
{{- end -}}
{{- end -}}

{{- define "tekton-operator.webhook-image" -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/tekton-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pruner:
image:
# Container image for Tekton pruner. Defaults to gcr.
repository: "ghcr.io/tektoncd/plumbing/tkn"
tag: "233de6c8b8583a34c2379fa98d42dba739146c9336e8d41b66030484357481ed"
tag: "sha256:233de6c8b8583a34c2379fa98d42dba739146c9336e8d41b66030484357481ed"

## Configuration for the tekton-operator-webhook pod
webhook:
Expand Down

0 comments on commit bf1f094

Please sign in to comment.