Skip to content

[BUG]: Duplicated Nginx class definition produces error while deploying on helm #173

@jpsuazoWS

Description

@jpsuazoWS

Description of the bug

The ingress-nginx.yaml template declares its ingress class through annotations and through spec:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
(···)
  annotations:
    {{- if or (eq .Values.global.ingress.className "nginx") (eq .Values.global.ingress.classType "nginx") }}
    kubernetes.io/ingress.class: {{ .Values.global.ingress.className }}
(···)
spec:
  ingressClassName: {{ .Values.global.ingress.className }}

This causes the following error when attemptin to deploy keep on kubernetes using Helm:

Error: INSTALLATION FAILED: Ingress.extensions "keep-ingress" is invalid: annotations.kubernetes.io/ingress.class: Invalid value: "nginx": can not be set when the class field is also set

To solve this problem I had to comment the annotation on the template.

Steps To Reproduce

  1. Install Keep through helm as indicates in the docs

Additional Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions