kube_clusterSourceKubeClusterStandardServiceAccountWithRole

class ServiceAccountWithRole

Bundles a ServiceAccount, a Role, and the RoleBinding that ties them together into one Manifest. The Role and RoleBinding take the ServiceAccount's name unless a name is given explicitly:

ServiceAccountWithRole.new( service_account: ServiceAccount.new(name: "glauth-config-builder"), role: Role.new(rules: [ "secrets" => %w[get list], "batch/cronjobs" => %w[get], ]), )