Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credentials API and CRDs #321

Closed
a13x5 opened this issue Sep 16, 2024 · 0 comments · Fixed by #342
Closed

Credentials API and CRDs #321

a13x5 opened this issue Sep 16, 2024 · 0 comments · Fixed by #342
Assignees
Labels
enhancement Small feature, request or improvement suggestion

Comments

@a13x5
Copy link
Contributor

a13x5 commented Sep 16, 2024

CRD

Simple cluster identity reference

apiVersion: hmc.mirantis.com/v1alpha1
kind: Credential
metadata:
  name: azure-cred
spec:
  description: |
    Main Azure cluster credentials
  identityRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    kind: AzureClusterIdentity
    name: azure-cred-identity
    namespace: hmc-system
status:
  state: Ready

User must maintain the cluster identity object by itself (i.e. create cluster identity and corresponding secret). The Credential object just references the existing cluster identity object.

.spec.identityRef.namespace is an optional field which currently only applies to the Azure provider, since all other providers have cluster scoped cluster identity resources.

.spec.description (optional) is a free form description of the credentials. Will be also added to print columns, so it will be easier for the user to choose what Credential to use.

.status.state field signify if any problem appeared with the resource referenced (e.g. it doesn’t exist).

Controller is not responsible for the cluster identity resource and its secret.

@a13x5 a13x5 self-assigned this Sep 16, 2024
@a13x5 a13x5 added the enhancement Small feature, request or improvement suggestion label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small feature, request or improvement suggestion
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant