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.

Set scheduler when pvcs use default storageclass - #284

Merged
croomes merged 1 commit into
masterfrom
default-storageclass
Nov 25, 2020
Merged

croomes merged 1 commit into
masterfrom
default-storageclass

Conversation

@croomes

@croomes croomes commented Oct 23, 2020

Copy link
Copy Markdown
Contributor

A PVC provisioned using the default StorageClass could cause the admission controller scheduler selection to fail with:

admission webhook "podscheduler.storageos.com" denied the request: failed to determine if the volume is managed: could not get StorageClass name associated with PVC "pvc-test"

This adds support for evaluating default StorageClasses.

@croomes
croomes force-pushed the default-storageclass branch from 3ec9b50 to a487885 Compare October 23, 2020 10:19
@croomes croomes added the do-not-merge/wip The PR is still work in progress or not ready to be merged label Oct 23, 2020
@croomes
croomes force-pushed the default-storageclass branch 2 times, most recently from 36da667 to 90ee9f4 Compare November 6, 2020 15:44
@croomes
croomes force-pushed the default-storageclass branch from e4ea926 to d1ff31f Compare November 23, 2020 14:39
@croomes croomes removed the do-not-merge/wip The PR is still work in progress or not ready to be merged label Nov 24, 2020
@croomes
croomes force-pushed the default-storageclass branch 2 times, most recently from ea0f443 to 7d6f5fb Compare November 24, 2020 17:32
@croomes
croomes force-pushed the default-storageclass branch from 7d6f5fb to a6439b2 Compare November 24, 2020 17:38
@croomes
croomes requested review from avestuk and removed request for domodwyer November 24, 2020 17:51

@darkowlzz darkowlzz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!
Thanks for all the detailed tests.


// DisableDefaultStorageClass disables the default StorageClass, if set. It
// returns a function that re-enables it.
func DisableDefaultStorageClass(t *testing.T, fc framework.FrameworkClient) (func() error, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great! 😄 👍

@croomes
croomes merged commit 15096a6 into master Nov 25, 2020
@croomes
croomes deleted the default-storageclass branch November 25, 2020 10:25
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