From 73de2048323478d190b33a689acedb7448a1020e Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Mon, 3 Oct 2022 12:17:38 -0600 Subject: [PATCH] Adding imagePullSecret support --- charts/hello-eks-anywhere/templates/deployment.yaml | 4 ++++ charts/hello-eks-anywhere/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/hello-eks-anywhere/templates/deployment.yaml b/charts/hello-eks-anywhere/templates/deployment.yaml index 4e7af91..7363d06 100644 --- a/charts/hello-eks-anywhere/templates/deployment.yaml +++ b/charts/hello-eks-anywhere/templates/deployment.yaml @@ -15,6 +15,10 @@ spec: labels: app: hello-eks-anywhere spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: hello image: {{.Values.sourceRegistry}}{{ template "template.image" .Values }} diff --git a/charts/hello-eks-anywhere/values.yaml b/charts/hello-eks-anywhere/values.yaml index 782d406..cb8f7d0 100644 --- a/charts/hello-eks-anywhere/values.yaml +++ b/charts/hello-eks-anywhere/values.yaml @@ -1,6 +1,7 @@ namespace: default sourceRegistry: "public.ecr.aws/aws-containers" repository: "hello-eks-anywhere" +imagePullSecrets: [] tag: "{{hello-eks-anywhere}}" title: "Amazon EKS Anywhere" subtitle: "Run EKS in your datacenter" -- 2.36.1