update comments

This commit is contained in:
Stavros kois
2022-12-20 16:50:24 +02:00
parent c7e6a7b08d
commit 2a55ccc24c
2 changed files with 6 additions and 4 deletions

View File

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

View File

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