Skip to content

feat: Kubernetes admission controller story for Reshapr proxy as a sidecar container #123#147

Closed
Vaishnav88sk wants to merge 2 commits into
reshaprio:mainfrom
Vaishnav88sk:issue-123-mutating-webhook
Closed

feat: Kubernetes admission controller story for Reshapr proxy as a sidecar container #123#147
Vaishnav88sk wants to merge 2 commits into
reshaprio:mainfrom
Vaishnav88sk:issue-123-mutating-webhook

Conversation

@Vaishnav88sk

Copy link
Copy Markdown
Contributor

fixes #123

It uses the quarkus-kubernetes-client and zjsonpatch to expose an /api/v1/webhooks/mutate endpoint that parses incoming AdmissionReview requests. If a Pod is submitted with the io.reshapr/inject: "true" annotation, the webhook generates a JSON patch to inject the reshapr-proxy container.

…shaprio#123)

Implements a Mutating Admission Webhook in the control-plane to automatically inject the reshapr-proxy container into Pods annotated with io.reshapr/inject: 'true'.

Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
@Vaishnav88sk Vaishnav88sk requested a review from lbroudoux as a code owner May 24, 2026 18:53
@Vaishnav88sk

Copy link
Copy Markdown
Contributor Author

Sorry for some non formatted code.

@Vaishnav88sk Vaishnav88sk force-pushed the issue-123-mutating-webhook branch 3 times, most recently from 15405fe to 28f60e8 Compare May 24, 2026 19:06
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
@Vaishnav88sk Vaishnav88sk force-pushed the issue-123-mutating-webhook branch from 28f60e8 to f3a6fbc Compare May 24, 2026 19:15
@lbroudoux

Copy link
Copy Markdown
Member

Great start but please check here: #123 (comment)

@Vaishnav88sk

Copy link
Copy Markdown
Contributor Author

Closing this PR. Issue migrated to reshapr-controllers repo. Refer reshaprio/reshapr-controllers#4 and PR reshaprio/reshapr-controllers#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kubernetes admission controller story for Reshapr proxy as a sidecar container

2 participants