Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling image from private registry fails in helm chart v5.0.0 #14

Open
vaidx opened this issue Mar 14, 2022 · 0 comments
Open

Pulling image from private registry fails in helm chart v5.0.0 #14

vaidx opened this issue Mar 14, 2022 · 0 comments

Comments

@vaidx
Copy link

vaidx commented Mar 14, 2022

When I try to pull the lenses.io image from my private registry, I receive the following message:

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "imagePullSecrets" in io.k8s.api.core.v1.Container

Excerpt from values.yaml file:

image:
  repository: lensesio/lenses
  pullPolicy: IfNotPresent
  tag: 5.0.0
  registrySecretKey: secret-key

I believe this is due to the incorrect placement of imagePullSecrets field in the deployment.yaml in Helm Chart.

      containers:
      - name: {{ .Chart.Name }}
        image: {{include "lensesImage" . | quote }}
        {{- if .Values.image.registrySecretKey }}
        imagePullSecrets:
          - name: {{ .Values.image.registrySecretKey }}
        {{- end }}
        imagePullPolicy: {{ .Values.image.pullPolicy }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant