forked from open-cluster-management-io/policy-collection
-
Notifications
You must be signed in to change notification settings - Fork 34
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
2181107
commit 4e75f58
Showing
6 changed files
with
87 additions
and
381 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# This policy deploys Triliovault for Kubernetes (TVK) to all non-OpenShift clusters | ||
# This policy deploys Triliovault for Kubernetes (TVK) to all non-OpenShift clusters | ||
# with a label "protected-by=triliovault" using Helm. To deploy a basic (trial) license, | ||
# use the policy to deploy license for Triliovault for Kubernetes available at | ||
# ./CM-Configuration-Management/policy-create-license-triliovault-for-kubernetes-upstream.yaml. | ||
# use the policy to deploy license for Triliovault for Kubernetes available at | ||
# ./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 | ||
# ACM hub. The PlacementRule inside the Policy is what determines which clusters | ||
# You must make sure the Placement for the Policy installs the policy on the | ||
# ACM hub. The Placement 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 | ||
# Please refer product documentation at https://docs.trilio.io/kubernetes/overview/readme | ||
apiVersion: policy.open-cluster-management.io/v1 | ||
kind: Policy | ||
metadata: | ||
|
@@ -59,7 +59,7 @@ spec: | |
metadata: | ||
name: policy-tvk-application | ||
spec: | ||
remediationAction: enforce | ||
remediationAction: enforce | ||
severity: high | ||
object-templates: | ||
- complianceType: musthave | ||
|
@@ -99,7 +99,7 @@ spec: | |
name: hchartsk8strilionet-trilio-chart | ||
namespace: hchartsk8strilionet-trilio-chart-ns | ||
spec: | ||
pathname: 'https://charts.k8strilio.net/trilio-stable/k8s-triliovault-operator' | ||
pathname: "https://charts.k8strilio.net/trilio-stable/k8s-triliovault-operator" | ||
type: HelmRepo | ||
- objectDefinition: | ||
apiVersion: policy.open-cluster-management.io/v1 | ||
|
@@ -125,63 +125,5 @@ spec: | |
name: k8s-triliovault-operator | ||
channel: hchartsk8strilionet-trilio-chart-ns/hchartsk8strilionet-trilio-chart | ||
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 | ||
- packageName: k8s-triliovault-operator | ||
packageAlias: k8s-triliovault-operator |
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
Oops, something went wrong.