Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Make sure the webhook preserves existing resource requests #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fedepaol
Copy link

@fedepaol fedepaol commented Oct 7, 2019

While adding requested resources from the pod network to the first container, the webhook currently wipes out any previous request on the pod definition.

This PR builds the patch request maintaining the current resources, so they do not get lost.
I also added relevant tests to the test file deleting it's previous content, which I suspect was the one from https://github.com/openshift/multus-admission-controller (it contained ValidateHandler invocations)

…g new ones.

This commit also adds relevant tests and removes the other broken ones (probably result of a copy / paste).

Signed-off-by: Federico Paolinelli <[email protected]>
@fedepaol fedepaol changed the title Make sure the webook preserves existing resource requests Make sure the webhook preserves existing resource requests Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant