feat(common): Release common-3.0.1

This commit is contained in:
Bernd Schorgers 2024-03-11 12:02:35 +01:00
parent 9fa045e337
commit 14e70ce553
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
18 changed files with 38 additions and 38 deletions

View file

@ -3,7 +3,7 @@ apiVersion: v2
name: common
description: Function library for Helm charts
type: library
version: 3.0.0
version: 3.0.1
kubeVersion: ">=1.22.0-0"
keywords:
- common

View file

@ -1,6 +1,6 @@
# common
![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 3.0.1](https://img.shields.io/badge/Version-3.0.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
Function library for Helm charts
@ -27,7 +27,7 @@ Include this chart as a dependency in your `Chart.yaml` e.g.
# Chart.yaml
dependencies:
- name: common
version: 3.0.0
version: 3.0.1
repository: https://bjw-s.github.io/helm-charts/
```

View file

@ -12,7 +12,7 @@ using the common library.
{{- end -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $cronjobObject.identifier)
(dict "app.kubernetes.io/component" $cronjobObject.identifier)
($cronjobObject.labels | default dict)
(include "bjw-s.common.lib.metadata.allLabels" $rootContext | fromYaml)
-}}

View file

@ -7,7 +7,7 @@ within the common library.
{{- $daemonsetObject := .object -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $daemonsetObject.identifier)
(dict "app.kubernetes.io/component" $daemonsetObject.identifier)
($daemonsetObject.labels | default dict)
(include "bjw-s.common.lib.metadata.allLabels" $rootContext | fromYaml)
-}}
@ -30,7 +30,7 @@ spec:
revisionHistoryLimit: {{ default 3 $daemonsetObject.revisionHistoryLimit }}
selector:
matchLabels:
common.bjw-s.dev/controller: {{ $daemonsetObject.identifier }}
app.kubernetes.io/component: {{ $daemonsetObject.identifier }}
{{- include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | nindent 6 }}
template:
metadata:

View file

@ -7,7 +7,7 @@ using the common library.
{{- $deploymentObject := .object -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $deploymentObject.identifier)
(dict "app.kubernetes.io/component" $deploymentObject.identifier)
($deploymentObject.labels | default dict)
(include "bjw-s.common.lib.metadata.allLabels" $rootContext | fromYaml)
-}}
@ -50,7 +50,7 @@ spec:
{{- end }}
selector:
matchLabels:
common.bjw-s.dev/controller: {{ $deploymentObject.identifier }}
app.kubernetes.io/component: {{ $deploymentObject.identifier }}
{{- include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | nindent 6 }}
template:
metadata:

View file

@ -7,7 +7,7 @@ within the common library.
{{- $jobObject := .object -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $jobObject.identifier)
(dict "app.kubernetes.io/component" $jobObject.identifier)
($jobObject.labels | default dict)
(include "bjw-s.common.lib.metadata.allLabels" $rootContext | fromYaml)
-}}

View file

@ -20,7 +20,7 @@ within the common library.
{{- else -}}
{{- $podSelector = dict "matchLabels" (merge
($networkPolicyObject.extraSelectorLabels | default dict)
(dict "common.bjw-s.dev/controller" $networkPolicyObject.controller)
(dict "app.kubernetes.io/component" $networkPolicyObject.controller)
(include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | fromYaml)
) -}}
{{- end -}}

View file

@ -96,7 +96,7 @@ spec:
{{- end -}}
{{- with (merge
($serviceObject.extraSelectorLabels | default dict)
(dict "common.bjw-s.dev/controller" $serviceObject.controller)
(dict "app.kubernetes.io/component" $serviceObject.controller)
(include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | fromYaml)
) }}
selector: {{- toYaml . | nindent 4 }}

View file

@ -7,7 +7,7 @@ within the common library.
{{- $statefulsetObject := .object -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $statefulsetObject.identifier)
(dict "app.kubernetes.io/component" $statefulsetObject.identifier)
($statefulsetObject.labels | default dict)
(include "bjw-s.common.lib.metadata.allLabels" $rootContext | fromYaml)
-}}
@ -38,7 +38,7 @@ spec:
{{- end }}
selector:
matchLabels:
common.bjw-s.dev/controller: {{ $statefulsetObject.identifier }}
app.kubernetes.io/component: {{ $statefulsetObject.identifier }}
{{- include "bjw-s.common.lib.metadata.selectorLabels" $rootContext | nindent 6 }}
serviceName: {{ include "bjw-s.common.lib.chart.names.fullname" $rootContext }}
template:

View file

@ -7,7 +7,7 @@ Returns the value for labels
{{- /* Default labels */ -}}
{{- $labels := merge
(dict "common.bjw-s.dev/controller" $controllerObject.identifier)
(dict "app.kubernetes.io/component" $controllerObject.identifier)
-}}
{{- /* Fetch the Pod selectorLabels */ -}}

View file

@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.0.0/charts/library/common/values.schema.json",
"$id": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.0.1/charts/library/common/values.schema.json",
"type": "object",
"properties": {