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

HelmChart does not support auto login on GCR #867

Closed
geNAZt opened this issue Aug 17, 2022 · 1 comment · Fixed by #873
Closed

HelmChart does not support auto login on GCR #867

geNAZt opened this issue Aug 17, 2022 · 1 comment · Fixed by #873

Comments

@geNAZt
Copy link

geNAZt commented Aug 17, 2022

Hello,

currently i try to deploy a Helm Chart from a HelmRepository like this:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: oci-poc
spec:
  type: oci
  interval: 5m0s
  url: oci://europe-west1-docker.pkg.dev/project/helm-charts

When i use the HelmRepository in a HelmRelease the source controller tries to download a HelmChart

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: oci-poc
spec:
  interval: 5m
  chart:
    spec:
      chart: nginx
      version: "0.2.0"
      sourceRef:
        kind: HelmRepository
        name: oci-poc
      interval: 1m
  values:
    deployment:
      image: &deploymentImage
        repository: europe-west1-docker.pkg.dev/project/docker-releases/nginx
        tag: "1.1.6"
      ports:
      - name: &ingressContainerPortName http
        containerPort: 80
        protocol: TCP
      services: &deploymentServices
      - type: ClusterIP
        ports:
        - name: *ingressContainerPortName
          appProtocol: http
          port: 80
    ingress:
      host: test.not.existing.de
      containerPortName: *ingressContainerPortName
      deploymentImage: *deploymentImage
      deploymentServices: *deploymentServices

This leads to a HelmChart with a 403 because it doesn't have a proper oauth2 token to present to the GCR. I have seen that OCIRegistry seems to support auto-login and i also found #798 which referred to work done in fluxcd/image-reflector-controller#264 which seems to be implemented with 63c9439 which only implements OCI auto login for OCIRepository not HelmChart

@hiddeco
Copy link
Member

hiddeco commented Aug 23, 2022

This is related to #870 (comment)

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

Successfully merging a pull request may close this issue.

2 participants