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
This commit introduces the operand cleanup API that allows
configuring the CSV to enable cleanup of CRs managed by this CSV's operator
when the CSV is deleted.
This also includes a status.cleanup block that will be used to show the progress
of cleanup.
Copy file name to clipboardExpand all lines: crds/operators.coreos.com_clusterserviceversions.yaml
+44-1Lines changed: 44 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,14 @@ spec:
288
288
type: string
289
289
version:
290
290
type: string
291
+
cleanup:
292
+
description: Cleanup specifies the cleanup behaviour when the CSV gets deleted
293
+
type: object
294
+
required:
295
+
- enabled
296
+
properties:
297
+
enabled:
298
+
type: boolean
291
299
customresourcedefinitions:
292
300
description: "CustomResourceDefinitions declares all of the CRDs managed or required by an operator being ran by ClusterServiceVersion. \n If the CRD is present in the Owned list, it is implicitly required."
293
301
type: object
@@ -4671,7 +4679,7 @@ spec:
4671
4679
webhookPath:
4672
4680
type: string
4673
4681
status:
4674
-
description: ClusterServiceVersionStatus represents information about the status of a pod. Status may trail the actual state of a system.
4682
+
description: ClusterServiceVersionStatus represents information about the status of a CSV. Status may trail the actual state of a system.
4675
4683
type: object
4676
4684
properties:
4677
4685
certsLastUpdated:
@@ -4682,6 +4690,41 @@ spec:
4682
4690
description: Time the owned APIService certs will rotate next
4683
4691
type: string
4684
4692
format: date-time
4693
+
cleanup:
4694
+
description: CleanupStatus represents information about the status of cleanup while a CSV is pending deletion
4695
+
type: object
4696
+
properties:
4697
+
pendingDeletion:
4698
+
description: PendingDeletion is the list of custom resource objects that are pending deletion and blocked on finalizers. This indicates the progress of cleanup that is blocking CSV deletion or operator uninstall.
4699
+
type: array
4700
+
items:
4701
+
description: ResourceList represents a list of resources which are of the same GVK
4702
+
type: object
4703
+
required:
4704
+
- group
4705
+
- instances
4706
+
- kind
4707
+
- version
4708
+
properties:
4709
+
group:
4710
+
type: string
4711
+
instances:
4712
+
type: array
4713
+
items:
4714
+
description: NamespacedName represents the name and namespace of a resource
4715
+
type: object
4716
+
required:
4717
+
- name
4718
+
properties:
4719
+
name:
4720
+
type: string
4721
+
namespace:
4722
+
description: Namespace can be empty for cluster-scoped resources
4723
+
type: string
4724
+
kind:
4725
+
type: string
4726
+
version:
4727
+
type: string
4685
4728
conditions:
4686
4729
description: List of conditions, a history of state transitions
0 commit comments