Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update user-defined resource applying logic #617

Merged
merged 5 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/user-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,37 @@ 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