Skip to content

Commit

Permalink
Revert "Merge pull request #617 from cybozu-go/custom-rank-for-user-d…
Browse files Browse the repository at this point in the history
…efined-resource"

This reverts commit 9132754, reversing
changes made to d534aed.

Signed-off-by: terasihma <[email protected]>
  • Loading branch information
terassyi committed Aug 10, 2023
1 parent 1bb6bd7 commit d330ee9
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 1,016 deletions.
20 changes: 0 additions & 20 deletions docs/user-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,17 @@ Custom resources (not `CustomResourceDefinition`s) are not supported.
The resources are applied in the following order according to their kind.

- Namespace
- rank: 10
- ServiceAccount
- rank: 20
- CustomResourceDefinition
- rank: 30
- ClusterRole
- rank: 40
- ClusterRoleBinding
- rank: 50
- (Other cluster-scope resources)
- rank: 1000
- Role
- rank: 2000
- RoleBinding
- rank: 2010
- NetworkPolicy
- rank: 2020
- Secret
- rank: 2030
- ConfigMap
- rank: 2040
- (Other namespace-scoped resources)
- rank: 3000

### Custom order

Users can customize the order of applying resources by annotating `cke.cybozu.com/rank`.
In the case of cluster-scoped resources, a rank value must be 0-1999.
For namespace-scoped resources, a rank value must be 2000-.

If `cke.cybozu.com/rank` is not set, the rank is defaulted to a value based on the aforementioned list.

## Annotations

Expand Down
Loading

0 comments on commit d330ee9

Please sign in to comment.