mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 17:54:43 -03:00
feat(common): allow for imagePullSecrets to be input in a list seperate from the dict for SCALE GUI
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 15.0.2
|
||||
version: 15.2.0
|
||||
|
||||
@@ -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" . -}}
|
||||
|
||||
@@ -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 -}}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user