Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
IAMClusterRoleBinding resource¶
IAMClusterRoleBinding is the namespaced object that represents a grant
of one role to one user on one cluster in the namespace. This object is
accessible to users that have either of the following bindings assigned to
them:
IAMGlobalRoleBindingthat binds them with theglobal-admin,operator, oruseriamRole. Foruser, the bindings are read-only.IAMRoleBindingthat binds them with theoperatororuseriamRolein a particular namespace. Foruser, the bindings are read-only.
The IAMClusterRoleBinding object contains the following fields:
apiVersionAPI version of the object that is
iam.mirantis.com/v1alpha1.
kindObject type that is
IAMClusterRoleBinding.
metadataObject metadata that contains the following fields:
namespaceNamespace of the cluster that the defined binding belongs to.
nameRole binding name. If the role is user-created, user can set any unique name. If a name relates to a binding that is synced from Keycloak, the naming convention is
<userName>-<roleName>-<clusterName>.
roleObject role that contains the following field:
nameRole name.
userObject user that contains the following field:
nameName of the
iamuserobject that the defined role is granted to. Not equal to the user name in Keycloak.
clusterObject cluster that contains the following field:
nameName of the cluster on which the defined role is granted.
legacyDefines whether the role binding is legacy. Possible values are
trueorfalse.
legacyRoleApplicable when the
legacyfield value istrue. Defines the legacy role name in Keycloak.
externalDefines whether the role is assigned through Keycloak and is synced by
user-controllerwith the MOSK API as theIAMGlobalRoleBindingobject. Possible values aretrueorfalse.
Caution
If you create the IAM*RoleBinding, do not set or modify
the legacy, legacyRole, and external fields unless absolutely
necessary and you understand all implications.
Configuration example:
apiVersion: iam.mirantis.com/v1alpha1
kind: IAMClusterRoleBinding
metadata:
namespace: nsone
name: userone-clusterone-admin
role:
name: cluster-admin
user:
name: userone-f150d839
cluster:
name: clusterone
legacy: false
legacyRole: “”
external: false