-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a new field, object-templates-raw, that allows users to paste in an object template. This makes multiline templates, like those using the range keyword, possible. It can be set instead of object-templates, but both cannot be set. ref: https://issues.redhat.com/browse/ACM-2739?filter=-1 Signed-off-by: Will Kutler <wkutler@redhat.com>
- Loading branch information
1 parent
ebefbd0
commit 03101f6
Showing
14 changed files
with
637 additions
and
20 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,11 @@ | ||
resources: | ||
- policy.open-cluster-management.io_configurationpolicies.yaml | ||
|
||
# Add validation more complicated than Kubebuilder markers can provide | ||
patches: | ||
- path: obj-template-validation.json | ||
target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: configurationpolicies.policy.open-cluster-management.io |
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,11 @@ | ||
[ | ||
{ | ||
"op":"add", | ||
"path":"/spec/versions/0/schema/openAPIV3Schema/properties/spec/oneOf", | ||
"value": [{ | ||
"required": ["object-templates"] | ||
},{ | ||
"required": ["object-templates-raw"] | ||
}] | ||
} | ||
] |
Oops, something went wrong.