-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jiri Tyr <[email protected]>
- Loading branch information
Showing
8 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
cmd/build/helmify/static/templates/podmonitor-audit-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
labels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
chart: '{{ template "gatekeeper.name" . }}' | ||
gatekeeper.sh/system: "yes" | ||
heritage: '{{ .Release.Service }}' | ||
release: '{{ .Release.Name }}' | ||
name: gatekeeper-audit-controller | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- '{{ .Release.Namespace }}' | ||
selector: | ||
matchLabels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
control-plane: audit-controller | ||
release: '{{ .Release.Name }}' | ||
podMetricsEndpoints: | ||
- port: metrics | ||
{{- end }} |
23 changes: 23 additions & 0 deletions
23
cmd/build/helmify/static/templates/podmonitor-controller-manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: gatekeeper-controller-manager | ||
labels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
chart: '{{ template "gatekeeper.name" . }}' | ||
gatekeeper.sh/system: "yes" | ||
heritage: '{{ .Release.Service }}' | ||
release: '{{ .Release.Name }}' | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- '{{ .Release.Namespace }}' | ||
selector: | ||
matchLabels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
control-plane: controller-manager | ||
release: '{{ .Release.Name }}' | ||
podMetricsEndpoints: | ||
- port: metrics | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,3 +174,5 @@ upgradeCRDs: | |
tolerations: [] | ||
rbac: | ||
create: true | ||
podMonitor: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
manifest_staging/charts/gatekeeper/templates/podmonitor-audit-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
labels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
chart: '{{ template "gatekeeper.name" . }}' | ||
gatekeeper.sh/system: "yes" | ||
heritage: '{{ .Release.Service }}' | ||
release: '{{ .Release.Name }}' | ||
name: gatekeeper-audit-controller | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- '{{ .Release.Namespace }}' | ||
selector: | ||
matchLabels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
control-plane: audit-controller | ||
release: '{{ .Release.Name }}' | ||
podMetricsEndpoints: | ||
- port: metrics | ||
{{- end }} |
23 changes: 23 additions & 0 deletions
23
manifest_staging/charts/gatekeeper/templates/podmonitor-controller-manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.podMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: gatekeeper-controller-manager | ||
labels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
chart: '{{ template "gatekeeper.name" . }}' | ||
gatekeeper.sh/system: "yes" | ||
heritage: '{{ .Release.Service }}' | ||
release: '{{ .Release.Name }}' | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- '{{ .Release.Namespace }}' | ||
selector: | ||
matchLabels: | ||
app: '{{ template "gatekeeper.name" . }}' | ||
control-plane: controller-manager | ||
release: '{{ .Release.Name }}' | ||
podMetricsEndpoints: | ||
- port: metrics | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,3 +174,5 @@ upgradeCRDs: | |
tolerations: [] | ||
rbac: | ||
create: true | ||
podMonitor: | ||
enabled: false |