-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete placementrule and placementbinding under configurationPolicy
Signed-off-by: yiraeChristineKim <[email protected]>
- Loading branch information
1 parent
c52ba30
commit 0544237
Showing
6 changed files
with
2 additions
and
305 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 |
---|---|---|
|
@@ -4,10 +4,6 @@ | |
# ./CM-Configuration-Management/policy-create-license-triliovault-for-kubernetes-upstream.yaml. | ||
# Please conact [email protected] for further support. | ||
# | ||
# You must make sure the PlacementRule for the Policy installs the policy on the | ||
# Open Cluster Management hub. The PlacementRule inside the Policy is what determines which clusters | ||
# TVK will be installed on. | ||
# | ||
# Note that it is set to enforce by default. | ||
# | ||
# Please refer product documentation at https://docs.trilio.io/kubernetes/overview/readme | ||
|
@@ -127,61 +123,4 @@ spec: | |
packageOverrides: | ||
- packageName: k8s-triliovault-operator | ||
packageAlias: k8s-triliovault-operator | ||
placement: | ||
placementRef: | ||
name: placement-policy-tvk-1 | ||
kind: PlacementRule | ||
- objectDefinition: | ||
apiVersion: policy.open-cluster-management.io/v1 | ||
kind: ConfigurationPolicy | ||
metadata: | ||
name: policy-tvk-placement | ||
spec: | ||
remediationAction: enforce | ||
severity: high | ||
object-templates: | ||
- complianceType: musthave | ||
objectDefinition: | ||
apiVersion: apps.open-cluster-management.io/v1 | ||
kind: PlacementRule | ||
metadata: | ||
name: placement-policy-tvk-1 | ||
namespace: trilio-system | ||
labels: | ||
app: tvk | ||
spec: | ||
clusterSelector: | ||
matchExpressions: | ||
- key: vendor | ||
operator: NotIn | ||
values: | ||
- OpenShift | ||
- key: protected-by | ||
operator: In | ||
values: | ||
- triliovault | ||
--- | ||
apiVersion: apps.open-cluster-management.io/v1 | ||
kind: PlacementRule | ||
metadata: | ||
name: install-tvk-placement | ||
spec: | ||
clusterSelector: | ||
matchExpressions: | ||
- key: name | ||
operator: In | ||
values: | ||
- local-cluster | ||
--- | ||
apiVersion: policy.open-cluster-management.io/v1 | ||
kind: PlacementBinding | ||
metadata: | ||
name: install-tvk-placement | ||
placementRef: | ||
name: install-tvk-placement | ||
apiGroup: apps.open-cluster-management.io | ||
kind: PlacementRule | ||
subjects: | ||
- name: install-tvk-helm | ||
apiGroup: policy.open-cluster-management.io | ||
kind: Policy | ||
|
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