mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-27 00:29:31 +00:00
⚡ Template the annotations in all resources
This commit is contained in:
parent
2d625eccaa
commit
16f1e116c0
@ -111,6 +111,7 @@ type TapConfig struct {
|
|||||||
PacketCapture string `yaml:"packetcapture" json:"packetcapture" default:"libpcap"`
|
PacketCapture string `yaml:"packetcapture" json:"packetcapture" default:"libpcap"`
|
||||||
IgnoreTainted bool `yaml:"ignoretainted" json:"ignoretainted" default:"false"`
|
IgnoreTainted bool `yaml:"ignoretainted" json:"ignoretainted" default:"false"`
|
||||||
Labels map[string]string `yaml:"labels" json:"labels" default:"{}"`
|
Labels map[string]string `yaml:"labels" json:"labels" default:"{}"`
|
||||||
|
Annotations map[string]string `yaml:"annotations" json:"annotations" default:"{}"`
|
||||||
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
|
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
|
||||||
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
||||||
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
||||||
|
@ -7,6 +7,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: {{ .Values.tap.selfnamespace }}
|
name: {{ .Values.tap.selfnamespace }}
|
||||||
spec: {}
|
spec: {}
|
||||||
status: {}
|
status: {}
|
||||||
|
@ -7,5 +7,9 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-service-account
|
name: kubeshark-service-account
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
|
@ -7,6 +7,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-cluster-role
|
name: kubeshark-cluster-role
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
rules:
|
rules:
|
||||||
|
@ -7,6 +7,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-cluster-role-binding
|
name: kubeshark-cluster-role-binding
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
roleRef:
|
roleRef:
|
||||||
|
@ -8,6 +8,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-hub
|
name: kubeshark-hub
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -7,6 +7,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-hub
|
name: kubeshark-hub
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -8,6 +8,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-front
|
name: kubeshark-front
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -7,6 +7,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-front
|
name: kubeshark-front
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -8,6 +8,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-persistent-volume-claim
|
name: kubeshark-persistent-volume-claim
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -8,6 +8,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-worker-daemon-set
|
name: kubeshark-worker-daemon-set
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -8,6 +8,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-ingress-class
|
name: kubeshark-ingress-class
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -11,6 +11,10 @@ metadata:
|
|||||||
{{- if .Values.tap.labels }}
|
{{- if .Values.tap.labels }}
|
||||||
{{- toYaml .Values.tap.labels | nindent 4 }}
|
{{- toYaml .Values.tap.labels | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.tap.annotations }}
|
||||||
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: kubeshark-ingress
|
name: kubeshark-ingress
|
||||||
namespace: {{ .Values.tap.selfnamespace }}
|
namespace: {{ .Values.tap.selfnamespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -42,6 +42,7 @@ tap:
|
|||||||
packetcapture: libpcap
|
packetcapture: libpcap
|
||||||
ignoretainted: false
|
ignoretainted: false
|
||||||
labels: {}
|
labels: {}
|
||||||
|
annotations: {}
|
||||||
nodeselectorterms: []
|
nodeselectorterms: []
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Loading…
Reference in New Issue
Block a user