-
Notifications
You must be signed in to change notification settings - Fork 123
alpha authorize improvements
#2790
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
base: main
Are you sure you want to change the base?
alpha authorize improvements
#2790
Conversation
✅ Proposed changes verification passedThis pull request comes with up-to-date documentation and no illegal standard output usages. Find more detailed information in the |
b16cb97 to
ee1caac
Compare
alpha authorize improvements
|
|
||
| # Generate JSON for a cluster-wide binding | ||
| kyma alpha authorize user --name ci-bot --clusterrole kyma-admin --cluster-wide -o json | ||
| group - Authorize a Group with Kyma RBAC resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| group - Authorize a Group with Kyma RBAC resources | |
| group - Authorizes a group with Kyma RBAC resources |
| # Generate JSON for a cluster-wide binding | ||
| kyma alpha authorize user --name ci-bot --clusterrole kyma-admin --cluster-wide -o json | ||
| group - Authorize a Group with Kyma RBAC resources | ||
| repository - Configure trust between a Kyma cluster and a GitHub repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| repository - Configure trust between a Kyma cluster and a GitHub repository | |
| repository - Configures a trust between a Kyma cluster and a GitHub repository |
| kyma alpha authorize user --name ci-bot --clusterrole kyma-admin --cluster-wide -o json | ||
| group - Authorize a Group with Kyma RBAC resources | ||
| repository - Configure trust between a Kyma cluster and a GitHub repository | ||
| serviceaccount - Authorize a ServiceAccount with Kyma RBAC resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| serviceaccount - Authorize a ServiceAccount with Kyma RBAC resources | |
| serviceaccount - Authorizes a ServiceAccount with Kyma RBAC resources |
| group - Authorize a Group with Kyma RBAC resources | ||
| repository - Configure trust between a Kyma cluster and a GitHub repository | ||
| serviceaccount - Authorize a ServiceAccount with Kyma RBAC resources | ||
| user - Authorize a User with Kyma RBAC resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| user - Authorize a User with Kyma RBAC resources | |
| user - Authorizes a user with Kyma RBAC resources |
| * [kyma alpha](kyma_alpha.md) - Groups command prototypes for which the API may still change | ||
| * [kyma alpha authorize repository](kyma_alpha_authorize_repository.md) - Configure trust between a Kyma cluster and a GitHub repository | ||
| * [kyma alpha](kyma_alpha.md) - Groups command prototypes for which the API may still change | ||
| * [kyma alpha authorize group](kyma_alpha_authorize_group.md) - Authorize a Group with Kyma RBAC resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * [kyma alpha authorize group](kyma_alpha_authorize_group.md) - Authorize a Group with Kyma RBAC resources | |
| * [kyma alpha authorize group](kyma_alpha_authorize_group.md) - Authorizes a group with Kyma RBAC resources |
| @@ -0,0 +1,50 @@ | |||
| # kyma alpha authorize user | |||
|
|
|||
| Authorize a User with Kyma RBAC resources. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Authorize a User with Kyma RBAC resources. | |
| Authorizes a user with Kyma RBAC resources. |
|
|
||
| ```text | ||
| --binding-name string Custom name for the RoleBinding or ClusterRoleBinding. If not specified, a name is auto-generated based on the role and subject | ||
| --cluster-wide Create a ClusterRoleBinding for cluster-wide access (requires --clusterrole) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| --cluster-wide Create a ClusterRoleBinding for cluster-wide access (requires --clusterrole) | |
| --cluster-wide Creates a ClusterRoleBinding for cluster-wide access (requires --clusterrole) |
| --binding-name string Custom name for the RoleBinding or ClusterRoleBinding. If not specified, a name is auto-generated based on the role and subject | ||
| --cluster-wide Create a ClusterRoleBinding for cluster-wide access (requires --clusterrole) | ||
| --clusterrole string ClusterRole name to bind (for ClusterRoleBinding with --cluster-wide, or RoleBinding in namespace) | ||
| --dry-run Preview the YAML/JSON output without applying resources to the cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| --dry-run Preview the YAML/JSON output without applying resources to the cluster | |
| --dry-run Previews the YAML/JSON output without applying resources to the cluster |
| -h, --help Help for the command | ||
| --kubeconfig string Path to the Kyma kubeconfig file | ||
| --show-extensions-error Prints a possible error when fetching extensions fails | ||
| --skip-extensions Skip fetching extensions from the target Kyma environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| --skip-extensions Skip fetching extensions from the target Kyma environment | |
| --skip-extensions Skips fetching extensions from the target Kyma environment |
|
|
||
| ## See also | ||
|
|
||
| * [kyma alpha authorize](kyma_alpha_authorize.md) - Authorize a subject (user, group, or service account) with Kyma RBAC resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * [kyma alpha authorize](kyma_alpha_authorize.md) - Authorize a subject (user, group, or service account) with Kyma RBAC resources | |
| * [kyma alpha authorize](kyma_alpha_authorize.md) - Authorizes a subject (user, group, or service account) with Kyma RBAC resources |
2bd8420 to
bef0270
Compare
bef0270 to
4a27a78
Compare
Description
Changes proposed in this pull request:
user,groupandserviceaccountauthorization targets to their specialized commands. They are no longer arguments for theauthorizecmd.authorizecommand now is only a command group instead of a separate command.binding-nameparameter that allows for a custom binding resource nameRelated issue(s)
#2654