-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add job * add job * add job * add job
- Loading branch information
hadar-co
authored
Oct 27, 2022
1 parent
3961102
commit d375c62
Showing
1 changed file
with
44 additions
and
0 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,44 @@ | ||
description: > | ||
Automatically execute a Datree policy check as a job. | ||
parameters: | ||
cliArguments: | ||
default: '' | ||
description: Additional arguments to pass to the test command | ||
type: string | ||
helmArguments: | ||
default: '' | ||
description: Additional arguments to pass to the helm test command | ||
type: string | ||
isHelmChart: | ||
default: false | ||
description: Are we running the test on a Helm chart? | ||
type: boolean | ||
isKustomization: | ||
default: false | ||
description: Are we running the test on a Kustomization file? | ||
type: boolean | ||
kustomizeArguments: | ||
default: '' | ||
description: Additional arguments to pass to the kustomize test command | ||
type: string | ||
path: | ||
default: '**/*.yaml' | ||
description: Which file(s) to run the test on? | ||
type: string | ||
|
||
executor: default | ||
|
||
environment: | ||
- name: DATREE_TOKEN | ||
value: $DATREE_TOKEN | ||
|
||
steps: | ||
- checkout | ||
- test: | ||
cliArguments: <<parameters.cliArguments>> | ||
helmArguments: <<parameters.helmArguments>> | ||
isHelmChart: <<parameters.isHelmChart>> | ||
isKustomization: <<parameters.isKustomization>> | ||
kustomizeArguments: <<parameters.kustomizeArguments>> | ||
path: <<parameters.path>> |