mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-23 06:08:46 +00:00
Linting yamls with yamllint 🏷
Next update of plumbing will enable `yamllint` check, so this make
sure we have linted yaml before 👼
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This commit is contained in:
parent
a2c1c09bfc
commit
5c2ab7d6c3
35
.yamllint
Normal file
35
.yamllint
Normal file
@ -0,0 +1,35 @@
|
||||
ignore: |
|
||||
/vendor
|
||||
|
||||
rules:
|
||||
braces: enable
|
||||
brackets: enable
|
||||
colons: enable
|
||||
commas: enable
|
||||
comments:
|
||||
level: warning
|
||||
comments-indentation:
|
||||
level: warning
|
||||
document-end: disable
|
||||
document-start: disable
|
||||
empty-lines: enable
|
||||
empty-values: enable
|
||||
hyphens: enable
|
||||
key-duplicates: enable
|
||||
key-ordering: disable
|
||||
line-length: disable
|
||||
new-line-at-end-of-file: disable
|
||||
new-lines: enable
|
||||
octal-values: enable
|
||||
quoted-strings: disable
|
||||
trailing-spaces: enable
|
||||
truthy:
|
||||
level: warning
|
||||
|
||||
# accept both key:
|
||||
# - item
|
||||
#
|
||||
# and key:
|
||||
# - item
|
||||
indentation:
|
||||
indent-sequences: whatever
|
@ -52,4 +52,3 @@ spec:
|
||||
command: ["/usr/bin/tower-cli"]
|
||||
args:
|
||||
- "$(inputs.params.ARGS)"
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: Task
|
||||
metadata:
|
||||
|
@ -10,8 +10,8 @@ spec:
|
||||
default: "Dockerfile"
|
||||
- name: BUILDKIT_IMAGE
|
||||
description: The name of the BuildKit image
|
||||
# The image needs to be rootful because Tekton creates /builder/home/.docker/config.json owned by root:root with 0600
|
||||
# https://github.com/tektoncd/pipeline/issues/852
|
||||
# The image needs to be rootful because Tekton creates /builder/home/.docker/config.json owned by root:root with 0600
|
||||
# https://github.com/tektoncd/pipeline/issues/852
|
||||
default: "moby/buildkit:v0.6.2"
|
||||
resources:
|
||||
- name: source
|
||||
|
@ -38,7 +38,7 @@ spec:
|
||||
readOnly: true
|
||||
mountPath: /certs
|
||||
volumes:
|
||||
# buildkit-daemon-certs must contain ca.pem, cert.pem, and key.pem
|
||||
# buildkit-daemon-certs must contain ca.pem, cert.pem, and key.pem
|
||||
- name: certs
|
||||
secret:
|
||||
secretName: buildkit-daemon-certs
|
||||
|
@ -17,7 +17,7 @@ spec:
|
||||
annotations:
|
||||
container.apparmor.security.beta.kubernetes.io/buildkitd: unconfined
|
||||
container.seccomp.security.alpha.kubernetes.io/buildkitd: unconfined
|
||||
# see buildkit/docs/rootless.md for caveats of rootless mode
|
||||
# see buildkit/docs/rootless.md for caveats of rootless mode
|
||||
spec:
|
||||
containers:
|
||||
- name: buildkitd
|
||||
@ -35,7 +35,7 @@ spec:
|
||||
- /certs/key.pem
|
||||
- --oci-worker-no-process-sandbox
|
||||
securityContext:
|
||||
# To change UID/GID, you need to rebuild the image
|
||||
# To change UID/GID, you need to rebuild the image
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
ports:
|
||||
@ -45,7 +45,7 @@ spec:
|
||||
readOnly: true
|
||||
mountPath: /certs
|
||||
volumes:
|
||||
# buildkit-daemon-certs must contain ca.pem, cert.pem, and key.pem
|
||||
# buildkit-daemon-certs must contain ca.pem, cert.pem, and key.pem
|
||||
- name: certs
|
||||
secret:
|
||||
secretName: buildkit-daemon-certs
|
||||
|
@ -10,8 +10,8 @@ spec:
|
||||
default: "Dockerfile"
|
||||
- name: BUILDKIT_CLIENT_IMAGE
|
||||
description: The name of the BuildKit client (buildctl) image
|
||||
# The image needs to be rootful because Tekton creates /builder/home/.docker/config.json owned by root:root with 0600
|
||||
# https://github.com/tektoncd/pipeline/issues/852
|
||||
# The image needs to be rootful because Tekton creates /builder/home/.docker/config.json owned by root:root with 0600
|
||||
# https://github.com/tektoncd/pipeline/issues/852
|
||||
default: "moby/buildkit:v0.6.2"
|
||||
- name: BUILDKIT_DAEMON_ADDRESS
|
||||
description: The address of the BuildKit daemon (buildkitd) service
|
||||
|
@ -11,7 +11,7 @@ spec:
|
||||
description: flags to use for the test command
|
||||
default: --verbose
|
||||
- name: version
|
||||
default: golangci-lint version to use
|
||||
description: golangci-lint version to use
|
||||
default: "v1.17.1"
|
||||
- name: GOOS
|
||||
description: "running operating system target"
|
||||
|
@ -92,4 +92,3 @@ spec:
|
||||
args:
|
||||
- --dockerfile=$(inputs.params.DOCKERFILE)
|
||||
- --destination=$(outputs.resources.runtime-image.url)
|
||||
|
||||
|
@ -4,5 +4,4 @@ kind: ServiceAccount
|
||||
metadata:
|
||||
name: openwhisk-runtime-builder
|
||||
secrets:
|
||||
- name: dockerhub-user-pass
|
||||
|
||||
- name: dockerhub-user-pass
|
||||
|
Loading…
Reference in New Issue
Block a user