mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
feat(common): Release common library 3.7.1 (#383)
Co-authored-by: Aisling McGinn <me@aisling.dev>
This commit is contained in:
parent
c94a28baa3
commit
433f6d132b
146 changed files with 232 additions and 222 deletions
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"$ref": "file://../common/values.schema.json"
|
||||
}
|
|
@ -24,5 +24,10 @@
|
|||
OWNERS
|
||||
# helm-docs templates
|
||||
*.gotmpl
|
||||
|
||||
# Schema files
|
||||
schemas/
|
||||
|
||||
# Test files
|
||||
tests/
|
||||
test/
|
||||
unittests/
|
||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v2
|
|||
name: common
|
||||
description: Function library for Helm charts
|
||||
type: library
|
||||
version: 3.7.0
|
||||
version: 3.7.1
|
||||
kubeVersion: ">=1.22.0-0"
|
||||
keywords:
|
||||
- common
|
||||
|
@ -16,22 +16,8 @@ annotations:
|
|||
artifacthub.io/changes: |-
|
||||
- kind: fixed
|
||||
description: |-
|
||||
Raw resources with `forceRename` fields are no longer flagged as invalid
|
||||
- kind: added
|
||||
Values schema is now dereferenced before packaging so it no longer relies on
|
||||
internet connectivity to validate the schema.
|
||||
- kind: fixed
|
||||
description: |-
|
||||
Allow setting pullPolicy to Never
|
||||
- kind: added
|
||||
description: |-
|
||||
Revamped configMap.fromFiles into configMap.fromFolder
|
||||
- kind: added
|
||||
description: |-
|
||||
Add support for setting shareProcessNamespace on Pods
|
||||
- kind: added
|
||||
description: |-
|
||||
Add support for templating ServiceMonitor endpoints
|
||||
- kind: added
|
||||
description: |-
|
||||
Add support for templating Pod affinity
|
||||
- kind: added
|
||||
description: |-
|
||||
Add support for configuring gRPC probes
|
||||
Add explicit namespace declaration to templates using Release.Namespace
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# common
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
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.7.0
|
||||
version: 3.7.1
|
||||
repository: https://bjw-s.github.io/helm-charts/
|
||||
```
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
{{- with $configMapObject.data }}
|
||||
data:
|
||||
{{- tpl (toYaml .) $rootContext | nindent 2 }}
|
||||
|
|
|
@ -39,6 +39,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
suspend: {{ default false $cronJobSettings.suspend }}
|
||||
concurrencyPolicy: {{ default "Forbid" $cronJobSettings.concurrencyPolicy }}
|
||||
|
|
|
@ -32,6 +32,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
revisionHistoryLimit: {{ include "bjw-s.common.lib.defaultKeepNonNullValue" (dict "value" $daemonsetObject.revisionHistoryLimit "default" 3) }}
|
||||
selector:
|
||||
|
|
|
@ -32,6 +32,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
revisionHistoryLimit: {{ include "bjw-s.common.lib.defaultKeepNonNullValue" (dict "value" $deploymentObject.revisionHistoryLimit "default" 3) }}
|
||||
{{- if hasKey $deploymentObject "replicas" }}
|
||||
|
|
|
@ -32,6 +32,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
{{- if $ingressObject.className }}
|
||||
ingressClassName: {{ $ingressObject.className }}
|
||||
|
|
|
@ -34,6 +34,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
suspend: {{ default false $jobSettings.suspend }}
|
||||
{{- with $jobSettings.activeDeadlineSeconds }}
|
||||
|
|
|
@ -41,6 +41,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
podSelector: {{- toYaml $podSelector | nindent 4 }}
|
||||
{{- with $networkPolicyObject.policyTypes }}
|
||||
|
|
|
@ -38,6 +38,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- {{ required (printf "accessMode is required for PVC %v" $pvcObject.name) $pvcObject.accessMode | quote }}
|
||||
|
|
|
@ -39,6 +39,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
parentRefs:
|
||||
{{- range $routeObject.parentRefs }}
|
||||
|
|
|
@ -39,6 +39,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
{{- with $stringData }}
|
||||
stringData: {{- tpl $stringData $rootContext | nindent 2 }}
|
||||
{{- end }}
|
||||
|
|
|
@ -34,6 +34,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
{{- if (eq $svcType "ClusterIP") }}
|
||||
type: ClusterIP
|
||||
|
|
|
@ -31,6 +31,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
secrets:
|
||||
- name: {{ get (include "bjw-s.common.lib.secret.getByIdentifier" (dict "rootContext" $rootContext "id" (printf "%s-sa-token" $serviceAccountObject.identifier) ) | fromYaml) "name"}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -26,6 +26,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
jobLabel: "{{ $serviceMonitorObject.name }}"
|
||||
namespaceSelector:
|
||||
|
|
|
@ -32,6 +32,7 @@ metadata:
|
|||
{{- printf "%s: %s" $key (tpl $value $rootContext | toYaml ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
namespace: {{ $rootContext.Release.Namespace }}
|
||||
spec:
|
||||
revisionHistoryLimit: {{ include "bjw-s.common.lib.defaultKeepNonNullValue" (dict "value" $statefulsetObject.revisionHistoryLimit "default" 3) }}
|
||||
replicas: {{ $statefulsetObject.replicas }}
|
||||
|
|
|
@ -22,9 +22,12 @@
|
|||
.vscode/
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
||||
|
||||
# helm-docs templates
|
||||
*.gotmpl
|
||||
|
||||
# helm unit tests
|
||||
tests/
|
||||
# Schema files
|
||||
schemas/
|
||||
|
||||
# Test files
|
||||
test-chart/
|
||||
unittests/
|
|
@ -9,5 +9,5 @@ maintainers:
|
|||
email: me@bjw-s.dev
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../common
|
||||
repository: file://../
|
||||
version: ">0.0.0-0"
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue