@@ -16,15 +16,14 @@ import (
1616)
1717
1818const (
19- case2ManagedClusterAddOnName string = "config-policy-controller"
20- case2ManagedClusterAddOnCR string = "../resources/config_policy_addon_cr.yaml"
21- case2ManagedClusterCustomNsAddOnCR string = "../resources/config_policy_addon_custom_ns.yaml"
22- case2ClusterManagementAddOnCR string = "../resources/config_policy_clustermanagementaddon.yaml"
23- case2DeploymentName string = "config-policy-controller"
24- case2PodSelector string = "app=config-policy-controller"
25- case2OpenShiftClusterClaim string = "../resources/openshift_cluster_claim.yaml"
26- policyCrdName string = "policies.policy.open-cluster-management.io"
27- deletionOrphanAnnotationKey string = "addon.open-cluster-management.io/deletion-orphan"
19+ case2ManagedClusterAddOnName string = "config-policy-controller"
20+ case2ManagedClusterAddOnCR string = "../resources/config_policy_addon_cr.yaml"
21+ case2ClusterManagementAddOnCR string = "../resources/config_policy_clustermanagementaddon.yaml"
22+ case2DeploymentName string = "config-policy-controller"
23+ case2PodSelector string = "app=config-policy-controller"
24+ case2OpenShiftClusterClaim string = "../resources/openshift_cluster_claim.yaml"
25+ policyCrdName string = "policies.policy.open-cluster-management.io"
26+ deletionOrphanAnnotationKey string = "addon.open-cluster-management.io/deletion-orphan"
2827)
2928
3029func verifyConfigPolicyDeployment (
@@ -406,8 +405,6 @@ var _ = Describe("Test config-policy-controller deployment", func() {
406405 It ("should create a config-policy-controller deployment with metrics monitoring on OpenShift clusters" , func () {
407406 Expect (managedClusterList ).ToNot (BeEmpty ())
408407 hubClient := managedClusterList [0 ].clusterClient
409- // A custom namespace is used to see if the openshift.io/cluster-monitoring label is set.
410- addonNamespace := "e2e-test-config-policy-controller"
411408
412409 for i , cluster := range managedClusterList {
413410 logPrefix := cluster .clusterType + " " + cluster .clusterName + ": "
@@ -446,7 +443,7 @@ var _ = Describe("Test config-policy-controller deployment", func() {
446443 // The status doesn't need to be checked on the deployment because the deployment requires a cert that
447444 // is auto-generated by OpenShift, which won't be present.
448445 By (logPrefix + "deploying the default config-policy-controller managedclusteraddon" )
449- Kubectl ("apply" , "-n" , cluster .clusterName , "-f" , case2ManagedClusterCustomNsAddOnCR )
446+ Kubectl ("apply" , "-n" , cluster .clusterName , "-f" , case2ManagedClusterAddOnCR )
450447 deploy := GetWithTimeout (
451448 cluster .clusterClient , gvrDeployment , case2DeploymentName , addonNamespace , true , 30 ,
452449 )
0 commit comments