-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template for ServiceAccount annotations
Signed-off-by: Chris Dueck <[email protected]>
- Loading branch information
1 parent
e862159
commit 358f1cc
Showing
5 changed files
with
48 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
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,15 @@ | ||
suite: lint serviceaccount | ||
templates: | ||
- fake.yaml | ||
tests: | ||
- it: annotations not string | ||
set: | ||
serviceAccount: | ||
annotations: | ||
foo: 1 | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- serviceAccount.annotations.foo: Invalid type. Expected: string, given: integer |
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 @@ | ||
suite: test serviceaccount annotations | ||
templates: | ||
- serviceaccount.yaml | ||
tests: | ||
- it: should omit serviceaccount annotations by default | ||
asserts: | ||
- notExists: | ||
path: metadata.annotations | ||
- it: should render serviceaccount annotations when provided | ||
set: | ||
serviceAccount: | ||
annotations: | ||
foo: bar | ||
asserts: | ||
- exists: | ||
path: metadata.annotations | ||
- equal: | ||
path: metadata.annotations.foo | ||
value: bar |