mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
feat(common): Release v2.6.0 (#268)
This commit is contained in:
parent
fab610df73
commit
903f7d6780
11 changed files with 68 additions and 28 deletions
10
.github/workflows/charts-test.yaml
vendored
10
.github/workflows/charts-test.yaml
vendored
|
@ -31,13 +31,13 @@ jobs:
|
||||||
chart: ${{ fromJSON(inputs.chartsToTest) }}
|
chart: ${{ fromJSON(inputs.chartsToTest) }}
|
||||||
k8s_version:
|
k8s_version:
|
||||||
[
|
[
|
||||||
"v1.22.17",
|
|
||||||
"v1.23.17",
|
"v1.23.17",
|
||||||
"v1.24.17",
|
"v1.24.17",
|
||||||
"v1.25.13",
|
"v1.25.16",
|
||||||
"v1.26.8",
|
"v1.26.13",
|
||||||
"v1.27.5",
|
"v1.27.10",
|
||||||
"v1.28.1",
|
"v1.28.6",
|
||||||
|
"v1.29.1",
|
||||||
]
|
]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -11,6 +11,13 @@ tests:
|
||||||
enabled: true
|
enabled: true
|
||||||
data:
|
data:
|
||||||
test: value 1
|
test: value 1
|
||||||
|
test_default_enabled:
|
||||||
|
data:
|
||||||
|
test: value 1
|
||||||
|
test_disabled:
|
||||||
|
enabled: false
|
||||||
|
data:
|
||||||
|
test: value 1
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: &ControllerDoc 0
|
- documentIndex: &ControllerDoc 0
|
||||||
isKind:
|
isKind:
|
||||||
|
@ -19,4 +26,4 @@ tests:
|
||||||
equal:
|
equal:
|
||||||
path: spec.template.metadata.annotations
|
path: spec.template.metadata.annotations
|
||||||
value:
|
value:
|
||||||
checksum/configMaps: afdf20f511621d5cb358c5e8b0da2d14cdbe2549fb12fa123f6a6e9baabef26e
|
checksum/configMaps: 66d23d7a53c4e2a523ba85a969696b4ebb78ec5d79ab9c12c210c1569f48511b
|
||||||
|
|
|
@ -54,6 +54,7 @@ tests:
|
||||||
failedJobsHistory: &CronJobFailedJobsHistory 2
|
failedJobsHistory: &CronJobFailedJobsHistory 2
|
||||||
successfulJobsHistory: &CronJobSuccessfulJobsHistory 3
|
successfulJobsHistory: &CronJobSuccessfulJobsHistory 3
|
||||||
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
||||||
|
parallelism: &CronJobParallelism 3
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: &ControllerDoc 0
|
- documentIndex: &ControllerDoc 0
|
||||||
isKind:
|
isKind:
|
||||||
|
@ -86,3 +87,7 @@ tests:
|
||||||
equal:
|
equal:
|
||||||
path: spec.jobTemplate.spec.template.spec.restartPolicy
|
path: spec.jobTemplate.spec.template.spec.restartPolicy
|
||||||
value: OnFailure
|
value: OnFailure
|
||||||
|
- documentIndex: *ControllerDoc
|
||||||
|
equal:
|
||||||
|
path: spec.jobTemplate.spec.parallelism
|
||||||
|
value: *CronJobParallelism
|
||||||
|
|
|
@ -35,6 +35,7 @@ tests:
|
||||||
suspend: &JobSuspended true
|
suspend: &JobSuspended true
|
||||||
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
||||||
backoffLimit: 3
|
backoffLimit: 3
|
||||||
|
parallelism: &JobParallelism 3
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: &ControllerDoc 0
|
- documentIndex: &ControllerDoc 0
|
||||||
isKind:
|
isKind:
|
||||||
|
@ -55,3 +56,7 @@ tests:
|
||||||
equal:
|
equal:
|
||||||
path: spec.backoffLimit
|
path: spec.backoffLimit
|
||||||
value: 3
|
value: 3
|
||||||
|
- documentIndex: *ControllerDoc
|
||||||
|
equal:
|
||||||
|
path: spec.parallelism
|
||||||
|
value: *JobParallelism
|
||||||
|
|
|
@ -11,11 +11,14 @@ tests:
|
||||||
enabled: true
|
enabled: true
|
||||||
data:
|
data:
|
||||||
test: value 1
|
test: value 1
|
||||||
secret_2:
|
secret_2: # default enabled
|
||||||
enabled: true
|
|
||||||
data:
|
data:
|
||||||
test_1: value 1
|
test_1: value 1
|
||||||
test_2: value 2
|
test_2: value 2
|
||||||
|
test_disabled:
|
||||||
|
enabled: false
|
||||||
|
data:
|
||||||
|
test: value 1
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: &ControllerDoc 0
|
- documentIndex: &ControllerDoc 0
|
||||||
isKind:
|
isKind:
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v2
|
||||||
name: common
|
name: common
|
||||||
description: Function library for Helm charts
|
description: Function library for Helm charts
|
||||||
type: library
|
type: library
|
||||||
version: 2.5.0
|
version: 2.6.0
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- common
|
- common
|
||||||
|
@ -16,19 +16,7 @@ annotations:
|
||||||
artifacthub.io/changes: |-
|
artifacthub.io/changes: |-
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: |-
|
description: |-
|
||||||
PersistentVolumeClaims now properly created based on `persistence.x.enabled` value
|
ConfigMap and Secret checksums take enabled state in to account again
|
||||||
- kind: added
|
- kind: added
|
||||||
description: |-
|
description: |-
|
||||||
Support suspending CronJobs
|
Add support for specifying parallelism in CronJobs and Jobs
|
||||||
- kind: added
|
|
||||||
description: |-
|
|
||||||
Add support for targetLabels in ServiceMonitor
|
|
||||||
- kind: added
|
|
||||||
description: |-
|
|
||||||
Re-add support for setting mountPropagation on volumemounts
|
|
||||||
- kind: added
|
|
||||||
description: |-
|
|
||||||
Support `envFrom` identifiers and name templates for Secrets and ConfigMaps
|
|
||||||
- kind: added
|
|
||||||
description: |-
|
|
||||||
Support the `job` controller type to generate one-off jobs.
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# common
|
# common
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Function library for Helm charts
|
Function library for Helm charts
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Include this chart as a dependency in your `Chart.yaml` e.g.
|
||||||
# Chart.yaml
|
# Chart.yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
version: 2.5.0
|
version: 2.6.0
|
||||||
repository: https://bjw-s.github.io/helm-charts/
|
repository: https://bjw-s.github.io/helm-charts/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ The following table contains an overview of available values and their descripti
|
||||||
| controllers.main.cronjob.backoffLimit | int | `6` | Limits the number of times a failed job will be retried |
|
| controllers.main.cronjob.backoffLimit | int | `6` | Limits the number of times a failed job will be retried |
|
||||||
| controllers.main.cronjob.concurrencyPolicy | string | `"Forbid"` | Specifies how to treat concurrent executions of a job that is created by this cron job valid values are Allow, Forbid or Replace |
|
| controllers.main.cronjob.concurrencyPolicy | string | `"Forbid"` | Specifies how to treat concurrent executions of a job that is created by this cron job valid values are Allow, Forbid or Replace |
|
||||||
| controllers.main.cronjob.failedJobsHistory | int | `1` | The number of failed Jobs to keep |
|
| controllers.main.cronjob.failedJobsHistory | int | `1` | The number of failed Jobs to keep |
|
||||||
|
| controllers.main.cronjob.parallelism | string | `nil` | Specify the number of parallel jobs |
|
||||||
| controllers.main.cronjob.schedule | string | `"*/20 * * * *"` | Sets the CronJob time when to execute your jobs |
|
| controllers.main.cronjob.schedule | string | `"*/20 * * * *"` | Sets the CronJob time when to execute your jobs |
|
||||||
| controllers.main.cronjob.startingDeadlineSeconds | int | `30` | The deadline in seconds for starting the job if it misses its scheduled time for any reason |
|
| controllers.main.cronjob.startingDeadlineSeconds | int | `30` | The deadline in seconds for starting the job if it misses its scheduled time for any reason |
|
||||||
| controllers.main.cronjob.successfulJobsHistory | int | `1` | The number of succesful Jobs to keep |
|
| controllers.main.cronjob.successfulJobsHistory | int | `1` | The number of succesful Jobs to keep |
|
||||||
|
@ -100,6 +101,9 @@ The following table contains an overview of available values and their descripti
|
||||||
| controllers.main.initContainers | object | `{}` | Specify any initContainers here as dictionary items. Each initContainer should have its own key initContainers get sorted alphanumerically by the `<order>-<identifier>` combination if no order or dependsOn has been configured for them. |
|
| controllers.main.initContainers | object | `{}` | Specify any initContainers here as dictionary items. Each initContainer should have its own key initContainers get sorted alphanumerically by the `<order>-<identifier>` combination if no order or dependsOn has been configured for them. |
|
||||||
| controllers.main.job | object | See below | Job configuration. Required only when using `controller.type: job`. |
|
| controllers.main.job | object | See below | Job configuration. Required only when using `controller.type: job`. |
|
||||||
| controllers.main.job.backoffLimit | int | `6` | Limits the number of times a failed job will be retried |
|
| controllers.main.job.backoffLimit | int | `6` | Limits the number of times a failed job will be retried |
|
||||||
|
| controllers.main.job.completionMode | string | `nil` | Specify the completionMode for the job |
|
||||||
|
| controllers.main.job.completions | string | `nil` | Specify the number of completions for the job |
|
||||||
|
| controllers.main.job.parallelism | string | `nil` | Specify the number of parallel jobs |
|
||||||
| controllers.main.job.suspend | string | false | Suspends the Job [[ref]](https://kubernetes.io/docs/concepts/workloads/controllers/job/#suspending-a-job) |
|
| controllers.main.job.suspend | string | false | Suspends the Job [[ref]](https://kubernetes.io/docs/concepts/workloads/controllers/job/#suspending-a-job) |
|
||||||
| controllers.main.job.ttlSecondsAfterFinished | string | `nil` | If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. |
|
| controllers.main.job.ttlSecondsAfterFinished | string | `nil` | If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. |
|
||||||
| controllers.main.labels | object | `{}` | Set labels on the deployment/statefulset/daemonset/cronjob/job |
|
| controllers.main.labels | object | `{}` | Set labels on the deployment/statefulset/daemonset/cronjob/job |
|
||||||
|
@ -231,4 +235,4 @@ The following table contains an overview of available values and their descripti
|
||||||
- Join the k8s-at-home [Discord](https://discord.gg/k8s-at-home) community
|
- Join the k8s-at-home [Discord](https://discord.gg/k8s-at-home) community
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
|
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
|
||||||
|
|
|
@ -48,6 +48,9 @@ spec:
|
||||||
{{- with $cronjobObject.cronjob.ttlSecondsAfterFinished }}
|
{{- with $cronjobObject.cronjob.ttlSecondsAfterFinished }}
|
||||||
ttlSecondsAfterFinished: {{ . }}
|
ttlSecondsAfterFinished: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with $cronjobObject.cronjob.parallelism }}
|
||||||
|
parallelism: {{ . }}
|
||||||
|
{{- end }}
|
||||||
backoffLimit: {{ $cronjobObject.cronjob.backoffLimit }}
|
backoffLimit: {{ $cronjobObject.cronjob.backoffLimit }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -33,6 +33,15 @@ spec:
|
||||||
{{- with $jobObject.job.ttlSecondsAfterFinished }}
|
{{- with $jobObject.job.ttlSecondsAfterFinished }}
|
||||||
ttlSecondsAfterFinished: {{ . }}
|
ttlSecondsAfterFinished: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with $jobObject.job.parallelism }}
|
||||||
|
parallelism: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $jobObject.job.completions }}
|
||||||
|
completions: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $jobObject.job.completionMode }}
|
||||||
|
completionMode: {{ . }}
|
||||||
|
{{- end }}
|
||||||
backoffLimit: {{ $jobObject.job.backoffLimit }}
|
backoffLimit: {{ $jobObject.job.backoffLimit }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -25,7 +25,11 @@ Returns the value for annotations
|
||||||
{{- /* Add configMaps checksum */ -}}
|
{{- /* Add configMaps checksum */ -}}
|
||||||
{{- $configMapsFound := dict -}}
|
{{- $configMapsFound := dict -}}
|
||||||
{{- range $name, $configmap := $rootContext.Values.configMaps -}}
|
{{- range $name, $configmap := $rootContext.Values.configMaps -}}
|
||||||
{{- if $configmap.enabled -}}
|
{{- $configMapEnabled := true -}}
|
||||||
|
{{- if hasKey $configmap "enabled" -}}
|
||||||
|
{{- $configMapEnabled = $configmap.enabled -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if $configMapEnabled -}}
|
||||||
{{- $_ := set $configMapsFound $name (toYaml $configmap.data | sha256sum) -}}
|
{{- $_ := set $configMapsFound $name (toYaml $configmap.data | sha256sum) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -39,7 +43,11 @@ Returns the value for annotations
|
||||||
{{- /* Add Secrets checksum */ -}}
|
{{- /* Add Secrets checksum */ -}}
|
||||||
{{- $secretsFound := dict -}}
|
{{- $secretsFound := dict -}}
|
||||||
{{- range $name, $secret := $rootContext.Values.secrets -}}
|
{{- range $name, $secret := $rootContext.Values.secrets -}}
|
||||||
{{- if $secret.enabled -}}
|
{{- $secretEnabled := true -}}
|
||||||
|
{{- if hasKey $secret "enabled" -}}
|
||||||
|
{{- $secretEnabled = $secret.enabled -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if $secretEnabled -}}
|
||||||
{{- $_ := set $secretsFound $name (toYaml $secret.stringData | sha256sum) -}}
|
{{- $_ := set $secretsFound $name (toYaml $secret.stringData | sha256sum) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -154,6 +154,8 @@ controllers:
|
||||||
ttlSecondsAfterFinished:
|
ttlSecondsAfterFinished:
|
||||||
# -- Limits the number of times a failed job will be retried
|
# -- Limits the number of times a failed job will be retried
|
||||||
backoffLimit: 6
|
backoffLimit: 6
|
||||||
|
# -- Specify the number of parallel jobs
|
||||||
|
parallelism:
|
||||||
|
|
||||||
# -- Job configuration. Required only when using `controller.type: job`.
|
# -- Job configuration. Required only when using `controller.type: job`.
|
||||||
# @default -- See below
|
# @default -- See below
|
||||||
|
@ -167,6 +169,12 @@ controllers:
|
||||||
ttlSecondsAfterFinished:
|
ttlSecondsAfterFinished:
|
||||||
# -- Limits the number of times a failed job will be retried
|
# -- Limits the number of times a failed job will be retried
|
||||||
backoffLimit: 6
|
backoffLimit: 6
|
||||||
|
# -- Specify the number of parallel jobs
|
||||||
|
parallelism:
|
||||||
|
# -- Specify the number of completions for the job
|
||||||
|
completions:
|
||||||
|
# -- Specify the completionMode for the job
|
||||||
|
completionMode:
|
||||||
|
|
||||||
# -- StatefulSet configuration. Required only when using `controller.type: statefulset`.
|
# -- StatefulSet configuration. Required only when using `controller.type: statefulset`.
|
||||||
statefulset:
|
statefulset:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue