vcf-services

Role

A Role creates a VCF Automation role scoped to a single organisation - typically the provider organisation. It is the building block for granting a VcfaServiceAccount the permissions it needs to call VCF Automation APIs on behalf of the service.

When to Use

Difference from GlobalRole

  Role GlobalRole
Scope Single organisation All tenants (or a list of tenants)
Typical use Service account permissions End-user or admin roles
Auto-published to tenants No Yes

Spec Fields

Field Type Required Description
name string Yes Display name of the role in VCF Automation
description string No Human-readable description
rights []string No List of right identifiers
organization string No Organisation name; defaults to the provider (System) organisation

Rights Format

Rights can be expressed as:

Status Fields

Field Type Description
status string Healthy, Busy, Unhealthy, Maintenance
message string Human-readable status message
externalId string VCF Automation role ID (URN)

Lifecycle

CR created
    │
    ▼
Busy - creating role in the target organisation in VCF Automation
    │
    ▼
Healthy - role created, externalId populated
    │
    ├─ rights updated
    │       │
    │       ▼
    │   Busy - updating role rights
    │       │
    │       ▼
    │   Healthy
    │
    └─ CR deleted
            │
            ▼
        Busy - removing role from VCF Automation
            │
            ▼
        CR removed

Example

apiVersion: services.vcfa.broadcom.com/v2
kind: Role
metadata:
  labels:
    services.vcfa.broadcom.com/name: arcturus-agent
spec:
  name: Arcturus Service Agent
  description: >-
    Service account role for Arcturus to interact with VCF Automation API.
    Provides necessary permissions for service discovery and configuration.
  rights:
    - RIGHT_AUTOMATION_PROJECT_VIEW
    - RIGHT_NAMESPACE_LIFECYCLE_VIEW
    - RIGHT_USER_VIEW
    - RIGHT_ORGANIZATION_VIEW
    - RIGHT_ORG_TRAVERSE
    - RIGHT_SERVICE_ACCOUNT_VIEW
    - RIGHT_TASK_VIEW
    - RIGHT_SYSTEM_SETTINGS_VIEW
  organization: System