File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const (
2222 policyAPIGroup = "policy.open-cluster-management.io"
2323 policyAPIVersion = policyAPIGroup + "/v1"
2424 policyKind = "Policy"
25- poilcySetAPIVersion = policyAPIGroup + "/v1beta1"
25+ policySetAPIVersion = policyAPIGroup + "/v1beta1"
2626 policySetKind = "PolicySet"
2727 placementBindingAPIVersion = policyAPIGroup + "/v1"
2828 placementBindingKind = "PlacementBinding"
@@ -1180,7 +1180,7 @@ func (p *Plugin) createPolicy(policyConf *types.PolicyConfig) error {
11801180// manifests specified in the configuration are invalid or can't be read.
11811181func (p * Plugin ) createPolicySet (policySetConf * types.PolicySetConfig ) error {
11821182 policyset := map [string ]interface {}{
1183- "apiVersion" : poilcySetAPIVersion ,
1183+ "apiVersion" : policySetAPIVersion ,
11841184 "kind" : policySetKind ,
11851185 "metadata" : map [string ]interface {}{
11861186 "name" : policySetConf .Name ,
Original file line number Diff line number Diff line change @@ -1383,7 +1383,7 @@ func TestPolicySetConfig(t *testing.T) {
13831383 {
13841384 Name : "my-policyset" ,
13851385 Placement : types.PlacementConfig {
1386- PlacementRuleName : "plrexisingname " ,
1386+ PlacementRuleName : "plrexistingname " ,
13871387 ClusterSelectors : map [string ]string {"cloud" : "red hat" },
13881388 },
13891389 },
@@ -1415,7 +1415,7 @@ func TestPolicySetConfig(t *testing.T) {
14151415 {
14161416 Name : "my-policyset" ,
14171417 Placement : types.PlacementConfig {
1418- PlacementRuleName : "plrexisingname " ,
1418+ PlacementRuleName : "plrexistingname " ,
14191419 LabelSelector : map [string ]string {"cloud" : "red hat" },
14201420 },
14211421 },
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ policies:
289289 }
290290}
291291
292- func TestGeneratePolicyExisingPlacementRuleName (t * testing.T ) {
292+ func TestGeneratePolicyExistingPlacementRuleName (t * testing.T ) {
293293 t .Parallel ()
294294 tmpDir := t .TempDir ()
295295 createConfigMap (t , tmpDir , "configmap.yaml" )
@@ -380,7 +380,7 @@ subjects:
380380 assertEqual (t , string (output ), expected )
381381}
382382
383- func TestGeneratePolicyExisingPlacementName (t * testing.T ) {
383+ func TestGeneratePolicyExistingPlacementName (t * testing.T ) {
384384 t .Parallel ()
385385 tmpDir := t .TempDir ()
386386 createConfigMap (t , tmpDir , "configmap.yaml" )
You can’t perform that action at this time.
0 commit comments