From 704726081aea890b8a8c12704d87c14e2d12d34e Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Sun, 26 Jan 2025 21:30:35 +0300 Subject: [PATCH] fix Signed-off-by: Aleksandr Zimin --- crds/nfsstorageclass.yaml | 1 + hooks/scheduler_extender_enabler.py | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crds/nfsstorageclass.yaml b/crds/nfsstorageclass.yaml index 0aefc745..4a09ca65 100644 --- a/crds/nfsstorageclass.yaml +++ b/crds/nfsstorageclass.yaml @@ -135,6 +135,7 @@ spec: properties: nodeSelector: type: object + minProperties: 1 description: | Node selector to specify rules for selecting nodes where Persistent Volumes (PVs) created by this StorageClass are allowed to connect. Combines simple label matches and advanced matching expressions. If this parameter is omitted, NFS shares can be mounted on any node in the cluster running the `Linux` OS. diff --git a/hooks/scheduler_extender_enabler.py b/hooks/scheduler_extender_enabler.py index de8e29a9..f8fb7e6e 100755 --- a/hooks/scheduler_extender_enabler.py +++ b/hooks/scheduler_extender_enabler.py @@ -18,14 +18,9 @@ # import yaml # from deckhouse import hook from deckhouse import hook -from typing import Callable - -import yaml -import hashlib from lib.hooks.hook import Hook from lib.module import values as module_values -import common config = """