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

Crash: Cannot read properties of undefined (reading 'name') #5528

Closed
dawidstezycki opened this issue Dec 7, 2023 · 0 comments · Fixed by #5533
Closed

Crash: Cannot read properties of undefined (reading 'name') #5528

dawidstezycki opened this issue Dec 7, 2023 · 0 comments · Fixed by #5533

Comments

@dawidstezycki
Copy link

dawidstezycki commented Dec 7, 2023

Crash report

I've tried to start using a single certificate for ingress based on this discussion on the discord channel:
https://discord.com/channels/817392104711651328/1181979459243495526

Unfortunately, I've been getting an error as soon as i change from:

   tlsCertificates:
      - name: app-fqx-ch-cert
        secretRef:
          name: app-fqx-ch-tls
          namespace: default

to:

    tlsCertificates:
      - name: app-fqx-ch-cert

Error message

Failed resolving status for Deploy type=container name=platform-ui (took 1.5 sec). This is what happened:
TypeError: Cannot read properties of undefined (reading 'name')
    at getCertificateHostnames (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:776044:81)
    at pickCertificate (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:776079:37)
    at getIngress (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:775999:31)
    at file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:776020:48
    at Array.map (<anonymous>)
    at getIngressesWithCert (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:776020:34)
    at createIngressResources (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:775903:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createContainerManifests (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:777906:23)
    at async AsyncFunction.k8sGetContainerDeployStatus (file:///Users/dawidstezycki/Library/Application%20Support/io.garden.garden/1701437467-Is7gZ13.r/rollup/garden.mjs:777750:37)

What did you do?

Updated the project configuration and deployed as usual using garden deploy platform-ui

Your environment

  • OS: macOS 13.5.2
  • How I'm running Kubernetes: GKE
  • Garden version: 0.13.21

Frequency

Every time I try to deploy

Workaround

I have not found a workaround

Additional context

Discord discussion provides the context of what I need to achieve. Basically I want to use a single certificate for multiple namespaces and not have them expire. Before this change garden would copy the secret generated in certificate namespace to other namespaces but they would only be updated on deploy so they often expired if I didn't deploy for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants