-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(hook): add ability to set hook annotaitons
- Loading branch information
1 parent
ac1df15
commit a590495
Showing
6 changed files
with
54 additions
and
2 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.*.yaml | ||
test.*.* | ||
.idea |
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 |
---|---|---|
|
@@ -10,6 +10,6 @@ maintainers: | |
|
||
type: application | ||
|
||
version: 0.1.1 | ||
version: 0.1.2 | ||
|
||
appVersion: "0.8.7" |
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
File renamed without changes.
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 @@ | ||
suite: hook tests | ||
templates: | ||
- hook-create-keys.yaml | ||
- hook-rbac.yaml | ||
tests: | ||
- it: should template the create-keys hook if generateKeysOnStart is true | ||
set: | ||
common.keys.generateKeysOnStart: true | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
template: hook-create-keys.yaml | ||
- hasDocuments: | ||
count: 3 | ||
template: hook-rbac.yaml | ||
- isKind: | ||
of: Job | ||
template: hook-create-keys.yaml | ||
- isKind: | ||
of: ServiceAccount | ||
template: hook-rbac.yaml | ||
documentIndex: 0 | ||
- isKind: | ||
of: Role | ||
template: hook-rbac.yaml | ||
documentIndex: 1 | ||
- isKind: | ||
of: RoleBinding | ||
template: hook-rbac.yaml | ||
documentIndex: 2 | ||
- it: should create annotations on the job if set | ||
set: | ||
common.keys.generateKeysOnStart: true | ||
hook.extraAnnotations: | ||
foo: bar | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
template: hook-create-keys.yaml | ||
- equal: | ||
path: metadata.annotations.foo | ||
value: bar | ||
documentIndex: 0 | ||
template: hook-create-keys.yaml |
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