Skip to content

Commit

Permalink
Add: missing recommanded labels
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault authored and mmadoo committed Dec 18, 2023
1 parent 1f1db91 commit 966d7f9
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/aadpodidentity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: AzureIdentity
metadata:
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
name: {{ include "falcosidekick.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/certs-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
type: Opaque
data:
{{ $key := .Values.config.tlsserver.serverkey }}
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
name: {{ template "falcosidekick.fullname" .}}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
rules:
- apiGroups:
- policy
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/podsecuritypolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ template "falcosidekick.fullname" . }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
spec:
privileged: false
allowPrivilegeEscalation: false
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
{{- end }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
{{- if .Values.prometheusRules.additionalLabels }}
{{- toYaml .Values.prometheusRules.additionalLabels | nindent 4 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/falcosidekick/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
{{- end }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand All @@ -18,6 +19,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
rules:
- apiGroups:
- ""
Expand All @@ -43,6 +45,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand All @@ -58,6 +61,7 @@ metadata:
name: {{ include "falcosidekick.fullname" . }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
rules:
- apiGroups:
- "wgpolicyk8s.io"
Expand All @@ -76,6 +80,7 @@ metadata:
name: {{ include "falcosidekick.fullname" . }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
type: Opaque
data:
# Slack Output
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
{{- with .Values.service.annotations }}
annotations:
prometheus.io/scrape: "true"
Expand Down
1 change: 1 addition & 0 deletions charts/falcosidekick/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcosidekick.labels" . | nindent 4 }}
app.kubernetes.io/component: core
{{- range $key, $value := .Values.serviceMonitor.additionalLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down

0 comments on commit 966d7f9

Please sign in to comment.