Skip to content

Feature: Validation webhook for serviceexport #358

@mridulgain

Description

@mridulgain

🔖 Feature description

Validate serviceexport objects during admission.

🎤 Pitch

Exporting a service by creating a serviceexport object only makes sense when it's created withing the application namespace of the specified slice. Currently user may create a serviceexport with a slice name even if the slice object is not present on that cluster or in case it's present but doesn't even has any application namespace onboarded.

✌️ Solution

Implement a validation webhook that checks,

  1. The specified slice is present on the cluster
  2. The namespace in which the serviceexport is being created, is present in the "onboarded application namespace" array.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions