We see that spec.identityRef.kind has been erroneously set to "".
This causes issues when we attempt to update the cluster, even with a null update:
$ helm upgrade capi-test openstack-cluster --repo https://stackhpc.github.io/capi-helm-charts --version 0.5.0 -i -f clouds.arcus.yaml -f values.cluster.arcus.yml
Error: UPGRADE FAILED: cannot patch "capi-test" with kind OpenStackCluster: OpenStackCluster.infrastructure.cluster.x-k8s.io "capi-test" is invalid: spec.identityRef.kind: Invalid value: "": spec.identityRef.kind in body should be at least 1 chars long
What did you expect to happen:
The helm upgrade to be successful.
Environment:
Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built): v0.10.0-alpha.1
/kind bug
These steps use the Helm charts here to generate resources: https://github.com/stackhpc/capi-helm-charts
What steps did you take and what happened:
Set up management cluster with CAPI + CAPO
v0.10.0-alpha.1
.Create an appcred for a project in OpenStack, download the
clouds.yaml
.Create a values file with the following minimal values:
Create a cluster using
v1alpha7
resources:Immediately check the
v1alpha7
representation of theOpenStackCluster
:This looks fine.
However looking at the same object after the load-balancer has been created and the
controlPlaneEndpoint
is updated:We see that
spec.identityRef.kind
has been erroneously set to""
.This causes issues when we attempt to update the cluster, even with a null update:
What did you expect to happen:
The
helm upgrade
to be successful.Environment:
git rev-parse HEAD
if manually built): v0.10.0-alpha.1kubectl version
): v1.29.1/etc/os-release
):