mirror of
https://gitlab.com/deepcypher/dc-kc.git
synced 2026-01-27 11:12:08 +00:00
Fixed exit code and /kubeconform location
This commit is contained in:
@@ -313,7 +313,7 @@ spec:
|
||||
echo "******************************"
|
||||
dir=${dir%*/} # removes trailing "/"
|
||||
echo "helm template ${dir}"
|
||||
helm template "${dir}"/ > "/repository/templates/${dir}.yaml"
|
||||
helm template "${dir}"/ > "/repository/templates/${dir}.yaml" || exit 1
|
||||
done
|
||||
outputs:
|
||||
artifacts:
|
||||
@@ -342,7 +342,7 @@ spec:
|
||||
do
|
||||
echo "******************************"
|
||||
echo "helm testing ${file}"
|
||||
cat "${file}" | kubeconform -strict -kubernetes-version {{ "{{ inputs.parameters.k8s-version }}" }} \
|
||||
cat "${file}" | /kubeconform -strict -kubernetes-version {{ "{{ inputs.parameters.k8s-version }}" }} \
|
||||
-schema-location '../schemas/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
|
||||
-schema-location default \
|
||||
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}/{{ .ResourceKind }}{{ .KindSuffix }}.json' \
|
||||
|
||||
Reference in New Issue
Block a user