Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Move pod scheduler webhook to api-manager#315

Merged
croomes merged 1 commit intomasterfrom
admission-scheduler
Apr 9, 2021
Merged

Move pod scheduler webhook to api-manager#315
croomes merged 1 commit intomasterfrom
admission-scheduler

Conversation

@croomes
Copy link
Contributor

@croomes croomes commented Apr 6, 2021

Moves the pod scheduler mutating webhook server to the api-manager: storageos/api-manager#40

The operator is now only responsible for creating the webhook configuration, the service and the RBAC rules required by api-manager.

Previously, DISABLE_SCHEDULER_WEBHOOK could be set as an environment variable on the operator to disable the scheduler and to not set up the webhook server or configuration rules.

Since we will now have multiple handlers all requiring the webhook (there will be two: one mutating, another validating), there is no longer an option not to create the webhook configuration. Instead, to disable the Pod scheduler, set disableScheduler=true in the StorageOSCluster CR. This is the same as before and makes the pod scheduler webhook a no-op.

@croomes croomes requested review from avestuk and darkowlzz April 6, 2021 14:20
@croomes croomes force-pushed the admission-scheduler branch 10 times, most recently from c72c77a to e7685f9 Compare April 7, 2021 11:23
@croomes croomes force-pushed the admission-scheduler branch 2 times, most recently from b483439 to a463742 Compare April 8, 2021 11:31
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@croomes croomes merged commit 690bced into master Apr 9, 2021
@croomes croomes deleted the admission-scheduler branch April 9, 2021 15:38
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.

2 participants