Skip to content

Commit

Permalink
Add option for team label (#76)
Browse files Browse the repository at this point in the history
* First check global exists

* Update charts dependencies
  • Loading branch information
gerardsegarra authored Jun 27, 2024
1 parent d299427 commit cc84650
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 9 deletions.
5 changes: 5 additions & 0 deletions charts/allure/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ helm.sh/chart: {{ include "allure.chart" . }}
app.kubernetes.io/version: {{ .Values.api.image.tag | default .Chart.AppVersion }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/errbot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "errbot.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/folding-at-home/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "fah.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/fossology/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ helm.sh/chart: {{ include "fossology.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{- define "fossology.scheduler.labels" -}}
Expand Down
8 changes: 4 additions & 4 deletions charts/librenms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ maintainers:
- name: David Girón
url: https://github.com/duhow

version: 0.3.0
version: 0.3.1
# renovate: datasource=docker depName=librenms/librenms
appVersion: 22.4.1

dependencies:
- name: mariadb
alias: mysql
repository: https://charts.bitnami.com/bitnami
version: 10.5.1
version: 11.5.7
condition: mysql.install
- name: memcached
repository: https://charts.bitnami.com/bitnami
version: 6.0.16
version: 6.14.0
condition: memcached.install
tags:
- distributed-poller
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 16.8.9
version: 16.13.2
condition: redis.install
tags:
- distributed-poller
5 changes: 5 additions & 0 deletions charts/librenms/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ helm.sh/chart: {{ include "librenms.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{- define "librenms.labels" -}}
Expand Down
6 changes: 5 additions & 1 deletion charts/nginx-static/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{/*
Selector labels
*/}}
Expand Down
5 changes: 5 additions & 0 deletions charts/salt/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ helm.sh/chart: {{ include "salt.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{- define "salt.labels" -}}
Expand Down
4 changes: 2 additions & 2 deletions charts/sshportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: sshportal
description: simple, fun and transparent SSH (and telnet) bastion server

type: application
version: 0.1.2
version: 0.1.3
# renovate: datasource=docker depName=moul/sshportal
appVersion: 1.19.3
home: https://github.com/moul/sshportal
Expand All @@ -13,5 +13,5 @@ sources:
dependencies:
- name: mariadb
alias: mysql
version: 10.3.7
version: 11.5.7
repository: https://charts.bitnami.com/bitnami
5 changes: 5 additions & 0 deletions charts/sshportal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "sshportal.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/static-page/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ helm.sh/chart: {{ include "docs.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/unifi-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "unifi.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
4 changes: 2 additions & 2 deletions charts/webhook-site/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ maintainers:
- name: David Girón
url: https://github.com/duhow

version: 0.0.3
version: 0.0.4
appVersion: "1.2"

dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 16.4.5
version: 16.13.2
condition: redis.install
5 changes: 5 additions & 0 deletions charts/webhook-site/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "webhook-site.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.global -}}
{{- if .Values.global.team }}
team: {{ .Values.global.team | quote }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down

0 comments on commit cc84650

Please sign in to comment.