Skip to content

Commit faf40c4

Browse files
authored
Misc chart enhancements and appVersion v1.1.1 (#103)
- appVersion v1.1.1 - Allow setting a different namespace for the ServiceMonitor than the one the app runs in - Allow setting the DNS config for the pods - Allow setting the topologySpreadConstraints - Allow setting the priorityClassName - Allow not setting the number of replicas for the Deployment in case you set your own HPA or something
1 parent fcee384 commit faf40c4

File tree

4 files changed

+31
-4
lines changed

4 files changed

+31
-4
lines changed

charts/k8s-pvc-tagger/Chart.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ maintainers:
99
keywords:
1010
- kubernetes
1111
- aws
12+
- eks
13+
- pvc
1214
- gcp
1315
- aws-ebs
1416
- aws-efs
1517
- persistent-volumes
1618
sources:
1719
- https://github.com/mtougeron/k8s-pvc-tagger
1820

19-
version: 2.2.1
20-
appVersion: v1.1.0
21+
version: 2.2.2
22+
appVersion: v1.1.1

charts/k8s-pvc-tagger/templates/deployment.yaml

+18-2
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ metadata:
55
labels:
66
{{- include "k8s-pvc-tagger.labels" . | nindent 4 }}
77
spec:
8+
{{- if .Values.replicaCount }}
89
replicas: {{ .Values.replicaCount }}
10+
{{- end }}
911
selector:
1012
matchLabels:
1113
{{- include "k8s-pvc-tagger.selectorLabels" . | nindent 6 }}
1214
template:
1315
metadata:
14-
{{- with .Values.podAnnotations }}
16+
{{- with .Values.podAnnotations }}
1517
annotations:
1618
{{- toYaml . | nindent 8 }}
17-
{{- end }}
19+
{{- end }}
1820
labels:
1921
{{- include "k8s-pvc-tagger.selectorLabels" . | nindent 8 }}
2022
{{- with .Values.podLabels }}
@@ -96,6 +98,13 @@ spec:
9698
{{- toYaml .Values.volumeMounts | nindent 12 }}
9799
{{- end }}
98100
hostNetwork: {{ .Values.hostNetwork }}
101+
{{- if .Values.dnsPolicy }}
102+
dnsPolicy: {{ .Values.dnsPolicy }}
103+
{{- end }}
104+
{{- if .Values.dnsConfig }}
105+
dnsConfig:
106+
{{- toYaml .Values.dnsConfig | nindent 8 }}
107+
{{- end }}
99108
{{- if .Values.volumes }}
100109
volumes:
101110
# Extra volume(s)
@@ -113,3 +122,10 @@ spec:
113122
tolerations:
114123
{{- toYaml . | nindent 8 }}
115124
{{- end }}
125+
{{- with .Values.topologySpreadConstraints }}
126+
topologySpreadConstraints:
127+
{{- toYaml . | nindent 8 }}
128+
{{- end }}
129+
{{- if .Values.priorityClassName }}
130+
priorityClassName: {{ .Values.priorityClassName }}
131+
{{- end }}

charts/k8s-pvc-tagger/templates/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
55
name: {{ include "k8s-pvc-tagger.fullname" . }}
6+
namespace: {{ .Values.serviceMonitorNamespace | default .Release.Namespace }}
67
labels:
78
{{- include "k8s-pvc-tagger.labels" . | nindent 4 }}
89
{{- with .Values.serviceMonitorLabels }}

charts/k8s-pvc-tagger/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,18 @@ watchNamespace: ""
7979

8080
serviceMonitor: false
8181
serviceMonitorLabels: {}
82+
serviceMonitorNamespace: ""
8283

8384
debug: false
8485

8586
extraEnvs: {}
8687
extraArgs: {}
8788

8889
podLabels: {}
90+
91+
dnsPolicy: ""
92+
dnsConfig: {}
93+
94+
topologySpreadConstraints: []
95+
96+
priorityClassName: ""

0 commit comments

Comments
 (0)