Skip to content

Handle CloudCredentials and v2Prov CAPI CAPA clusters #17443

Description

@richard-cox

Grand Parent Issue - #16001
Parent issue - #16540
RFD - https://github.com/SUSE/rancher-architecture/pull/58

  • When creating a CC directly
  • When creating a v2prov CAPI CAPA cluster
    • create CC, as per above flow that will support
    • select a existing CC that supports AWSClusterStaticIdentity / backing secret
      • support is controlled via CC annotation that points to a AWSClusterStaticIdentity
    • add the CC's annotation pointing to AWSClusterStaticIdentity to the AWSCluster's identity field
  • When editing a v2prov CAPI CAPA cluster
    • the current CC is found via the CC annotation on the PCIC --> users go through the same CC gate (select or create a CC)
    • the current CC is not found --> Do not show edit via form, show edit via YAML
      • This will be the case if the cluster was created outside of the UI using either a Static or Workload identify
      • In both cases we don't have credentials to use when making http requests to populate drop downs
      • In the future we could offer a flow where either
        • the user provides a CC just like create (UI 'adopts' cluster)
        • the user provides a CC solely used to make the http request to provider for drop down data
  • Both Create + Edit of a v2prov CAPI CAPA cluster
  • Edit of a v2prov CAPI CAPA cluster
    • confirm both of below, if not redirect to cluster list
      • spec.cloudCredentialSecretName populated
      • associated CC has the required annotation

General Notes

  • CC Annotation --> Static Identity is 1:1
    • The BE handles this
  • CC Annotation --> PCIC is M:1
    • The UI handles this
    • Do we need it?
  • PCIC Annotation --> CC is 1:1
    • The UI handles this
  • Deletion of the CC should result in the backing resources also being deleted
    • The BE handles this

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions