# kubectl get crd -o yaml
apiVersion: v1
items:
- apiVersion: apiextensions.k8s.io/v1beta1
  kind: CustomResourceDefinition
  metadata:
    creationTimestamp: 2018-04-16T05:09:04Z
    deletionGracePeriodSeconds: 0
    deletionTimestamp: 2018-04-19T04:04:14Z
    finalizers:
    - customresourcecleanup.apiextensions.k8s.io
    generation: 1
    name: clusters.rook.io
    namespace: ""
    resourceVersion: "1554843"
    selfLink: /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/clusters.rook.io
    uid: 484ea6ef-4134-11e8-9dca-90b8d0599f2f
  spec:
    group: rook.io
    names:
      kind: Cluster
      listKind: ClusterList
      plural: clusters
      singular: cluster
    scope: Namespaced
    version: v1alpha1
  status:
    acceptedNames:
      kind: Cluster
      listKind: ClusterList
      plural: clusters
      singular: cluster
    conditions:
    - lastTransitionTime: 2018-04-16T05:09:04Z
      message: no conflicts found
      reason: NoConflicts
      status: "True"
      type: NamesAccepted
    - lastTransitionTime: 2018-04-16T05:09:04Z
      message: the initial names have been accepted
      reason: InitialNamesAccepted
      status: "True"
      type: Established
    - lastTransitionTime: 2018-04-18T13:09:07Z
      message: 'could not confirm zero CustomResources remaining: timed out waiting
        for the condition'
      reason: InstanceDeletionCheck
      status: "True"
      type: Terminating
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""
===================================================================

# kubectl patch crd clusters.rook.io -p '{"metadata":{"finalizers": null}}'
customresourcedefinition.apiextensions.k8s.io "clusters.rook.io" patched

# kubectl get crd
No resources found.

转载于:https://www.cnblogs.com/mhc-fly/p/8884822.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐