Template the ingressClassName field in Ingress resource

This commit is contained in:
M. Mert Yildiran 2023-06-27 03:25:58 +03:00
parent aeda024986
commit f32a7d97ec
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
3 changed files with 3 additions and 1 deletions

View File

@ -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"`

View File

@ -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:

View File

@ -45,6 +45,7 @@ tap:
nodeselectorterms: []
ingress:
enabled: false
className: kubeshark-ingress-class
host: ks.svc.cluster.local
tls: []
auth: