-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sast-coverity-check: use kustomize to build the task
... from the build-container task. The `hack/generate-sast-tasks.sh` script can be used to rebuild `sast-coverity-check.yaml`. Related: #1653
- Loading branch information
Showing
8 changed files
with
1,150 additions
and
261 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o errtrace | ||
set -o nounset | ||
set -o pipefail | ||
set -o posix | ||
|
||
shopt -s globstar nullglob | ||
|
||
HACK_DIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" | ||
ROOT_DIR="$(git rev-parse --show-toplevel)" | ||
TASK_DIR="$(realpath "${ROOT_DIR}/task")" | ||
|
||
# sast-coverity-check of version 0.2 and newer uses kustomize to build the task | ||
# definition from the buildah task and a locally maintained patch.yaml | ||
for dir in "${TASK_DIR}/sast-coverity-check"/0.[2-9]; do ( | ||
cd "$dir" && kustomize build > sast-coverity-check.yaml | ||
) done |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../buildah/0.2 | ||
|
||
patches: | ||
- path: patch.yaml | ||
target: | ||
kind: Task |
Oops, something went wrong.