You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement - Introduce pvcName input param in CNSUnregisterVolume spec
Adds validation rules using x-kubernetes-validations to ensure that only one of the volumeID or pvcName is specified to avoid ambiguity.
Updates the reconciler to use the informer cache to find out the PV and VolumeID when the PVC Name is supplied.
Optimises the reconciler logic to ignore all such events that do not increment the generation.
Optimises the usage calculation logic by failing fast when usages are detected.
Updates the reconciler to add a finalizer to the CR before reconciling to have control over deletion process
Updates the reconciler to process the delete events and remove the finalizer for graceful deletion.
Updates the reconciler to protect the PVC using a finalizer to gracefully reconciler in case of retries
Removes the code that retains the persistent volume as it's no longer required
Updates the reconciler to remove the finalizer on the PVC once unregistration is successful for graceful deletion of the PVC.
Adds/updates unit tests wherever necessary and applicable.
description: CnsUnregisterVolume is the Schema for the cnsunregistervolumes API
23
-
properties:
24
-
apiVersion:
25
-
description: 'APIVersion defines the versioned schema of this representation
18
+
- name: v1alpha1
19
+
schema:
20
+
openAPIV3Schema:
21
+
description: CnsUnregisterVolume is the Schema for the cnsunregistervolumes API
22
+
properties:
23
+
apiVersion:
24
+
description: 'APIVersion defines the versioned schema of this representation
26
25
of an object. Servers should convert recognized schemas to the latest
27
26
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
28
-
type: string
29
-
kind:
30
-
description: 'Kind is a string value representing the REST resource this
27
+
type: string
28
+
kind:
29
+
description: 'Kind is a string value representing the REST resource this
31
30
object represents. Servers may infer this from the endpoint the client
32
31
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
33
-
type: string
34
-
metadata:
35
-
type: object
36
-
spec:
37
-
description: CnsUnregisterVolumeSpec defines the desired state of CnsUnregisterVolume
38
-
properties:
39
-
volumeID:
40
-
description: VolumeID indicates the volume handle of CNS volume to be unregistered.
0 commit comments