-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix status update with faulty PlacementBinding
With a PlacementBinding containing an invalid placementRef, the propagator was returning an error and endlessly re-reconciling. This occurs even if the PlacementBinding was not bound to the Policy. ref: https://issues.redhat.com/browse/ACM-9930 Signed-off-by: Dale Haiducek <[email protected]> (cherry picked from commit 41176f2) Signed-off-by: Dale Haiducek <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
13 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
12 changes: 12 additions & 0 deletions
12
test/resources/case2_aggregation/faulty-placementbinding.yaml
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: policy.open-cluster-management.io/v1 | ||
kind: PlacementBinding | ||
metadata: | ||
name: case2-faulty-placementbinding | ||
placementRef: | ||
apiGroup: cluster.open-cluster-management.io | ||
kind: PlacementRule | ||
name: case2-test-policy-plr | ||
subjects: | ||
- apiGroup: policy.open-cluster-management.io | ||
kind: Policy | ||
name: rando-policy |