Details
-
Bug
-
Resolution: Won't Do
-
Blocker
-
None
Description
When I delete WildFlyServer CR PVC created by this CR is not deleted as StatefullSet and Pods are .
I see Statefull Set and Pod has ownerReferences attribute referencing to parent.
ownerReferences
List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.
I dont see such attribute specified in PVC
# Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: pv.kubernetes.io/bind-completed: "yes" pv.kubernetes.io/bound-by-controller: "yes" creationTimestamp: 2019-08-30T13:12:27Z finalizers: - kubernetes.io/pvc-protection labels: app.kubernetes.io/managed-by: wildfly-operator app.kubernetes.io/name: simple-jaxrs-eap72 app.openshift.io/runtime: wildfly name: simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0 namespace: mchoma resourceVersion: "3633284" selfLink: /api/v1/namespaces/mchoma/persistentvolumeclaims/simple-jaxrs-eap72-volume-simple-jaxrs-eap72-0 uid: d0aac389-cb27-11e9-b93c-fa163e9a0fb6 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Mi volumeName: vol57 status: accessModes: - ReadWriteMany - ReadWriteOnce capacity: storage: 1Gi phase: Bound