-
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.
Signed-off-by: Ievgenii Shepeliuk <[email protected]>
- Loading branch information
1 parent
6cc872b
commit 305bd71
Showing
5 changed files
with
105 additions
and
75 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,28 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://github.com/open-policy-agent/kube-mgmt", | ||
"title": "kube-mgmt helm values", | ||
|
||
"definitions": { | ||
"image": { | ||
"type": "object", "title": "OPA docker image configuration", "required": ["repository", "tag"], | ||
"properties": { | ||
"repository": {"type": "string"}, | ||
"tag": {"type": "string"}, | ||
"pullPolicy": {"type": "string", "default": "IfNotPresent"} | ||
} | ||
} | ||
}, | ||
|
||
"type": "object", "required": ["image", "mgmt"], "additionalProperties": true, | ||
"properties": { | ||
"image": {"$ref": "#/definitions/image"}, | ||
"mgmt": { | ||
"type": "object", "additionalProperties": true, "required": ["image", "enabled"], | ||
"properties": { | ||
"enabled": {"type": "boolean", "default": true}, | ||
"image": {"$ref": "#/definitions/image"} | ||
} | ||
} | ||
} | ||
} |
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,65 @@ | ||
suite: lint image and mgmt.image | ||
templates: | ||
- fake.yaml | ||
tests: | ||
- it: image is null | ||
set: | ||
image: null | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- (root): image is required | ||
- it: image.repository not string | ||
set: | ||
image: | ||
repository: 5 | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- image.repository: Invalid type. Expected: string, given: integer | ||
- it: image.tag not string | ||
set: | ||
image: | ||
tag: 5 | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- image.tag: Invalid type. Expected: string, given: integer | ||
- it: mgmt.image is null | ||
set: | ||
mgmt: | ||
image: null | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- mgmt: image is required | ||
- it: mgmt.image.repository not string | ||
set: | ||
mgmt: | ||
image: | ||
repository: 5 | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- mgmt.image.repository: Invalid type. Expected: string, given: integer | ||
- it: mgmt.image.tag not string | ||
set: | ||
mgmt: | ||
image: | ||
tag: 5 | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: | | ||
values don't meet the specifications of the schema(s) in the following chart(s): | ||
opa-kube-mgmt: | ||
- mgmt.image.tag: Invalid type. Expected: string, given: integer |
This file was deleted.
Oops, something went wrong.