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

ingress does not support api networking.k8s.io/v1 #900

Open
dilshad18 opened this issue Jul 29, 2023 · 0 comments
Open

ingress does not support api networking.k8s.io/v1 #900

dilshad18 opened this issue Jul 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dilshad18
Copy link

dilshad18 commented Jul 29, 2023

ingress object failed to apply due to unsupported keys

        serviceName: >-
           {{ template "jenkins.fullname" . }}
         # Don't use string here, use only integer value!
         servicePort: 8080

this throw an error
ingress in version "v1" cannot be handled as a Ingress: strict decoding error: unknown field "spec.rules[0].http.paths[0].backend.serviceName", unknown field "spec.rules[0].http.paths[0].backend.serviceport"

Version of Helm and Kubernetes

- Helm: 
- Kubernetes:

Chart version

4.5.0

What happened?

ingress in version "v1" cannot be handled as a Ingress: strict decoding error: unknown field "spec.rules[0].http.paths[0].backend.serviceName", unknown field "spec.rules[0].http.paths[0].backend.serviceport"
...

What you expected to happen?

      - backend:
          service:
            name: jenkins
            port:
              number: 8080
        path: /
        pathType: Prefix

How to reproduce it

helm upgrade --install jenkins jenkins/jenkins -f values.yaml --create-namespace -n jenkins-up

Anything else we need to know?

This can be fixed by following code

- path: /
      pathType: Prefix
      backend:
        service:
          name: >-
            {{ template "jenkins.fullname" . }}
          port: 
            number: 8080
@dilshad18 dilshad18 added the bug Something isn't working label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant