From b666097e8610a2d7e216c37caf4aa56bd2137eb4 Mon Sep 17 00:00:00 2001 From: Viktor Kramarenko Date: Fri, 16 Feb 2024 17:07:03 +0300 Subject: [PATCH] refactoring Signed-off-by: Viktor Kramarenko --- crds/lvmstorageclass.yaml | 3 - .../api/v1alpha1/lvm_storage_class.go | 2 +- .../api/v1alpha1/lvm_volume_group.go | 2 +- .../api/v1alpha1/register.go | 2 +- .../api/v1alpha1/zz_generated.deepcopy.go | 2 +- images/sds-lvm-controller/cmd/main.go | 2 +- .../sds-lvm-controller/pkg/config/config.go | 2 +- .../controller/lvm_storage_class_watcher.go | 89 +++++++------------ .../pkg/kubutils/kubernetes.go | 2 +- .../sds-lvm-controller/pkg/logger/logger.go | 2 +- .../pkg/monitoring/monitoring.go | 2 +- .../api/v1alpha1/lvm_logical_volume.go | 2 +- .../api/v1alpha1/lvm_volume_group.go | 2 +- images/sds-lvm-csi/api/v1alpha1/register.go | 2 +- .../api/v1alpha1/zz_generated.deepcopy.go | 2 +- images/sds-lvm-csi/cmd/main.go | 2 +- images/sds-lvm-csi/config/config.go | 2 +- images/sds-lvm-csi/driver/const.go | 2 +- images/sds-lvm-csi/driver/controller.go | 2 +- images/sds-lvm-csi/driver/driver.go | 2 +- images/sds-lvm-csi/driver/health.go | 2 +- images/sds-lvm-csi/driver/identity.go | 2 +- images/sds-lvm-csi/driver/node.go | 2 +- images/sds-lvm-csi/driver/type.go | 2 +- images/sds-lvm-csi/pkg/kubutils/kubernetes.go | 2 +- images/sds-lvm-csi/pkg/logger/logger.go | 2 +- images/sds-lvm-csi/pkg/utils/func.go | 2 +- images/sds-lvm-csi/pkg/utils/volume.go | 2 +- .../api/v1alpha1/lvm_volume_group.go | 2 +- .../api/v1alpha1/register.go | 2 +- .../api/v1alpha1/zz_generated.deepcopy.go | 2 +- .../config/config.go | 2 +- .../pkg/kubutils/kubernetes.go | 2 +- .../pkg/logger/logger.go | 2 +- 34 files changed, 62 insertions(+), 94 deletions(-) diff --git a/crds/lvmstorageclass.yaml b/crds/lvmstorageclass.yaml index 4e065455..2e77c6aa 100644 --- a/crds/lvmstorageclass.yaml +++ b/crds/lvmstorageclass.yaml @@ -81,9 +81,6 @@ spec: - WaitForFirstConsumer allowVolumeExpansion: type: boolean - x-kubernetes-validations: - - rule: self == oldSelf - message: Value is immutable. description: | Configure if Persistent Volume is going to be expandable. lvmVolumeGroups: diff --git a/images/sds-lvm-controller/api/v1alpha1/lvm_storage_class.go b/images/sds-lvm-controller/api/v1alpha1/lvm_storage_class.go index 30685ae9..5e272ead 100644 --- a/images/sds-lvm-controller/api/v1alpha1/lvm_storage_class.go +++ b/images/sds-lvm-controller/api/v1alpha1/lvm_storage_class.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-controller/api/v1alpha1/lvm_volume_group.go b/images/sds-lvm-controller/api/v1alpha1/lvm_volume_group.go index 5ea01488..52123b9d 100644 --- a/images/sds-lvm-controller/api/v1alpha1/lvm_volume_group.go +++ b/images/sds-lvm-controller/api/v1alpha1/lvm_volume_group.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-controller/api/v1alpha1/register.go b/images/sds-lvm-controller/api/v1alpha1/register.go index 2fa59039..f5f0c2d2 100644 --- a/images/sds-lvm-controller/api/v1alpha1/register.go +++ b/images/sds-lvm-controller/api/v1alpha1/register.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-controller/api/v1alpha1/zz_generated.deepcopy.go b/images/sds-lvm-controller/api/v1alpha1/zz_generated.deepcopy.go index 845aa402..4cb1ee90 100644 --- a/images/sds-lvm-controller/api/v1alpha1/zz_generated.deepcopy.go +++ b/images/sds-lvm-controller/api/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-controller/cmd/main.go b/images/sds-lvm-controller/cmd/main.go index cd2a3ba6..9d154a7f 100644 --- a/images/sds-lvm-controller/cmd/main.go +++ b/images/sds-lvm-controller/cmd/main.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-controller/pkg/config/config.go b/images/sds-lvm-controller/pkg/config/config.go index 0d376b89..6775c087 100644 --- a/images/sds-lvm-controller/pkg/config/config.go +++ b/images/sds-lvm-controller/pkg/config/config.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-controller/pkg/controller/lvm_storage_class_watcher.go b/images/sds-lvm-controller/pkg/controller/lvm_storage_class_watcher.go index 0676e8c3..19e3f1b4 100644 --- a/images/sds-lvm-controller/pkg/controller/lvm_storage_class_watcher.go +++ b/images/sds-lvm-controller/pkg/controller/lvm_storage_class_watcher.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -98,27 +98,9 @@ func RunLVMStorageClassWatcherController( return reconcile.Result{}, err } - shouldRequeue := false - recType := identifyReconcileFunc(scList, lsc) - log.Debug(fmt.Sprintf("[LVMStorageClassReconciler] reconcile operation: %s", recType)) - switch recType { - case CreateReconcile: - shouldRequeue, err = reconcileLSCCreateFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[LVMStorageClassReconciler] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - case UpdateReconcile: - shouldRequeue, err = reconcileLSCUpdateFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[LVMStorageClassReconciler] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - case DeleteReconcile: - shouldRequeue, err = reconcileLSCDeleteFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[LVMStorageClassReconciler] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - default: - log.Debug(fmt.Sprintf("[LVMStorageClassReconciler] the LVMStorageClass %s should not be reconciled", lsc.Name)) + shouldRequeue, err := runEventReconcile(ctx, cl, log, scList, lsc) + if err != nil { + log.Error(err, fmt.Sprintf("[LVMStorageClassReconciler] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) } if shouldRequeue { @@ -161,27 +143,9 @@ func RunLVMStorageClassWatcherController( return } - shouldRequeue := false - recType := identifyReconcileFunc(scList, lsc) - log.Debug(fmt.Sprintf("[CreateFunc] reconcile operation: %s", recType)) - switch recType { - case CreateReconcile: - shouldRequeue, err = reconcileLSCCreateFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[CreateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - case UpdateReconcile: - shouldRequeue, err = reconcileLSCUpdateFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[CreateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - case DeleteReconcile: - shouldRequeue, err = reconcileLSCDeleteFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[CreateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - default: - log.Debug(fmt.Sprintf("[CreateFunc] the LVMStorageClass %s should not be reconciled", lsc.Name)) + shouldRequeue, err := runEventReconcile(ctx, cl, log, scList, lsc) + if err != nil { + log.Error(err, fmt.Sprintf("[CreateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) } if shouldRequeue { @@ -218,22 +182,9 @@ func RunLVMStorageClassWatcherController( return } - shouldRequeue := false - recType := identifyReconcileFunc(scList, lsc) - log.Debug(fmt.Sprintf("[UpdateFunc] reconcile operation: %s", recType)) - switch recType { - case UpdateReconcile: - shouldRequeue, err = reconcileLSCUpdateFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[UpdateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - case DeleteReconcile: - shouldRequeue, err = reconcileLSCDeleteFunc(ctx, cl, log, scList, lsc) - if err != nil { - log.Error(err, fmt.Sprintf("[UpdateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) - } - default: - log.Debug(fmt.Sprintf("[UpdateFunc] the LVMStorageClass %s should not be reconciled", lsc.Name)) + shouldRequeue, err := runEventReconcile(ctx, cl, log, scList, lsc) + if err != nil { + log.Error(err, fmt.Sprintf("[UpdateFunc] an error occured while reconciles the LVMStorageClass, name: %s", lsc.Name)) } if shouldRequeue { @@ -257,6 +208,26 @@ func RunLVMStorageClassWatcherController( return c, nil } +func runEventReconcile(ctx context.Context, cl client.Client, log logger.Logger, scList *v1.StorageClassList, lsc *v1alpha1.LvmStorageClass) (bool, error) { + recType := identifyReconcileFunc(scList, lsc) + log.Debug(fmt.Sprintf("[runEventReconcile] reconcile operation: %s", recType)) + switch recType { + case CreateReconcile: + log.Debug(fmt.Sprintf("[runEventReconcile] CreateReconcile starts reconciliataion for the LVMStorageClass, name: %s", lsc.Name)) + return reconcileLSCCreateFunc(ctx, cl, log, scList, lsc) + case UpdateReconcile: + log.Debug(fmt.Sprintf("[runEventReconcile] UpdateReconcile starts reconciliataion for the LVMStorageClass, name: %s", lsc.Name)) + return reconcileLSCUpdateFunc(ctx, cl, log, scList, lsc) + case DeleteReconcile: + log.Debug(fmt.Sprintf("[runEventReconcile] DeleteReconcile starts reconciliataion for the LVMStorageClass, name: %s", lsc.Name)) + return reconcileLSCDeleteFunc(ctx, cl, log, scList, lsc) + default: + log.Debug(fmt.Sprintf("[runEventReconcile] the LVMStorageClass %s should not be reconciled", lsc.Name)) + } + + return false, nil +} + func reconcileLSCDeleteFunc( ctx context.Context, cl client.Client, diff --git a/images/sds-lvm-controller/pkg/kubutils/kubernetes.go b/images/sds-lvm-controller/pkg/kubutils/kubernetes.go index 5bb37ea1..4714cfe8 100644 --- a/images/sds-lvm-controller/pkg/kubutils/kubernetes.go +++ b/images/sds-lvm-controller/pkg/kubutils/kubernetes.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-controller/pkg/logger/logger.go b/images/sds-lvm-controller/pkg/logger/logger.go index 8599e572..345af2bd 100644 --- a/images/sds-lvm-controller/pkg/logger/logger.go +++ b/images/sds-lvm-controller/pkg/logger/logger.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-controller/pkg/monitoring/monitoring.go b/images/sds-lvm-controller/pkg/monitoring/monitoring.go index b0158c35..a282d9fd 100644 --- a/images/sds-lvm-controller/pkg/monitoring/monitoring.go +++ b/images/sds-lvm-controller/pkg/monitoring/monitoring.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/api/v1alpha1/lvm_logical_volume.go b/images/sds-lvm-csi/api/v1alpha1/lvm_logical_volume.go index 36acd845..1266fe75 100644 --- a/images/sds-lvm-csi/api/v1alpha1/lvm_logical_volume.go +++ b/images/sds-lvm-csi/api/v1alpha1/lvm_logical_volume.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/api/v1alpha1/lvm_volume_group.go b/images/sds-lvm-csi/api/v1alpha1/lvm_volume_group.go index 62699e68..2784ffa9 100644 --- a/images/sds-lvm-csi/api/v1alpha1/lvm_volume_group.go +++ b/images/sds-lvm-csi/api/v1alpha1/lvm_volume_group.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/api/v1alpha1/register.go b/images/sds-lvm-csi/api/v1alpha1/register.go index 1a5043bb..441a3be7 100644 --- a/images/sds-lvm-csi/api/v1alpha1/register.go +++ b/images/sds-lvm-csi/api/v1alpha1/register.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/api/v1alpha1/zz_generated.deepcopy.go b/images/sds-lvm-csi/api/v1alpha1/zz_generated.deepcopy.go index a6456841..1afd3059 100644 --- a/images/sds-lvm-csi/api/v1alpha1/zz_generated.deepcopy.go +++ b/images/sds-lvm-csi/api/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/cmd/main.go b/images/sds-lvm-csi/cmd/main.go index 3fd23ba7..3e80ad15 100644 --- a/images/sds-lvm-csi/cmd/main.go +++ b/images/sds-lvm-csi/cmd/main.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/config/config.go b/images/sds-lvm-csi/config/config.go index a47f5756..92d45673 100644 --- a/images/sds-lvm-csi/config/config.go +++ b/images/sds-lvm-csi/config/config.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/const.go b/images/sds-lvm-csi/driver/const.go index 89102e36..5fbfdbc1 100644 --- a/images/sds-lvm-csi/driver/const.go +++ b/images/sds-lvm-csi/driver/const.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/controller.go b/images/sds-lvm-csi/driver/controller.go index 9b06def6..fca5a6d8 100644 --- a/images/sds-lvm-csi/driver/controller.go +++ b/images/sds-lvm-csi/driver/controller.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/driver.go b/images/sds-lvm-csi/driver/driver.go index 4af24faf..013660b9 100644 --- a/images/sds-lvm-csi/driver/driver.go +++ b/images/sds-lvm-csi/driver/driver.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/health.go b/images/sds-lvm-csi/driver/health.go index eb6cde8c..916d6584 100644 --- a/images/sds-lvm-csi/driver/health.go +++ b/images/sds-lvm-csi/driver/health.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/identity.go b/images/sds-lvm-csi/driver/identity.go index ca061a76..7c860211 100644 --- a/images/sds-lvm-csi/driver/identity.go +++ b/images/sds-lvm-csi/driver/identity.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/node.go b/images/sds-lvm-csi/driver/node.go index 386d26a2..2dea3bf8 100644 --- a/images/sds-lvm-csi/driver/node.go +++ b/images/sds-lvm-csi/driver/node.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/driver/type.go b/images/sds-lvm-csi/driver/type.go index 138e822b..4407dbd4 100644 --- a/images/sds-lvm-csi/driver/type.go +++ b/images/sds-lvm-csi/driver/type.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/pkg/kubutils/kubernetes.go b/images/sds-lvm-csi/pkg/kubutils/kubernetes.go index b80d6a36..7d478b0b 100644 --- a/images/sds-lvm-csi/pkg/kubutils/kubernetes.go +++ b/images/sds-lvm-csi/pkg/kubutils/kubernetes.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/pkg/logger/logger.go b/images/sds-lvm-csi/pkg/logger/logger.go index 8599e572..345af2bd 100644 --- a/images/sds-lvm-csi/pkg/logger/logger.go +++ b/images/sds-lvm-csi/pkg/logger/logger.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/pkg/utils/func.go b/images/sds-lvm-csi/pkg/utils/func.go index f81afa92..996551b9 100644 --- a/images/sds-lvm-csi/pkg/utils/func.go +++ b/images/sds-lvm-csi/pkg/utils/func.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-csi/pkg/utils/volume.go b/images/sds-lvm-csi/pkg/utils/volume.go index c01c7156..3b188bdc 100644 --- a/images/sds-lvm-csi/pkg/utils/volume.go +++ b/images/sds-lvm-csi/pkg/utils/volume.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/images/sds-lvm-scheduler-extender/api/v1alpha1/lvm_volume_group.go b/images/sds-lvm-scheduler-extender/api/v1alpha1/lvm_volume_group.go index 5ea01488..52123b9d 100644 --- a/images/sds-lvm-scheduler-extender/api/v1alpha1/lvm_volume_group.go +++ b/images/sds-lvm-scheduler-extender/api/v1alpha1/lvm_volume_group.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-scheduler-extender/api/v1alpha1/register.go b/images/sds-lvm-scheduler-extender/api/v1alpha1/register.go index 183f8090..41ffb5f8 100644 --- a/images/sds-lvm-scheduler-extender/api/v1alpha1/register.go +++ b/images/sds-lvm-scheduler-extender/api/v1alpha1/register.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-scheduler-extender/api/v1alpha1/zz_generated.deepcopy.go b/images/sds-lvm-scheduler-extender/api/v1alpha1/zz_generated.deepcopy.go index ede9ba42..4d687bc1 100644 --- a/images/sds-lvm-scheduler-extender/api/v1alpha1/zz_generated.deepcopy.go +++ b/images/sds-lvm-scheduler-extender/api/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-scheduler-extender/config/config.go b/images/sds-lvm-scheduler-extender/config/config.go index 4fb068fa..662de7e2 100644 --- a/images/sds-lvm-scheduler-extender/config/config.go +++ b/images/sds-lvm-scheduler-extender/config/config.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-scheduler-extender/pkg/kubutils/kubernetes.go b/images/sds-lvm-scheduler-extender/pkg/kubutils/kubernetes.go index 5bb37ea1..4714cfe8 100644 --- a/images/sds-lvm-scheduler-extender/pkg/kubutils/kubernetes.go +++ b/images/sds-lvm-scheduler-extender/pkg/kubutils/kubernetes.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/images/sds-lvm-scheduler-extender/pkg/logger/logger.go b/images/sds-lvm-scheduler-extender/pkg/logger/logger.go index 236ada4f..19dd40a3 100644 --- a/images/sds-lvm-scheduler-extender/pkg/logger/logger.go +++ b/images/sds-lvm-scheduler-extender/pkg/logger/logger.go @@ -1,5 +1,5 @@ /* -Copyright 2023 Flant JSC +Copyright 2024 Flant JSC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at