diff --git a/pkg/controller/volume/expand/expand_controller.go b/pkg/controller/volume/expand/expand_controller.go index 735bc388bdc..27ee243906c 100644 --- a/pkg/controller/volume/expand/expand_controller.go +++ b/pkg/controller/volume/expand/expand_controller.go @@ -68,6 +68,8 @@ type CSINameTranslator interface { GetCSINameFromInTreeName(pluginName string) (string, error) } +// Deprecated: This controller is deprecated and for now exists for the sole purpose of adding +// necessary annotations if necessary, so as volume can be expanded externally in the control-plane type expandController struct { // kubeClient is the kube API client used by volumehost to communicate with // the API server. diff --git a/pkg/volume/util/operationexecutor/operation_generator.go b/pkg/volume/util/operationexecutor/operation_generator.go index 83566f4c5bf..6accbb53fd1 100644 --- a/pkg/volume/util/operationexecutor/operation_generator.go +++ b/pkg/volume/util/operationexecutor/operation_generator.go @@ -1679,6 +1679,8 @@ func (og *operationGenerator) GenerateExpandAndRecoverVolumeFunc( }, nil } +// Deprecated: This function should not called by any controller code in future and should be removed +// from kubernetes code func (og *operationGenerator) expandAndRecoverFunction(resizeOpts inTreeResizeOpts) inTreeResizeResponse { pvc := resizeOpts.pvc pv := resizeOpts.pv