Skip to content

Commit 82f0083

Browse files
Wei WengWei Weng
authored andcommitted
overridden acrolynx
Signed-off-by: Wei Weng <[email protected]>
1 parent 73ee761 commit 82f0083

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

support/azure/kubernetes-fleet/cluster-resource-placement/crp-clusterresourceplacementoverridden-false.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This issue might occur because the `ClusterResourceOverride` or `ResourceOverrid
2424

2525
## Case study: ClusterResourcePlacement
2626

27-
In the following example, an attempt is made to override the cluster role `secret-reader` that is propagated by the `ClusterResourcePlacement` to the selected clusters.
27+
In the following example, an attempt is made to override the cluster role `secret-reader` that the `ClusterResourcePlacement` propagates to the selected clusters.
2828
However, the `ClusterResourceOverride` is created by using an invalid path for the resource.
2929

3030
### ClusterRole
@@ -50,7 +50,7 @@ rules:
5050
- watch
5151
- list
5252
```
53-
The `ClusterRole` `secret-reader` that is propagated to the member clusters by the `ClusterResourcePlacement`.
53+
The `ClusterRole` `secret-reader` that the `ClusterResourcePlacement` propagates to the member clusters.
5454

5555
### ClusterResourceOverride specifications
5656
```YAML
@@ -158,8 +158,8 @@ status:
158158

159159
If the `ClusterResourcePlacementOverridden` (for ClusterResourcePlacement) or `ResourcePlacementOverridden` (for ResourcePlacement) condition is `False`, check the `placementStatuses` section to get the exact cause of the failure.
160160

161-
In this situation, the message indicates that the override failed because the path `/metadata/labels/new-label` and its corresponding value are missing.
162-
Based on the previous example of the cluster role `secret-reader`, you can see that the path `/metadata/labels/` doesn't exist. This means that `labels` doesn't exist.
161+
In the example, the message indicates that the override failed because the path `/metadata/labels/new-label` and its corresponding value are missing.
162+
Based on the previous example of the cluster role `secret-reader`, you can see that the path `/metadata/labels/` doesn't exist. The `labels` field doesn't exist.
163163
Therefore, a new label can't be added.
164164

165165
### Resolution
@@ -174,11 +174,11 @@ jsonPatchOverrides:
174174
newlabel: new-value
175175
```
176176

177-
This adds the new label `newlabel` that has the value `new-value` to the ClusterRole `secret-reader`.
177+
The code adds the new label `newlabel` that has the value `new-value` to the ClusterRole `secret-reader`.
178178

179-
## General Notes
179+
## ResourcePlacement case study
180180

181-
For ResourcePlacement the override flow is identical except that all the resources reside in the same namespace; use `ResourceOverride` instead of `ClusterResourceOverride` and expect `ResourcePlacementOverridden` in conditions.
181+
For ResourcePlacement, the override flow is identical except that all the resources reside in the same namespace. Use `ResourceOverride` instead of `ClusterResourceOverride` and expect `ResourcePlacementOverridden` in conditions.
182182

183183
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
184184

0 commit comments

Comments
 (0)