Skip to content

Commit 1bd4590

Browse files
dhaiducekopenshift-merge-robot
authored andcommitted
Fix typo
Signed-off-by: Dale Haiducek <[email protected]>
1 parent d9f8142 commit 1bd4590

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

controllers/specsync/policy_spec_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (r *PolicyReconciler) Reconcile(ctx context.Context, request reconcile.Requ
7171
err := r.HubClient.Get(ctx, request.NamespacedName, instance)
7272
if err != nil {
7373
if errors.IsNotFound(err) {
74-
// repliated policy on hub was deleted, remove policy on managed cluster
74+
// replicated policy on hub was deleted, remove policy on managed cluster
7575
reqLogger.Info("Policy was deleted, removing on managed cluster...")
7676

7777
err = r.ManagedClient.Delete(ctx, &policiesv1.Policy{

test/e2e/case10_error_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var _ = Describe("Test error handling", func() {
3939
Expect(err).Should(BeNil())
4040
Eventually(func() interface{} {
4141
trustedPlc := utils.GetWithTimeout(clientManagedDynamic, gvrConfigurationPolicy,
42-
"case10-remedation-action-not-exists-configpolicy", clusterNamespace, true,
42+
"case10-remediation-action-not-exists-configpolicy", clusterNamespace, true,
4343
defaultTimeoutSeconds)
4444

4545
return trustedPlc.Object["spec"].(map[string]interface{})["remediationAction"]
@@ -56,12 +56,12 @@ var _ = Describe("Test error handling", func() {
5656
clusterNamespaceOnHub,
5757
)
5858
Expect(err).Should(BeNil())
59-
By("Checking the case10-remedation-action-not-exists-configpolicy CR")
59+
By("Checking the case10-remediation-action-not-exists-configpolicy CR")
6060
yamlTrustedPlc := utils.ParseYaml(
61-
"../resources/case10_template_sync_error_test/remedation-action-not-exists-configpolicy.yaml")
61+
"../resources/case10_template_sync_error_test/remediation-action-not-exists-configpolicy.yaml")
6262
Eventually(func() interface{} {
6363
trustedPlc := utils.GetWithTimeout(clientManagedDynamic, gvrConfigurationPolicy,
64-
"case10-remedation-action-not-exists-configpolicy", clusterNamespace, true,
64+
"case10-remediation-action-not-exists-configpolicy", clusterNamespace, true,
6565
defaultTimeoutSeconds)
6666

6767
return trustedPlc.Object["spec"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: policy.open-cluster-management.io/v1
22
kind: ConfigurationPolicy
33
metadata:
4-
name: case10-remedation-action-not-exists-configpolicy
4+
name: case10-remediation-action-not-exists-configpolicy
55
spec:
66
remediationAction: inform
77
pruneObjectBehavior: "None"

test/resources/case10_template_sync_error_test/remediation-action-not-exists.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apiVersion: policy.open-cluster-management.io/v1
22
kind: Policy
33
metadata:
4-
name: case10-remedation-action-not-exists
4+
name: case10-remediation-action-not-exists
55
labels:
66
policy.open-cluster-management.io/cluster-name: managed
77
policy.open-cluster-management.io/cluster-namespace: managed
8-
policy.open-cluster-management.io/root-policy: case10-remedation-action-not-exists
8+
policy.open-cluster-management.io/root-policy: case10-remediation-action-not-exists
99
spec:
1010
disabled: false
1111
policy-templates:
1212
- objectDefinition:
1313
apiVersion: policy.open-cluster-management.io/v1
1414
kind: ConfigurationPolicy
1515
metadata:
16-
name: case10-remedation-action-not-exists-configpolicy
16+
name: case10-remediation-action-not-exists-configpolicy
1717
spec:
1818
remediationAction: inform
1919
object-templates:

test/resources/case10_template_sync_error_test/remediation-action-not-exists2.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apiVersion: policy.open-cluster-management.io/v1
22
kind: Policy
33
metadata:
4-
name: case10-remedation-action-not-exists
4+
name: case10-remediation-action-not-exists
55
labels:
66
policy.open-cluster-management.io/cluster-name: managed
77
policy.open-cluster-management.io/cluster-namespace: managed
8-
policy.open-cluster-management.io/root-policy: case10-remedation-action-not-exists
8+
policy.open-cluster-management.io/root-policy: case10-remediation-action-not-exists
99
spec:
1010
disabled: false
1111
policy-templates:
1212
- objectDefinition:
1313
apiVersion: policy.open-cluster-management.io/v1
1414
kind: ConfigurationPolicy
1515
metadata:
16-
name: case10-remedation-action-not-exists-configpolicy
16+
name: case10-remediation-action-not-exists-configpolicy
1717
spec:
1818
remediationAction: inform
1919
object-templates:

test/resources/case10_template_sync_error_test/template-decode-error.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
apiVersion: policy.open-cluster-management.io/v1
1515
# kind: ConfigurationPolicy # missing kind
1616
metadata:
17-
name: case10-remedation-action-not-exists-configpolicy
17+
name: case10-remediation-action-not-exists-configpolicy
1818
spec:
1919
object-templates:
2020
- complianceType: musthave

test/resources/case10_template_sync_error_test/template-mapping-error.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
apiVersion: policy.open-cluster-management.io/v1
1515
kind: NotExistPolicy # kind doesn't exist
1616
metadata:
17-
name: case10-remedation-action-not-exists-configpolicy
17+
name: case10-remediation-action-not-exists-configpolicy
1818
spec:
1919
object-templates:
2020
- complianceType: musthave

0 commit comments

Comments
 (0)