Skip to content

Commit

Permalink
Update the README to reflect the deletion of PlacementRule in the Git…
Browse files Browse the repository at this point in the history
…Ops section.

Update the README to reflect the deletion of PlacementRule in the GitOps section and readme.
Signed-off-by: yiraeChristineKim <[email protected]>
  • Loading branch information
yiraeChristineKim authored and openshift-merge-bot[bot] committed Aug 26, 2024
1 parent 4e75f58 commit bb1ad46
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

A collection of policy examples for Open Cluster Management.

> **Important**: The `PlacementRule` resource has been deprecated so policy users must begin moving to
the Placement API instead. See the
[Transitioning from `PlacementRule`(deprecated) to `Placement`](#transitioning-from-placementruledeprecated-to-placement)
that provides details below to learn how to begin using Placement. Policies will no longer include
placement details as part of contributions since placement resources can be shared to avoid
duplication and to allow users to choose different ways of including placement with gitops.

## Repository structure

This repository hosts policies for Open Cluster Management. You can find policies from the following
Expand Down Expand Up @@ -35,13 +42,6 @@ for details on installing the Application addon. **Note**: If you are using Argo
similar script [argoDeploy.sh](deploy/argoDeploy.sh) is provided that does not require the
Application Lifecycle addon.

The policies are applied to all managed clusters that are available, and have the `environment` set
to `dev`. If policies need to be applied to another set of clusters, update the
`Placement.spec.predicates.requiredClusterSelector.labelSelector.matchExpressions` section in the policies.

**Note**: As new clusters are added that fit the criteria previously mentioned, the policies are
applied automatically.

### Subscription Administrator

In new versions of Open Cluster Management you must be a subscription administrator in order to
Expand Down Expand Up @@ -185,8 +185,8 @@ following steps on migrating from `PlacementRule` to `Placement`:
- {key: environment, operator: In, values: ["dev"]}
```

See the [Placement documentation](https://open-cluster-management.io/concepts/placement/) for
additional details on selecting managed clusters using `Placement`.
See the [Placement documentation](https://open-cluster-management.io/concepts/placement/) for
additional details on selecting managed clusters using `Placement`.

4. Identify any `PlacementBinding` resources that reference a `PlacementRule`. Update the
`PlacementBinding` to reference the new `Placement`:
Expand Down

0 comments on commit bb1ad46

Please sign in to comment.