Deprecate intree Volume Expansion controller

This commit is contained in:
Hemant Kumar
2024-07-12 14:42:04 -04:00
parent ad28dfb42e
commit 7a51999ddf
2 changed files with 4 additions and 0 deletions

View File

@@ -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.

View File

@@ -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