Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Conversation

@Mojachieee
Copy link
Collaborator

We have a webhook that sets the schedulerName to storageos-scheduler for any pods that mount storageos volumes. If we disable the scheduler we also want to stop this webhook.

This PR makes the webhook not set the schedulerName, which means it will default to defaultScheduler. It's not entirely foolproof, as a customer may want to set a schedulerName, at which point I think we'd overwrite it

@Mojachieee Mojachieee requested a review from nolancon October 6, 2022 15:24
@Mojachieee Mojachieee requested a review from a team as a code owner October 6, 2022 15:24
Copy link
Collaborator

@nolancon nolancon left a comment

Choose a reason for hiding this comment

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

will this append another --scheduler-name= arg every time the controller reconciles?

@Mojachieee
Copy link
Collaborator Author

will this append another --scheduler-name= arg every time the controller reconciles?

Nope, it's only applying the transforms to the content in deployment-storageos-api-manager.yaml, not the currently deployment yaml

@Mojachieee Mojachieee enabled auto-merge (squash) October 6, 2022 15:38
@Mojachieee Mojachieee merged commit 93baa27 into main Oct 10, 2022
@Mojachieee Mojachieee deleted the disable-scheduler-fix branch October 10, 2022 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants