Skip to content

Commit

Permalink
feat(base-cluster/tetragon): set component to kube-system
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinWolff committed Aug 1, 2024
1 parent 2934622 commit 29982d6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- define "base-cluster.prometheus.config" -}}
{{- if .Values.global.imageRegistry }}
global:
imageRegistry: {{ .Values.global.imageRegistry }}
imageRegistry: {{ .Values.global.imageRegistry }}
{{- end }}
prometheusOperator:
secretFieldSelector: 'type!=helm.sh/release.v1'
Expand Down
10 changes: 6 additions & 4 deletions charts/base-cluster/templates/tetragon/tetragon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: tetragon
namespace: tetragon
namespace: kube-system
labels: {{- include "common.labels.standard" $ | nindent 4 }}
app.kubernetes.io/component: tetragon
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "tetragon" "chart" "tetragon" "context" $) | nindent 6 }}
Expand All @@ -19,7 +21,7 @@ spec:
export:
stdout:
image:
repository: {{ printf "%s/cilium/hubble-export-stdout" ($.Values.global.imageRegistry | default (include "base-cluster.defaultRegistry" (dict))) }}
repository: {{ .Values.global.imageRegistry }}
securityContext:
capabilities:
drop:
Expand All @@ -30,13 +32,13 @@ spec:
enabled: false
tetragon:
image:
repository: {{ printf "%s/cilium/tetragon" ($.Values.global.imageRegistry | default (include "base-cluster.defaultRegistry" (dict))) }}
repository: {{ .Values.global.imageRegistry }}
enableProcessCred: true
enableProcessNs: true
{{- if .Values.monitoring.prometheus.enabled }}
prometheus:
serviceMonitor:
enabled: true
labelsOverride: {{- toYaml .Values.tetragon.serviceMonitor.labelsOverride | nindent 12 }}
labelsOverride: {{- toYaml .Values.monitoring.labels | nindent 12 }}
{{- end }}
{{- end }}
15 changes: 0 additions & 15 deletions charts/base-cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,21 +554,6 @@
"properties": {
"enabled": {
"type": "boolean"
},
"serviceMonitor": {
"type": "object",
"properties": {
"serviceMonitor": {
"type": "object",
"properties": {
"labelsOverride": {
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
},
"additionalProperties": false
Expand Down
7 changes: 0 additions & 7 deletions charts/base-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ global:
condition: "{{ .Values.ingress.enabled }}"
additionalLabels:
app.kubernetes.io/component: ingress
tetragon:
condition: "{{ .Values.tetragon.enabled }}"
additionalLabels:
app.kubernetes.io/component: tetragon
kyverno:
condition: "{{ .Values.kyverno.enabled }}"
additionalLabels:
Expand Down Expand Up @@ -468,6 +464,3 @@ kube-janitor:

tetragon:
enabled: true
serviceMonitor:
labelsOverride:
managed.by/monitoring: teutonet

0 comments on commit 29982d6

Please sign in to comment.