mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 23:19:15 +08:00
update comments
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
{{- $secretName := .secretName -}}
|
||||
{{- $data := .data -}}
|
||||
{{- $contentType := .contentType -}}
|
||||
{{- $secretType := .secretType -}}
|
||||
{{- $secretType := .secretType -}} {{/* Optional */}}
|
||||
{{- $secretLabels := .labels -}}
|
||||
{{- $secretAnnotations := .annotations -}}
|
||||
{{- $root := .root -}}
|
||||
|
||||
{{- $typeClass := "Opaque" -}}
|
||||
{{- if eq $contentType "certificate" -}}
|
||||
{{- $typeClass := "Opaque" -}} {{/* Default to Opaque */}}
|
||||
{{- if eq $contentType "certificate" -}} {{/* Certificate content has specific type */}}
|
||||
{{- $typeClass = (include "ix.v1.common.capabilities.secret.certificate.type" $root) -}}
|
||||
{{- else if eq $contentType "pullSecret" -}}
|
||||
{{- else if eq $contentType "pullSecret" -}} {{/* imagePullSecrets content has specific type */}}
|
||||
{{- $typeClass = (include "ix.v1.common.capabilities.secret.imagePullSecret.type" $root) -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ function cleanup {
|
||||
echo "🧹 Cleaning up charts..."
|
||||
rm -r "$common_test_path/charts"
|
||||
rm "$common_test_path/Chart.lock"
|
||||
# Clean snapshots
|
||||
rm -r "$common_test_path/**/__snapshot__" 2> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user