Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Implement validation webhook call forwarding to OpenStackBaremetalSetSpec #256

Open
gibizer opened this issue Jun 30, 2023 · 1 comment
Open

Comments

@gibizer
Copy link
Contributor

gibizer commented Jun 30, 2023

The OpenStackBaremetalSet CR has its own validation webhook. The OpenStackBaremetalSetSpec is included in the OpenStackDataPlaneRoleSpec validation of the OpenStackDataPlaneRoleSpec should also cal the validation of the OpenStackBaremetalSetSpec so that the user can get the validation issues right at the API response when creating OpenStackDataPlaneRole CR.

There is documented pattern to follow, see: openstack-k8s-operators/dev-docs#47

// +kubebuilder:validation:Optional
// BaremetalSetTemplate Template for BaremetalSet for the Role
BaremetalSetTemplate baremetalv1.OpenStackBaremetalSetSpec `json:"baremetalSetTemplate,omitempty"`

@gibizer
Copy link
Contributor Author

gibizer commented Jun 30, 2023

Please note that this probably needs changes in the baremetal-operator api module too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant