mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-17 16:08:12 +00:00
⚡ Have consistent key style in values.yaml
This commit is contained in:
parent
4ef91a2701
commit
19443501da
@ -81,17 +81,17 @@ type ResourcesConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
ApprovedDomains []string `yaml:"approvedDomains" json:"approvedDomains" default:"[]"`
|
ApprovedDomains []string `yaml:"approveddomains" json:"approveddomains" default:"[]"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type IngressConfig struct {
|
type IngressConfig struct {
|
||||||
Enabled bool `yaml:"enabled" json:"enabled" default:"false"`
|
Enabled bool `yaml:"enabled" json:"enabled" default:"false"`
|
||||||
ClassName string `yaml:"className" json:"className" default:"kubeshark-ingress-class"`
|
ClassName string `yaml:"classname" json:"classname" default:"kubeshark-ingress-class"`
|
||||||
Controller string `yaml:"controller" json:"controller" default:"k8s.io/ingress-nginx"`
|
Controller string `yaml:"controller" json:"controller" default:"k8s.io/ingress-nginx"`
|
||||||
Host string `yaml:"host" json:"host" default:"ks.svc.cluster.local"`
|
Host string `yaml:"host" json:"host" default:"ks.svc.cluster.local"`
|
||||||
TLS []networking.IngressTLS `yaml:"tls" json:"tls"`
|
TLS []networking.IngressTLS `yaml:"tls" json:"tls"`
|
||||||
Auth AuthConfig `yaml:"auth" json:"auth"`
|
Auth AuthConfig `yaml:"auth" json:"auth"`
|
||||||
CertManager string `yaml:"certManager" json:"certManager" default:"letsencrypt-prod"`
|
CertManager string `yaml:"certmanager" json:"certmanager" default:"letsencrypt-prod"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TapConfig struct {
|
type TapConfig struct {
|
||||||
|
@ -58,7 +58,7 @@ Visit [localhost:8899](http://localhost:8899)
|
|||||||
helm install kubeshark kubeshark/kubeshark \
|
helm install kubeshark kubeshark/kubeshark \
|
||||||
--set tap.ingress.enabled=true \
|
--set tap.ingress.enabled=true \
|
||||||
--set tap.ingress.host=ks.svc.cluster.local \
|
--set tap.ingress.host=ks.svc.cluster.local \
|
||||||
--set "tap.ingress.auth.approvedDomains={gmail.com}" \
|
--set "tap.ingress.auth.approveddomains={gmail.com}" \
|
||||||
--set license=LICENSE_GOES_HERE
|
--set license=LICENSE_GOES_HERE
|
||||||
```
|
```
|
||||||
You can get your license [here](https://console.kubeshark.co/).
|
You can get your license [here](https://console.kubeshark.co/).
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
|||||||
- name: SCRIPTING_SCRIPTS
|
- name: SCRIPTING_SCRIPTS
|
||||||
value: '[]'
|
value: '[]'
|
||||||
- name: AUTH_APPROVED_DOMAINS
|
- name: AUTH_APPROVED_DOMAINS
|
||||||
value: '{{ gt (len .Values.tap.ingress.auth.approvedDomains) 0 | ternary (join "," .Values.tap.ingress.auth.approvedDomains) "" }}'
|
value: '{{ gt (len .Values.tap.ingress.auth.approveddomains) 0 | ternary (join "," .Values.tap.ingress.auth.approveddomains) "" }}'
|
||||||
image: '{{ .Values.tap.docker.registry }}/hub:{{ .Values.tap.docker.tag }}'
|
image: '{{ .Values.tap.docker.registry }}/hub:{{ .Values.tap.docker.tag }}'
|
||||||
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
||||||
name: kubeshark-hub
|
name: kubeshark-hub
|
||||||
|
@ -4,7 +4,7 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
certmanager.k8s.io/cluster-issuer: '{{ .Values.tap.ingress.certManager }}'
|
certmanager.k8s.io/cluster-issuer: '{{ .Values.tap.ingress.certmanager }}'
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
@ -14,7 +14,7 @@ metadata:
|
|||||||
name: kubeshark-ingress
|
name: kubeshark-ingress
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: {{ .Values.tap.ingress.className }}
|
ingressClassName: {{ .Values.tap.ingress.classname }}
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.tap.ingress.host }}
|
- host: {{ .Values.tap.ingress.host }}
|
||||||
http:
|
http:
|
||||||
|
@ -45,13 +45,13 @@ tap:
|
|||||||
nodeselectorterms: []
|
nodeselectorterms: []
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: kubeshark-ingress-class
|
classname: kubeshark-ingress-class
|
||||||
controller: k8s.io/ingress-nginx
|
controller: k8s.io/ingress-nginx
|
||||||
host: ks.svc.cluster.local
|
host: ks.svc.cluster.local
|
||||||
tls: []
|
tls: []
|
||||||
auth:
|
auth:
|
||||||
approvedDomains: []
|
approveddomains: []
|
||||||
certManager: letsencrypt-prod
|
certmanager: letsencrypt-prod
|
||||||
debug: false
|
debug: false
|
||||||
logs:
|
logs:
|
||||||
file: ""
|
file: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user