mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47: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
|
@ -11,6 +11,13 @@ tests:
|
|||
enabled: true
|
||||
data:
|
||||
test: value 1
|
||||
test_default_enabled:
|
||||
data:
|
||||
test: value 1
|
||||
test_disabled:
|
||||
enabled: false
|
||||
data:
|
||||
test: value 1
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
|
@ -19,4 +26,4 @@ tests:
|
|||
equal:
|
||||
path: spec.template.metadata.annotations
|
||||
value:
|
||||
checksum/configMaps: afdf20f511621d5cb358c5e8b0da2d14cdbe2549fb12fa123f6a6e9baabef26e
|
||||
checksum/configMaps: 66d23d7a53c4e2a523ba85a969696b4ebb78ec5d79ab9c12c210c1569f48511b
|
||||
|
|
|
@ -54,6 +54,7 @@ tests:
|
|||
failedJobsHistory: &CronJobFailedJobsHistory 2
|
||||
successfulJobsHistory: &CronJobSuccessfulJobsHistory 3
|
||||
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
||||
parallelism: &CronJobParallelism 3
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
|
@ -86,3 +87,7 @@ tests:
|
|||
equal:
|
||||
path: spec.jobTemplate.spec.template.spec.restartPolicy
|
||||
value: OnFailure
|
||||
- documentIndex: *ControllerDoc
|
||||
equal:
|
||||
path: spec.jobTemplate.spec.parallelism
|
||||
value: *CronJobParallelism
|
||||
|
|
|
@ -35,6 +35,7 @@ tests:
|
|||
suspend: &JobSuspended true
|
||||
ttlSecondsAfterFinished: &ttlSecondsAfterFinished 3600
|
||||
backoffLimit: 3
|
||||
parallelism: &JobParallelism 3
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
|
@ -55,3 +56,7 @@ tests:
|
|||
equal:
|
||||
path: spec.backoffLimit
|
||||
value: 3
|
||||
- documentIndex: *ControllerDoc
|
||||
equal:
|
||||
path: spec.parallelism
|
||||
value: *JobParallelism
|
||||
|
|
|
@ -11,11 +11,14 @@ tests:
|
|||
enabled: true
|
||||
data:
|
||||
test: value 1
|
||||
secret_2:
|
||||
enabled: true
|
||||
secret_2: # default enabled
|
||||
data:
|
||||
test_1: value 1
|
||||
test_2: value 2
|
||||
test_disabled:
|
||||
enabled: false
|
||||
data:
|
||||
test: value 1
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v2
|
|||
name: common
|
||||
description: Function library for Helm charts
|
||||
type: library
|
||||
version: 2.5.0
|
||||
version: 2.6.0
|
||||
kubeVersion: ">=1.22.0-0"
|
||||
keywords:
|
||||
- common
|
||||
|
@ -16,19 +16,7 @@ annotations:
|
|||
artifacthub.io/changes: |-
|
||||
- kind: fixed
|
||||
description: |-
|
||||
PersistentVolumeClaims now properly created based on `persistence.x.enabled` value
|
||||
ConfigMap and Secret checksums take enabled state in to account again
|
||||
- kind: added
|
||||
description: |-
|
||||
Support suspending CronJobs
|
||||
- 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.
|
||||
Add support for specifying parallelism in CronJobs and Jobs
|
||||
|
|
|
@ -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: 2.5.0
|
||||
version: 2.6.0
|
||||
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.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.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.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 |
|
||||
|
@ -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.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.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.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 |
|
||||
|
@ -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
|
||||
|
||||
----------------------------------------------
|
||||
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 }}
|
||||
ttlSecondsAfterFinished: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $cronjobObject.cronjob.parallelism }}
|
||||
parallelism: {{ . }}
|
||||
{{- end }}
|
||||
backoffLimit: {{ $cronjobObject.cronjob.backoffLimit }}
|
||||
template:
|
||||
metadata:
|
||||
|
|
|
@ -33,6 +33,15 @@ spec:
|
|||
{{- with $jobObject.job.ttlSecondsAfterFinished }}
|
||||
ttlSecondsAfterFinished: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.parallelism }}
|
||||
parallelism: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.completions }}
|
||||
completions: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.completionMode }}
|
||||
completionMode: {{ . }}
|
||||
{{- end }}
|
||||
backoffLimit: {{ $jobObject.job.backoffLimit }}
|
||||
template:
|
||||
metadata:
|
||||
|
|
|
@ -25,7 +25,11 @@ Returns the value for annotations
|
|||
{{- /* Add configMaps checksum */ -}}
|
||||
{{- $configMapsFound := dict -}}
|
||||
{{- 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) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
@ -39,7 +43,11 @@ Returns the value for annotations
|
|||
{{- /* Add Secrets checksum */ -}}
|
||||
{{- $secretsFound := dict -}}
|
||||
{{- 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) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -154,6 +154,8 @@ controllers:
|
|||
ttlSecondsAfterFinished:
|
||||
# -- Limits the number of times a failed job will be retried
|
||||
backoffLimit: 6
|
||||
# -- Specify the number of parallel jobs
|
||||
parallelism:
|
||||
|
||||
# -- Job configuration. Required only when using `controller.type: job`.
|
||||
# @default -- See below
|
||||
|
@ -167,6 +169,12 @@ controllers:
|
|||
ttlSecondsAfterFinished:
|
||||
# -- Limits the number of times a failed job will be retried
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue