Skip to content

Complete webhook validation for topology references#511

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
fmount:topologyref_webhook
Mar 21, 2025
Merged

Complete webhook validation for topology references#511
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
fmount:topologyref_webhook

Conversation

@fmount
Copy link
Contributor

@fmount fmount commented Mar 20, 2025

This patch is a follow up of [1] in the validation webhook area. It enhances the validation workflow and it aims to complete the pattern by distributing the ValidateTopology logic across the API instances.
It is based on [2] and the key improvements include:

  • Distributed validation: it provides a ValidateTopology function across all API instances, ensuring consistent validation throughout the system
  • Optimized validation calls: it refines how validation is triggered and reduce code duplication; it still requires a basic struct refactor to fully de-duplicate the existing functions, but it can be done as part of a follow up

This patch leverages the centralized topology validator introduced in infra-operator [3].

Jira: https://issues.redhat.com/browse/OSPRH-14626

[1] openstack-k8s-operators#924
[2] openstack-k8s-operators/nova-operator#936
[3] openstack-k8s-operators/infra-operator#356

@fmount fmount requested a review from stuggi March 20, 2025 14:08
@openshift-ci openshift-ci bot requested a review from olliewalsh March 20, 2025 14:08
@fmount fmount requested review from bshephar and removed request for olliewalsh March 20, 2025 14:08
This patch is a follow up of [1] in the validation webhook area. It
enhances the validation workflow and it aims to complete the pattern by
distributing the ValidateTopology logic across the API instances.
It is based on [2] and the key improvements include:

- Distributed validation: it provides a ValidateTopology function across
  all API instances, ensuring consistent validation throughout the
  system
- Optimized validation calls: it refines how validation is triggered and
  reduce code duplication; it still requires a basic struct refactor to
  fully de-duplicate the existing functions, but it can be done as part
  of a follow up

This patch leverages the centralized topology validator introduced in
infra-operator [3].

Jira: https://issues.redhat.com/browse/OSPRH-14626

[1] openstack-k8s-operators#924
[2] openstack-k8s-operators/nova-operator#936
[3] openstack-k8s-operators/infra-operator#356

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bshephar, fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit d8967fa into openstack-k8s-operators:main Mar 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants