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.
IAMRoleBinding resource¶
IAMRoleBinding is the namespaced object that represents a grant of one
role to one user in all clusters of the namespace. It 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 IAMRoleBinding resource contains the following fields:
apiVersionAPI version of the object that is
iam.mirantis.com/v1alpha1.
kindObject type that is
IAMRoleBinding.
metadataObject metadata that contains the following fields:
namespaceNamespace 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>.
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.
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.
Configuration example:
apiVersion: iam.mirantis.com/v1alpha1
kind: IAMRoleBinding
metadata:
namespace: nsone
name: userone-operator
external: false
legacy: false
legacyRole: “”
role:
name: operator
user:
name: userone-f150d839