Skip to content

CO: new capi-providers-config chart#76

Merged
jdanieck merged 5 commits intomainfrom
co-capi-operator-config-helmchart
Apr 23, 2025
Merged

CO: new capi-providers-config chart#76
jdanieck merged 5 commits intomainfrom
co-capi-operator-config-helmchart

Conversation

@jdanieck
Copy link
Copy Markdown

@jdanieck jdanieck commented Apr 17, 2025

Description

This PR introduces new helm chart which is used to configure CAPI providers. Needed for open-edge-platform/edge-manageability-framework#181.

Fixes ITEP-26779

Any Newly Introduced Dependencies

No new 3rd party dependencies.

How Has This Been Tested?

Deployed CAPI operator & configured it via new chart on local kind cluster.

$ kind create cluster
$ kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml
$ helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system

$ k get pods -n capi-operator-system 
NAME                                                  READY   STATUS    RESTARTS   AGE
capi-operator-cluster-api-operator-75fb6cfc7c-5vz9v   1/1     Running   0          82s

$ k get BootstrapProvider,ControlPlaneProvider,CoreProvider -A
No resources found

$ helm install capi-providers-config -n capi-operator-system ./charts/capi-operator-providers-config 

$ helm ls -A
NAME                    NAMESPACE               REVISION        UPDATED                                 STATUS          CHART                           APP VERSION
capi-operator           capi-operator-system    1               2025-04-17 09:07:08.329562012 -0700 PDT deployed        cluster-api-operator-0.18.1     0.18.1     
capi-providers-config   capi-operator-system    1               2025-04-18 04:24:53.019684854 -0700 PDT deployed        capi-providers-config-0.0.1     0.0.1  

$ k get BootstrapProvider,ControlPlaneProvider,CoreProvider -A
NAMESPACE     NAME                                               INSTALLEDVERSION   READY
capr-system   bootstrapprovider.operator.cluster.x-k8s.io/rke2                      

NAMESPACE     NAME                                                  INSTALLEDVERSION   READY
capr-system   controlplaneprovider.operator.cluster.x-k8s.io/rke2                      

NAMESPACE     NAME                                                 INSTALLEDVERSION   READY
capi-system   coreprovider.operator.cluster.x-k8s.io/cluster-api  

$ k describe BootstrapProvider,ControlPlaneProvider,CoreProvider -A
Name:         rke2
Namespace:    capr-system
Labels:       app.kubernetes.io/managed-by=Helm
Annotations:  meta.helm.sh/release-name: capi-providers-config
              meta.helm.sh/release-namespace: capi-operator-system
API Version:  operator.cluster.x-k8s.io/v1alpha2
Kind:         BootstrapProvider
Metadata:
  Creation Timestamp:  2025-04-18T11:32:57Z
  Finalizers:
    provider.cluster.x-k8s.io
  Generation:        1
  Resource Version:  35315
  UID:               a61eca00-d231-4fac-b2b2-fb8420e77fef
Spec:
  Config Secret:
    Name:       capi-variables
    Namespace:  capi-variables
  Version:      v0.12.0
Status:
  Observed Generation:  1
Events:                 <none>


Name:         rke2
Namespace:    capr-system
Labels:       app.kubernetes.io/managed-by=Helm
Annotations:  meta.helm.sh/release-name: capi-providers-config
              meta.helm.sh/release-namespace: capi-operator-system
API Version:  operator.cluster.x-k8s.io/v1alpha2
Kind:         ControlPlaneProvider
Metadata:
  Creation Timestamp:  2025-04-18T11:32:57Z
  Finalizers:
    provider.cluster.x-k8s.io
  Generation:        1
  Resource Version:  35318
  UID:               17406a70-2bed-4a8b-90af-3f79a63cbf51
Spec:
  Config Secret:
    Name:       capi-variables
    Namespace:  capi-variables
  Version:      v0.12.0
Status:
  Observed Generation:  1
Events:                 <none>


Name:         cluster-api
Namespace:    capi-system
Labels:       app.kubernetes.io/managed-by=Helm
Annotations:  meta.helm.sh/release-name: capi-providers-config
              meta.helm.sh/release-namespace: capi-operator-system
API Version:  operator.cluster.x-k8s.io/v1alpha2
Kind:         CoreProvider
Metadata:
  Creation Timestamp:  2025-04-18T11:32:57Z
  Finalizers:
    provider.cluster.x-k8s.io
  Generation:        1
  Resource Version:  35322
  UID:               0f267fc0-c617-48a5-a5e4-67b41bf4aa92
Spec:
  Config Secret:
    Name:       capi-variables
    Namespace:  capi-variables
  Version:      v1.9.0
Status:
  Observed Generation:  1
Events:                 <none>

@jdanieck jdanieck self-assigned this Apr 17, 2025
@jdanieck jdanieck added this pull request to the merge queue Apr 23, 2025
Merged via the queue into main with commit 6c92553 Apr 23, 2025
22 checks passed
@jdanieck jdanieck deleted the co-capi-operator-config-helmchart branch April 23, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants