› kube_cluster › Source › Kube › Cluster › Standard › ClusterRole

class ClusterRole

A ClusterRole with the same rules shorthand as Role (see RbacRules):

ClusterRole.new(name: "node-reader", rules: { "nodes" => %w[get list], "nodes/proxy" => %w[get], "argoproj.io/workflows" => %w[get list], })

Definitions

attr_reader :rules_input

The original rules shorthand, so a named copy can be rebuilt from it (rebuild downgrades the class; reconstructing keeps it a Standard::ClusterRole).