feat(common): Release v2.6.0 (#268)

This commit is contained in:
Bernd Schorgers 2024-02-14 13:30:12 +01:00 committed by GitHub
parent fab610df73
commit 903f7d6780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 68 additions and 28 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
# common
![Version: 2.5.0](https://img.shields.io/badge/Version-2.5.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 2.6.0](https://img.shields.io/badge/Version-2.6.0-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: 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)

View file

@ -48,6 +48,9 @@ spec:
{{- with $cronjobObject.cronjob.ttlSecondsAfterFinished }}
ttlSecondsAfterFinished: {{ . }}
{{- end }}
{{- with $cronjobObject.cronjob.parallelism }}
parallelism: {{ . }}
{{- end }}
backoffLimit: {{ $cronjobObject.cronjob.backoffLimit }}
template:
metadata:

View file

@ -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:

View file

@ -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 -}}

View file

@ -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: