Kubernetes · Arazzo Workflow
Kubernetes Provision a ClusterRole If Missing
Version 1.0.0
Check whether a ClusterRole already exists and create it only when it does not.
View Spec
View on GitHub
AutomationCloud NativeCNCFContainersDeploymentOpen SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
provision-cluster-role
Create a ClusterRole with the supplied policy rules unless it already exists.
Looks for an existing ClusterRole by name and branches: when it is already present the flow ends without writing, and when it is absent the role is created with the supplied rules.
1
findClusterRole
listClusterRoles
List ClusterRoles so the flow can tell an existing role from a missing one by name, rather than provoking a 409 conflict on create.
2
createClusterRole
createClusterRole
Create the ClusterRole with the supplied policy rules. ClusterRoles are cluster-scoped and take effect once bound via a ClusterRoleBinding.