diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 0de70742b..ff0373d91 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -86,6 +86,7 @@ type AuthConfig struct { type IngressConfig struct { Enabled bool `yaml:"enabled" json:"enabled" default:"false"` + ClassName string `yaml:"className" json:"className" default:"kubeshark-ingress-class"` Host string `yaml:"host" json:"host" default:"ks.svc.cluster.local"` TLS []networking.IngressTLS `yaml:"tls" json:"tls"` Auth AuthConfig `yaml:"auth" json:"auth"` diff --git a/helm-chart/templates/11-ingress.yaml b/helm-chart/templates/11-ingress.yaml index 006835784..742726a42 100644 --- a/helm-chart/templates/11-ingress.yaml +++ b/helm-chart/templates/11-ingress.yaml @@ -14,7 +14,7 @@ metadata: name: kubeshark-ingress namespace: {{ .Values.tap.selfnamespace }} spec: - ingressClassName: kubeshark-ingress-class + ingressClassName: {{ .Values.tap.ingress.className }} rules: - host: {{ .Values.tap.ingress.host }} http: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 232c917ae..cc4363a98 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -45,6 +45,7 @@ tap: nodeselectorterms: [] ingress: enabled: false + className: kubeshark-ingress-class host: ks.svc.cluster.local tls: [] auth: