controller-ingressclass.yaml 760 B

123456789101112131415161718192021
  1. {{- if .Values.controller.ingressClassResource.enabled -}}
  2. # We don't support namespaced ingressClass yet
  3. # So a ClusterRole and a ClusterRoleBinding is required
  4. apiVersion: networking.k8s.io/v1
  5. kind: IngressClass
  6. metadata:
  7. labels:
  8. {{- include "ingress-nginx.labels" . | nindent 4 }}
  9. app.kubernetes.io/component: controller
  10. {{- with .Values.controller.labels }}
  11. {{- toYaml . | nindent 4 }}
  12. {{- end }}
  13. name: {{ .Values.controller.ingressClassResource.name }}
  14. {{- if .Values.controller.ingressClassResource.default }}
  15. annotations:
  16. ingressclass.kubernetes.io/is-default-class: "true"
  17. {{- end }}
  18. spec:
  19. controller: {{ .Values.controller.ingressClassResource.controllerValue }}
  20. {{ template "ingressClass.parameters" . }}
  21. {{- end }}