Skip to content

Conversation

danilrwx
Copy link
Contributor

@danilrwx danilrwx commented Nov 5, 2024

Description

Align the method for getting the default StorageClass with how the default StorageClass is defined in k8s

Why do we need it, and what problem does it solve?

Currently if there are multiple default StorageClasses, we take the random one, the behavior in k8s is different, the last annotated default StorageClass is taken

What is the expected result?

Take the last annotated default StorageClass

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@danilrwx danilrwx force-pushed the feat/vi-vd/get-newest-default-storage-class branch 3 times, most recently from 16d86e2 to 15994d9 Compare November 5, 2024 13:02
@yaroslavborbat yaroslavborbat self-requested a review November 5, 2024 13:43
@danilrwx danilrwx force-pushed the feat/vi-vd/get-newest-default-storage-class branch 2 times, most recently from 2e988d0 to 1ff566b Compare November 5, 2024 14:19
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
@danilrwx danilrwx force-pushed the feat/vi-vd/get-newest-default-storage-class branch from c894674 to d21bc4f Compare November 5, 2024 14:25
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
@danilrwx danilrwx merged commit d0f447d into main Nov 5, 2024
1 check passed
@danilrwx danilrwx deleted the feat/vi-vd/get-newest-default-storage-class branch November 5, 2024 16:52
universal-itengineer pushed a commit that referenced this pull request Nov 6, 2024
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>

feat(vi-vd): get newest default StorageClass in e2e tests

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>

feat(vi-vd): fix ling errors

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>

feat(vi-vd): fix lint error

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
universal-itengineer pushed a commit that referenced this pull request Nov 6, 2024
Align the method for getting the default StorageClass with how the default StorageClass is defined in k8s

Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
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.

2 participants