monochart fails to create ingress due to wrongly chosen API version
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
Research direction
Start with inc/monochart/templates/ingress.yaml and reproduce the example using Helm 3.18.3 or helmfile to inspect how the Kubernetes version is detected. Done means the chart selects an API version supported by Kubernetes over 1.30 and the ingress is created in the chosen namespace without the networking.k8s.io/v1beta1 error.
Written by the indexing model from the issue text.
Description
Describe the Bug
monochart fails to create ingress when kube > 1.30 due to a problem in detecting kube version. For the example below, using helmfile:
- name: test
namespace: test
chart: cloudposse/monochart
version: ~0.25.0
values:
- ingress:
default:
enabled: true
className: nginx
port: http
pathType: ImplementationSpecific
hosts:
"foo.example.com": /
It fails with message:
Error: Failed to render chart: exit status 1: install.go:225: 2025-06-24 23:32:25.598827 -0300 -03 m=+0.019158251 [debug] Original chart version: "~0.25.0"
install.go:242: 2025-06-24 23:32:26.242879 -0300 -03 m=+0.663214876 [debug] CHART PATH: /Users/slaterx/Library/Caches/helm/repository/monochart-0.25.0.tgz
Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "test-default" namespace: "" from "": no matches for kind "Ingress" in version "networking.k8s.io/v1beta1"
You can notice the failure is so critical that it happens before monochart can detect chosen namespace for release. According to https://github.com/helm/helm/issues/12072, we should not use .GitVersion to detect kube version. However, inspecting source for ingress in monochart, we can see that:
{{- if semverCompare ">=1.19-0" $root.Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" $root.Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
Expected Behavior
ingress is defined in cluster under the chosen namespace
Steps to Reproduce
Steps to reproduce the behavior:
- Create ingress as per example above
- run
helm install(or if you use helmfile, runhelmfile -f <file> apply
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- OS: macOS
- Version 0.25.0
- helm: 3.18.3
- helmfile: 1.1.2
- Dominant language
- Mustache
- Stars
- 160
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudposse/charts
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cloudposse/charts#282 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
cloudposse/charts#277 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
cloudposse/charts#269 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
cloudposse/charts#266 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudposse/charts#259 · 3 reactions ·
All issues in cloudposse/charts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
Maintainers usually reply within 1 day
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsPossibly taken @weirong-ui claimed this today. Openkind/bug needs-priority needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/karpenter#3728 · 1 comment ·
Maintainers usually reply within 1 day
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelPossibly taken @hawkingrei claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
nowledge-co/hawdb#2224 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hexlet-volunteers/hexlet-sicp#2092 ·
Maintainers usually reply within 1 day
-
cvss-severity:high devguard l3montree-cybersecurity/.../devguard-documentation pkg:oci/devguard-documen...ch=amd64&tag=main-amd64 risk:low state:open
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
l3montree-dev/devguard-documentation#396 · 1 comment ·