feat(common): allow for imagePullSecrets to be input in a list seperate from the dict for SCALE GUI

This commit is contained in:
Kjeld Schouten
2023-11-18 11:39:56 +01:00
parent 128b52ca6d
commit cda7bdfbcd
5 changed files with 47 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ appVersion: ""
dependencies:
- name: common
repository: file://../common
version: ~15.0.0
version: ~15.2.0
deprecated: false
description: Helper chart to test different use cases of the common library
home: https://github.com/truecharts/apps/tree/master/charts/library/common-test

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 15.0.2
version: 15.2.0

View File

@@ -1,5 +1,7 @@
{{- define "tc.v1.common.loader.lists" -}}
{{- include "tc.v1.common.values.imagePullList" . -}}
{{- include "tc.v1.common.values.persistenceList" . -}}
{{- include "tc.v1.common.values.deviceList" . -}}

View File

@@ -0,0 +1,18 @@
{{- define "tc.v1.common.values.imagePullSecretList" -}}
{{- $rootCtx := . -}}
{{- range $idx, $imagePullSecretValues := $rootCtx.Values.imagePullSecretList -}}
{{- $name := (printf "pullSecret-list-%s" (toString $idx)) -}}
{{- with $imagePullSecretValues.name -}}
{{- $name = . -}}
{{- end -}}
{{- if not (hasKey $rootCtx.Values "imagePullSecret") -}}
{{- $_ := set $rootCtx.Values "imagePullSecret" dict -}}
{{- end -}}
{{- $_ := set $rootCtx.Values.imagePullSecret $name $imagePullSecretValues -}}
{{- end -}}
{{- end -}}

View File

@@ -326,7 +326,10 @@ ixCertificates: []
ixVolumes: []
# -- (docs/imagePullSecrets.md)
imagePullSecret: []
imagePullSecret: {}
# -- (docs/imagePullSecrets.md)
imagePullSecretList: []
# -- (docs/configmap.md)
configmap: {}
@@ -436,7 +439,7 @@ alpineImage:
scratchImage:
repository: tccr.io/truecharts/scratch
tag: latest@sha256:e7d1aaa6e29e7bcf3e3f13a8fc41803ca81b2614f72d11287ca4dcab4850bd99
tag: latest@sha256:7f821eeb99d04ac248c47f79cfbcc2482651fea48aff9ec5d2ba0ba34f1f5531
pullPolicy: IfNotPresent
kubectlImage:
@@ -498,6 +501,26 @@ ingress:
# -- Enables or disables the ingress
enabled: false
# -- Adds integrations to ingress
# integration:
# homepage:
# enabled: true
# # Default: chart name
# name: somename
# # Default: chart description
# description: some description
# group: somegroup
# # Default: chart icon
# icon: icon.png
# pod-selector: ""
# widget:
# # Default: chartname
# type: "sometype"
# # Default: host-path of first ingress
# url: "https://example.com"
# custom:
# - somesetting: some value
# -- Make this the primary ingress (used in probes, notes, etc...).
# If there is more than 1 ingress, make sure that only 1 ingress is marked as primary.
primary: true