Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure v3support #67

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Configure v3support #67

wants to merge 6 commits into from

Conversation

krpsh123
Copy link

@krpsh123 krpsh123 commented Jan 16, 2025

Description

  • Added an alert for the presence of an NFSStorageClass with parameters that are inconsistent with the settings in ModuleConfig.
  • Added parameter validation for NFSStorageClass and ModuleConfig in the controller and webhook.

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

If the parameters of NFSStorageClass and ModuleConfig are inconsistent, PV with NFSv3 support will no longer mount on cluster nodes.

What is the expected result?

  • A user cannot create an NFSStorageClass with parameters inconsistent with the settings in ModuleConfig. If the webhook is disabled, the NFSStorageClass will still be created, but the corresponding StorageClass will not.
  • If the parameters in ModuleConfig are changed to values inconsistent with the parameters of existing NFSStorageClass instances, a label is added to the problematic StorageClass. Based on this label, Prometheus generates an alert: StorageClassDoesNotMatchTheSettingsInModuleConfigCsiNfs.

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.

Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
@krpsh123 krpsh123 added the enhancement New feature or request label Jan 16, 2025
Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
Signed-off-by: Pavel Karpov <pavel.karpov@flant.com>
@krpsh123 krpsh123 self-assigned this Jan 18, 2025
@krpsh123 krpsh123 marked this pull request as ready for review January 20, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant