kubeslice / kubeslice/worker-operator

Feature: Validation webhook for serviceexport

Open
#358 5 comments 0 reactions 1 assignee Claimed by @kon3m View on GitHub
enhancement good first issue
Dominant language
Go
Stars
62
Forks
33
Avg merge
3d 10h
Merged PRs (30d)
3

Description

### 🔖 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?

- [X] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [X] I have read the [Code of Conduct](https://github.com/kubeslice/worker-operator/blob/master/code_of_conduct.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.