-
Notifications
You must be signed in to change notification settings - Fork 4
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: Justin Kulikauskas <[email protected]>
- Loading branch information
1 parent
04afe59
commit 381f3a9
Showing
11 changed files
with
98 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright Contributors to the Open Cluster Management project | ||
|
||
// Package v1alpha1 contains experimental types which may be useful for policy "templates" | ||
// interacting with the ocm-io policy framework addon, but are not recommended for "real" use yet. | ||
// They can and will be changed or completely removed with no additional notice; be aware of this | ||
// when importing and using them. | ||
package v1alpha1 |
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,12 @@ | ||
// Copyright Contributors to the Open Cluster Management project | ||
|
||
// Package v1beta1 contains types which are useful or necessary for implementing a policy "template" | ||
// which will interact with the ocm-io policy framework addon. The types here are meant to be | ||
// embedded in a CRD, allowing utilities (defined elsewhere) to work with all templates more | ||
// generally. | ||
// | ||
// Code here can be changed over time, but the intent is to do so in a backwards-compatible way, and | ||
// not remove things without a deprecation notice. Code here is meant to be usable by templates, | ||
// even before it graduates to `v1`; based on historical trends, many types may begin here, but | ||
// should try to advance to something more stable once they've proven their worth. | ||
package v1beta1 |
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,8 @@ | ||
# /config | ||
|
||
This directory is a remnant of the kubebuilder scaffold. Since the PolicyCore is not meant to be a | ||
real CRD, many details have been removed here. The CRD and a sample instance remain as examples. | ||
|
||
The samples scaffolded by kubebuilder for projects are often out of date, *however* in this | ||
repository, the sample is tested in the fakepolicy "basic" suite to ensure that it is not missing | ||
any required fields, or any values that would be defaulted. |
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,10 @@ | ||
# FakePolicy | ||
|
||
This directory contains a controller for a FakePolicy CRD in the kubebuilder style (although with | ||
some changed details), which is meant to be used for testing features in the nucleus. Because of its | ||
purpose, the way it uses features is highly contrived and it might not always be a good example. | ||
|
||
## Test Suites | ||
|
||
The "basic" suite requires very specific namespaces and configmaps in the cluster, so it was | ||
separated from the other tests, which may add namespaces and other resources. |
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