kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
60 stars 19 forks source link

add a new label to application ns and kubeslice-system ns to make nsm webhook fault tolerant #125

Closed rahulsawra98 closed 1 year ago

rahulsawra98 commented 1 year ago

This PR adds a new label kubeslice.io/inject=true to application namespaces and specifically to kubeslice-system namespace after a slice is created. We will use this label in nsm mutatingwebhookconfig in namespace selector. This way only requests from application namespaces and kubeslice-system(gw pods) goes to nsm webhook