forked from prometheus-community/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update / template labels / use appVersion as tag (prometheus-communit…
…y#3692) Signed-off-by: André Bauer <[email protected]>
- Loading branch information
Showing
16 changed files
with
103 additions
and
461 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
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
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
12 changes: 4 additions & 8 deletions
12
charts/prometheus-postgres-exporter/templates/configmap.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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
{{- if not .Values.config.externalQueries.enabled }} | ||
{{- if .Values.config.postgresExporter }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "prometheus-postgres-exporter.fullname" . }} | ||
labels: | ||
app: {{ template "prometheus-postgres-exporter.name" . }} | ||
chart: {{ template "prometheus-postgres-exporter.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- include "prometheus-postgres-exporter.labels" . | nindent 4 }} | ||
data: | ||
allow-snippet-annotations: "false" | ||
config.yaml: | | ||
{{- tpl (mergeOverwrite (tpl .Values.config.queries . | fromYaml) (tpl .Values.config.userQueries . | fromYaml) | toYaml) . | nindent 4 }} | ||
postgres_exporter.yml: | | ||
{{ tpl .Values.config.postgresExporter . | nindent 4 }} | ||
{{- 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
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
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
{{- if .Values.podDisruptionBudget.enabled }} | ||
apiVersion: {{ include "prometheus-postgres-exporter.pdb.apiVersion" . }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ template "prometheus-postgres-exporter.fullname" . }} | ||
labels: | ||
app: {{ template "prometheus-postgres-exporter.name" . }} | ||
chart: {{ template "prometheus-postgres-exporter.chart" . }} | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
{{- include "prometheus-postgres-exporter.labels" . | nindent 4 }} | ||
spec: | ||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} | ||
selector: | ||
matchLabels: | ||
app: {{ template "prometheus-postgres-exporter.name" . }} | ||
release: {{ .Release.Name }} | ||
{{- include "prometheus-postgres-exporter.selectorLabels" . | nindent 6 }} | ||
{{- end }} |
39 changes: 0 additions & 39 deletions
39
charts/prometheus-postgres-exporter/templates/podsecuritypolicy.yaml
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,18 +1,8 @@ | ||
{{- if .Values.rbac.create }} | ||
apiVersion: {{ template "rbac.apiVersion" . }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: {{ template "prometheus-postgres-exporter.fullname" . }} | ||
labels: | ||
app: {{ template "prometheus-postgres-exporter.name" . }} | ||
chart: {{ template "prometheus-postgres-exporter.chart" . }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
{{- if and .Values.rbac.pspEnabled (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }} | ||
rules: | ||
- apiGroups: ['extensions'] | ||
resources: ['podsecuritypolicies'] | ||
verbs: ['use'] | ||
resourceNames: [{{ template "prometheus-postgres-exporter.fullname" . }}] | ||
{{- end }} | ||
{{- include "prometheus-postgres-exporter.labels" . | nindent 4 }} | ||
{{- end }} |
7 changes: 2 additions & 5 deletions
7
charts/prometheus-postgres-exporter/templates/rolebinding.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
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
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
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
Oops, something went wrong.