Skip to content

Commit

Permalink
Merge pull request #57 from WyriHaximusNet/revert-selector-labels-fro…
Browse files Browse the repository at this point in the history
…m-commons

Revert selector labels from commons
  • Loading branch information
WyriHaximus authored Jan 16, 2021
2 parents e692d73 + 7674635 commit a8a7d52
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 25 deletions.
2 changes: 1 addition & 1 deletion charts/commento/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Helm chart to install commento on a kubernetes cluster
home: https://commento.io/
icon: https://cdn.commento.io/images/logo.svg
name: commento
version: 0.1.2
version: 0.1.3
maintainers:
- name: WyriHaximus
email: [email protected]
Expand Down
14 changes: 12 additions & 2 deletions charts/commento/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@ spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "commons.labels" . | nindent 8 }}
app: {{ template "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: {{ template "commons.name" . }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
appRevision: {{ template "commons.nameRevision" . }}
chart: {{ template "commons.chart" . }}
helm.sh/chart: {{ template "commons.chart" . }}
release: {{ .Release.Name }}
releaseRevision: {{ .Release.Revision | quote }}
heritage: {{ .Release.Service }}
spec:
containers:
- name: commento
Expand Down
3 changes: 2 additions & 1 deletion charts/commento/templates/pod-disruption-budget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spec:
maxUnavailable: 1
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
{{ end }}
3 changes: 2 additions & 1 deletion charts/commento/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
protocol: TCP
name: commento
selector:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/default-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes
home: https://github.com/wyrihaximusnet/docker-default-backend
icon: https://helm.wyrihaximus.net/images/charts/default-backend.png
type: application
version: 0.4.3
version: 0.4.4
kubeVersion: ^1.18
appVersion: random
maintainers:
Expand Down
14 changes: 12 additions & 2 deletions charts/default-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,25 @@ metadata:
spec:
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
replicas: {{ .Values.replicas }}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9696"
labels:
{{- include "commons.labels" . | nindent 8 }}
app: {{ template "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: {{ template "commons.name" . }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
appRevision: {{ template "commons.nameRevision" . }}
chart: {{ template "commons.chart" . }}
helm.sh/chart: {{ template "commons.chart" . }}
release: {{ .Release.Name }}
releaseRevision: {{ .Release.Revision | quote }}
heritage: {{ .Release.Service }}
spec:
containers:
- name: default-backend
Expand Down
3 changes: 2 additions & 1 deletion charts/default-backend/templates/pod-disruption-budget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spec:
maxUnavailable: 1
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
{{ end }}
3 changes: 2 additions & 1 deletion charts/default-backend/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ spec:
protocol: TCP
name: metrics
selector:
{{- include "commons.selectorLabels" . | nindent 6 }}
app: {{ template "commons.name" . }}
release: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/docker-hub-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Docker Hub Exporter
home: https://github.com/jessestuart/docker-hub-exporter
icon: https://helm.wyrihaximus.net/images/charts/docker-hub-exporter.png
type: application
version: 0.5.3
version: 0.5.4
appVersion: d05df48
maintainers:
- name: WyriHaximus
Expand Down
14 changes: 12 additions & 2 deletions charts/docker-hub-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9170"
labels:
{{- include "commons.labels" . | nindent 8 }}
app: {{ template "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: {{ template "commons.name" . }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
appRevision: {{ template "commons.nameRevision" . }}
chart: {{ template "commons.chart" . }}
helm.sh/chart: {{ template "commons.chart" . }}
release: {{ .Release.Name }}
releaseRevision: {{ .Release.Revision | quote }}
heritage: {{ .Release.Service }}
spec:
containers:
- name: docker-hub-exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spec:
minAvailable: 1
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}
3 changes: 2 additions & 1 deletion charts/docker-hub-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
protocol: TCP
name: metrics
selector:
{{- include "commons.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/pi-hole-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Pi-Hole Exporter
home: https://github.com/eko/pihole-exporter
icon: https://helm.wyrihaximus.net/images/charts/pi-hole-exporter.png
type: application
version: 0.1.1
version: 0.1.2
appVersion: d05df48
maintainers:
- name: WyriHaximus
Expand Down
14 changes: 12 additions & 2 deletions charts/pi-hole-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9617"
labels:
{{- include "commons.labels" . | nindent 8 }}
app: {{ template "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: {{ template "commons.name" . }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
appRevision: {{ template "commons.nameRevision" . }}
chart: {{ template "commons.chart" . }}
helm.sh/chart: {{ template "commons.chart" . }}
release: {{ .Release.Name }}
releaseRevision: {{ .Release.Revision | quote }}
heritage: {{ .Release.Service }}
spec:
containers:
- name: pi-hole-exporter
Expand Down
3 changes: 2 additions & 1 deletion charts/pi-hole-exporter/templates/pod-disruption-budget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spec:
minAvailable: 1
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}
3 changes: 2 additions & 1 deletion charts/pi-hole-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
protocol: TCP
name: metrics
selector:
{{- include "commons.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/redirect/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Redirect
home: https://github.com/wyrihaximusnet/docker-redirect
icon: https://helm.wyrihaximus.net/images/charts/redirect.png
type: application
version: 0.9.3
version: 0.9.4
kubeVersion: ^1.18
appVersion: random
maintainers:
Expand Down
14 changes: 12 additions & 2 deletions charts/redirect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,24 @@ spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "7133"
labels:
{{- include "commons.labels" . | nindent 8 }}
app: {{ template "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/name: {{ template "commons.name" . }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
appRevision: {{ template "commons.nameRevision" . }}
chart: {{ template "commons.chart" . }}
helm.sh/chart: {{ template "commons.chart" . }}
release: {{ .Release.Name }}
releaseRevision: {{ .Release.Revision | quote }}
heritage: {{ .Release.Service }}
{{- toYaml .Values.labels | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
3 changes: 2 additions & 1 deletion charts/redirect/templates/pod-disruption-budget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ spec:
minAvailable: 1
selector:
matchLabels:
{{- include "commons.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}
3 changes: 2 additions & 1 deletion charts/redirect/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ spec:
protocol: TCP
name: http-metrics
selector:
{{- include "commons.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: {{ include "commons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}

0 comments on commit a8a7d52

Please sign in to comment.