jx controller role

jx controller role

Controller which mirrors Role & EnvironmentRoleBinding resources to Roles and RoleBindings in all matching Environment namespaces

Synopsis

Controller which replicas Role and EnvironmentRoleBinding resources to Roles and RoleBindings in all matching Environment namespaces.

RBAC in Kubernetes is either global with ClusterRoles or is namespace based with Roles per Namespace.

We use a Custom Resource called EnvironmentRoleBinding which binds Roles and its bindings from the development environment into each Environment’s Namespace.

e.g. each EnvironmentRoleBinding will result in a RoleBinding and Role resource being create in each matching Environment. So when a Preview environment is created it will have the correct Role and RoleBinding resources added.

jx controller role [flags]

Examples

  # watch for changes in Role and EnvironmentRoleBindings in the dev namespace
  # and update the Role + RoleBinding resources in each environment namespace
  jx controller role
  
  # update the current RoleBinding resources in each environment based on the current EnvironmentRoleBindings
  jx controller role --no-watch

Options

  -h, --help       help for role
  -n, --no-watch   To disable watching of the resources - to enable one-shot mode

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input (default true)
      --verbose      Enables verbose output

SEE ALSO

Auto generated by spf13/cobra on 16-Oct-2019

Last modified October 17, 2019: release 0.0.1140 (49542bb)