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

Template rendering fails with certain charts due to kube version #1

Open
jameslikeslinux opened this issue Dec 17, 2024 · 0 comments
Open
Assignees

Comments

@jameslikeslinux
Copy link
Owner

While rendering ingress-nginx:

Failed on localhost:
  The command failed with exit code 1
  Error: chart requires kubeVersion: >=1.21.0-0 which is incompatible with Kubernetes v1.20.0

  Use --debug flag to render out invalid YAML
Failed on 1 target: localhost

We need to pass --kube-version 1.2x.y to the helm template render command. Nest used to do this, but I forgot why so I removed it. A challenge for this project is that we have to determine what version to render for. We can call kubectl version -o yaml and get the server version:

clientVersion:
  buildDate: "2024-09-25T21:41:21Z"
  compiler: gc
  gitCommit: 6fc0a69044f1ac4c13841ec4391224a2df241460
  gitTreeState: archive
  gitVersion: v1.30.3
  goVersion: go1.23.1
  major: "1"
  minor: "30"
  platform: linux/amd64
kustomizeVersion: v5.0.4-0.20230601165947-6ce0bf390ce3
serverVersion:
  buildDate: "2024-12-10T11:25:06Z"
  compiler: gc
  gitCommit: 354eac776046f4268e9989b21f8d1bba06033379
  gitTreeState: clean
  gitVersion: v1.30.8
  goVersion: go1.22.9
  major: "1"
  minor: "30"
  platform: linux/arm64
@jameslikeslinux jameslikeslinux self-assigned this Dec 17, 2024
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