Format all files with prettier VSCode plugin and add yamllint in CI #413

Merged
pat-s merged 10 commits from format-files into main 2023-03-28 21:18:23 +00:00
7 changed files with 9 additions and 9 deletions
Showing only changes of commit 7d67a77627 - Show all commits

View File

@ -28,7 +28,7 @@ steps:
image: alpine:3.17
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make helm git bash
- helm plugin install https://github.com/heyhabito/helm-unittest
- helm plugin install https://github.com/helm-unittest/helm-unittest
- helm dependency update
- make unittests

View File

@ -56,7 +56,7 @@ be used:
```bash
# install the unittest plugin
$ helm plugin install https://github.com/heyhabito/helm-unittest
$ helm plugin install https://github.com/helm-unittest/helm-unittest
# run the unittests
make unittests

View File

@ -9,4 +9,4 @@ readme: prepare-environment
.PHONY: unittests
unittests:
helm unittest --helm3 --strict -f 'unittests/**/*.yaml' ./
helm unittest --strict -f 'unittests/**/*.yaml' ./

View File

@ -543,7 +543,7 @@ signing:
Regardless of the used container image the `signing` object allows to specify a
private gpg key. Either using the `signing.privateKey` to define the key inline,
or refer to an existing secret containing the key data by using `signing.existingKey`.
or refer to an existing secret containing the key data by using `signing.existingSecret`.
```yaml
apiVersion: v1

View File

@ -1,6 +1,6 @@
{{- if .Values.signing.enabled -}}
{{- if and (empty .Values.signing.privateKey) (empty .Values.signing.existingSecret) -}}
{{- fail "Either specify `signing.privateKey` or `signing.existingKey`" -}}
{{- fail "Either specify `signing.privateKey` or `signing.existingSecret`" -}}
{{- end }}
{{- if and (not (empty .Values.signing.privateKey)) (empty .Values.signing.existingSecret) -}}
apiVersion: v1

View File

@ -11,7 +11,7 @@ tests:
enabled: true
asserts:
- failedTemplate:
errorMessage: Either specify `signing.privateKey` or `signing.existingKey`
errorMessage: Either specify `signing.privateKey` or `signing.existingSecret`
- it: skips rendering using external secret reference
set:
signing:

View File

@ -10,7 +10,7 @@ tests:
signing.enabled: true
asserts:
- equal:
path: stringData.[configure_gpg_environment.sh]
path: stringData["configure_gpg_environment.sh"]
value: |-
#!/usr/bin/env bash
set -eu
@ -19,7 +19,7 @@ tests:
- it: skips gpg script block for disabled signing
asserts:
- equal:
path: stringData.[init_directory_structure.sh]
path: stringData["init_directory_structure.sh"]
value: |-
#!/usr/bin/env bash
@ -40,7 +40,7 @@ tests:
signing.enabled: true
asserts:
- equal:
path: stringData.[init_directory_structure.sh]
path: stringData["init_directory_structure.sh"]
value: |-
#!/usr/bin/env bash