Template the controller field in IngressClass resource

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

View File

@ -87,6 +87,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"`
Controller string `yaml:"controller" json:"controller" default:"k8s.io/ingress-nginx"`
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

@ -11,5 +11,5 @@ metadata:
name: kubeshark-ingress-class
namespace: {{ .Values.tap.selfnamespace }}
spec:
controller: k8s.io/ingress-nginx
controller: {{ .Values.tap.ingress.controller }}
{{- end }}

View File

@ -46,6 +46,7 @@ tap:
ingress:
enabled: false
className: kubeshark-ingress-class
controller: k8s.io/ingress-nginx
host: ks.svc.cluster.local
tls: []
auth: