feat(common): Release 2.0.0-beta.3 (#179)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2023-09-15 09:06:38 +02:00 committed by Bernd Schorgers
parent 0c9516b56f
commit d5eb852bd5
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
3 changed files with 25 additions and 5 deletions

View file

@ -43,6 +43,8 @@ tests:
data:
type: configMap
name: myConfigMap
globalMounts:
- path: /globalTest
advancedMounts:
main:
main:
@ -60,6 +62,12 @@ tests:
- documentIndex: *DeploymentDoc
equal:
path: spec.template.spec.containers[0].volumeMounts[0]
value:
name: data
mountPath: /globalTest
- documentIndex: *DeploymentDoc
equal:
path: spec.template.spec.containers[0].volumeMounts[1]
value:
name: data
mountPath: /data/config.yaml
@ -67,6 +75,12 @@ tests:
- documentIndex: *DeploymentDoc
equal:
path: spec.template.spec.containers[1].volumeMounts[0]
value:
name: data
mountPath: /globalTest
- documentIndex: *DeploymentDoc
equal:
path: spec.template.spec.containers[1].volumeMounts[1]
value:
name: data
mountPath: /appdata/config

View file

@ -3,7 +3,7 @@ apiVersion: v2
name: common
description: Function library for Helm charts
type: library
version: 2.0.0-beta.2
version: 2.0.0-beta.3
kubeVersion: ">=1.22.0-0"
keywords:
- common
@ -15,11 +15,12 @@ maintainers:
annotations:
# TODO: Update this before releasing
artifacthub.io/changes: |-
- kind: changed
description: Many things :P
- kind: removed
description: |-
**BREAKING CHANGE** Removed support for add-ons. These can be configured through other means nowadays.
- kind: added
description: |-
**BREAKING CHANGE** Added support for managing multiple controllers / containers. This has introduced a number of breaking changes. Please see updated values.yaml
- kind: added
description: Added support for ordering (init)Containers within a controller.
- kind: added

View file

@ -32,8 +32,13 @@ volumeMounts used by the container.
{{- $mounts := list -}}
{{- if hasKey . "globalMounts" -}}
{{- $mounts = .globalMounts -}}
{{- else if hasKey . "advancedMounts" -}}
{{- $mounts = dig $controllerObject.identifier $containerObject.identifier list .advancedMounts -}}
{{- end -}}
{{- if hasKey . "advancedMounts" -}}
{{- $advancedMounts := dig $controllerObject.identifier $containerObject.identifier list .advancedMounts -}}
{{- range $advancedMounts -}}
{{- $mounts = append $mounts . -}}
{{- end -}}
{{- end -}}
{{- range $mounts -}}