This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See: https://olegk.dev/go-linters-configuration-the-right-version | |
| run: | |
| # Depends on your hardware, my laptop can survive 8 threads. | |
| concurrency: 8 | |
| # I really care about the result, so I'm fine to wait for it. | |
| timeout: 30m | |
| # Fail if the error was met. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Small utility function based on yq to extract openAPIV3Schema from CRD | |
| # example: crd2jsonschema.sh ./crd-alertmanager.yaml | |
| set -e | |
| function crd2jsonschema() { | |
| set -e | |
| local xkgroup="x-kubernetes-group-version-kind" | |
| local document="$1" | |
| local openAPIV3Schema=$(mktemp -u) |