Fix bugs in helm chart (#1765)

This commit is contained in:
Volodymyr Stoiko 2025-06-18 18:45:17 +03:00 committed by GitHub
parent c2d10f8cfa
commit bedecdb080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 19 additions and 43 deletions

View File

@ -4,9 +4,15 @@ kind: ServiceAccount
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: {{ include "kubeshark.serviceAccountName" . }} name: {{ include "kubeshark.serviceAccountName" . }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}

View File

@ -4,8 +4,8 @@ kind: ClusterRole
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-cluster-role-{{ .Release.Namespace }} name: kubeshark-cluster-role-{{ .Release.Namespace }}
@ -85,4 +85,4 @@ rules:
- pods/log - pods/log
verbs: verbs:
- create - create
- get - get

View File

@ -4,8 +4,8 @@ kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-cluster-role-binding-{{ .Release.Namespace }} name: kubeshark-cluster-role-binding-{{ .Release.Namespace }}

View File

@ -5,8 +5,8 @@ metadata:
labels: labels:
app.kubeshark.co/app: hub app.kubeshark.co/app: hub
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: {{ include "kubeshark.name" . }}-hub name: {{ include "kubeshark.name" . }}-hub
@ -101,12 +101,6 @@ spec:
- name: saml-x509-volume - name: saml-x509-volume
mountPath: "/etc/saml/x509" mountPath: "/etc/saml/x509"
readOnly: true readOnly: true
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- if gt (len .Values.tap.nodeSelectorTerms.hub) 0}} {{- if gt (len .Values.tap.nodeSelectorTerms.hub) 0}}
affinity: affinity:
nodeAffinity: nodeAffinity:

View File

@ -5,8 +5,8 @@ metadata:
labels: labels:
app.kubeshark.co/app: hub app.kubeshark.co/app: hub
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-hub name: kubeshark-hub

View File

@ -4,8 +4,8 @@ metadata:
labels: labels:
app.kubeshark.co/app: front app.kubeshark.co/app: front
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: {{ include "kubeshark.name" . }}-front name: {{ include "kubeshark.name" . }}-front
@ -122,12 +122,6 @@ spec:
mountPath: /etc/nginx/conf.d/default.conf mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf subPath: default.conf
readOnly: true readOnly: true
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- if gt (len .Values.tap.nodeSelectorTerms.front) 0}} {{- if gt (len .Values.tap.nodeSelectorTerms.front) 0}}
affinity: affinity:
nodeAffinity: nodeAffinity:

View File

@ -4,8 +4,8 @@ kind: Service
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-front name: kubeshark-front

View File

@ -26,8 +26,8 @@ kind: PersistentVolumeClaim
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-persistent-volume-claim name: kubeshark-persistent-volume-claim

View File

@ -6,8 +6,8 @@ metadata:
app.kubeshark.co/app: worker app.kubeshark.co/app: worker
sidecar.istio.io/inject: "false" sidecar.istio.io/inject: "false"
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-worker-daemon-set name: kubeshark-worker-daemon-set
@ -107,12 +107,6 @@ spec:
image: '{{ .Values.tap.docker.registry }}/worker:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}{{ include "kubeshark.dockerTagDebugVersion" . }}' image: '{{ .Values.tap.docker.registry }}/worker:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}{{ include "kubeshark.dockerTagDebugVersion" . }}'
{{- end }} {{- end }}
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }} imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
name: sniffer name: sniffer
ports: ports:
- containerPort: {{ .Values.tap.metrics.port }} - containerPort: {{ .Values.tap.metrics.port }}
@ -353,12 +347,6 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- if gt (len .Values.tap.nodeSelectorTerms.workers) 0}} {{- if gt (len .Values.tap.nodeSelectorTerms.workers) 0}}
affinity: affinity:
nodeAffinity: nodeAffinity:

View File

@ -3,8 +3,8 @@ kind: NetworkPolicy
metadata: metadata:
labels: labels:
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-hub-network-policy name: kubeshark-hub-network-policy

View File

@ -7,8 +7,8 @@ metadata:
labels: labels:
app.kubeshark.co/app: dex app.kubeshark.co/app: dex
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: {{ include "kubeshark.name" . }}-dex name: {{ include "kubeshark.name" . }}-dex
@ -69,12 +69,6 @@ spec:
requests: requests:
cpu: 50m cpu: 50m
memory: 50Mi memory: 50Mi
{{- if .Values.tap.docker.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.tap.docker.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- if gt (len .Values.tap.nodeSelectorTerms.dex) 0}} {{- if gt (len .Values.tap.nodeSelectorTerms.dex) 0}}
affinity: affinity:
nodeAffinity: nodeAffinity:

View File

@ -7,8 +7,8 @@ metadata:
labels: labels:
app.kubeshark.co/app: dex app.kubeshark.co/app: dex
{{- include "kubeshark.labels" . | nindent 4 }} {{- include "kubeshark.labels" . | nindent 4 }}
annotations:
{{- if .Values.tap.annotations }} {{- if .Values.tap.annotations }}
annotations:
{{- toYaml .Values.tap.annotations | nindent 4 }} {{- toYaml .Values.tap.annotations | nindent 4 }}
{{- end }} {{- end }}
name: kubeshark-dex name: kubeshark-dex