Skip to content

Commit

Permalink
Add tetragonOperator.enabled flag to the chart
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Olshanskiy <gh@aohoy.dev>
  • Loading branch information
aohoyd authored and lambdanis committed Jan 25, 2024
1 parent 6ee213f commit 6644bbd
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion docs/content/en/docs/reference/helm-chart.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion install/kubernetes/tetragon/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.serviceAccount.create }}
{{- if and .Values.tetragonOperator.enabled .Values.serviceAccount.create }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.serviceAccount.create }}
{{- if and .Values.tetragonOperator.enabled .Values.serviceAccount.create }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/templates/operator_configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tetragonOperator.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -9,3 +10,4 @@ data:
skip-crd-creation: {{ .Values.tetragonOperator.skipCRDCreation | quote }}
skip-pod-info-crd: {{ not .Values.tetragonOperator.podInfo.enabled | quote }}
skip-tracing-policy-crd: {{ not .Values.tetragonOperator.tracingPolicy.enabled | quote }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tetragonOperator.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -110,3 +111,4 @@ spec:
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
3 changes: 1 addition & 2 deletions install/kubernetes/tetragon/templates/operator_service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.tetragonOperator.prometheus.enabled -}}
---
{{- if and .Values.tetragonOperator.enabled .Values.tetragonOperator.prometheus.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.tetragonOperator.serviceAccount.create -}}
{{- if and .Values.tetragonOperator.enabled .Values.tetragonOperator.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if and .Values.tetragonOperator.enabled .Values.tetragonOperator.prometheus.enabled .Values.tetragonOperator.prometheus.serviceMonitor.enabled -}}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ tetragon:

# -- Tetragon Operator settings
tetragonOperator:
# -- Enables the Tetragon Operator.
enabled: true
# -- Annotations for the Tetragon Operator Deployment.
annotations: {}
# -- Annotations for the Tetragon Operator Deployment Pods.
Expand Down

0 comments on commit 6644bbd

Please sign in to comment.