-
Notifications
You must be signed in to change notification settings - Fork 256
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
spec.Bastion.serverMetadata field in OpenStackCluster v1beta1 is not functioning #2177
Comments
Try with this instead, the |
I'm surprised how you could manage to create a cluster with this, the webhook should have complained about the wrong OpenStackCluster spec. |
i'll close the bug now as I suspect this was a user error but if I was wrong and something is not working as you expect to work, please re-open and I'll take a look again. |
@EmilienM Here is the corrected YAML:
The CRD validation succeeded, and the OpenStackCluster resource was successfully stored in etcd. We are actually using a modified image so that this configuration can be applied. Please kindly reconsider the issue. |
If you have a fix please consider sending a PR. |
/kind bug
What steps did you take and what happened:
I was trying to set metadata for the Bastion server using the spec.Bastion.serverMetadata field in the OpenStackCluster Custom Resource Definition (CRD) version v1beta1. Here are the steps I took:
What did you expect to happen:
I expected the Bastion server instance to have the metadata from spec.Bastion.serverMetadata applied upon creation. Specifically, I expected to see
test: somedata
in the instance’s metadata.Anything else you would like to add:
To analyze the issue, you examined the bastionToInstanceSpec function in the openstackcluster_controller.go file in version v0.10.5.
Relevant code snippet:
It appears that the serverMetadata from the CRD isn’t being passed to the instanceSpec, so it’s not applied to the Bastion server during creation.
Environment:
• Cluster API Provider OpenStack version (or git rev-parse HEAD if manually built): v0.10.5
• Cluster-API version: v1.6.5
• OpenStack version: 2023.1
• Minikube/KIND version: Not applicable
• Kubernetes version (use kubectl version): v1.28.10
• OS (e.g., from /etc/os-release):
The text was updated successfully, but these errors were encountered: