我在某些名称空间中附加了CRD。我的问题是,即使删除了CRD所在的名称空间,它也仍然存在!
> oc project
error: the project "uhc-development-15o4llu96oe7rftq8nms5t99djl3cnmh" specified in your config does not exist.
请注意,CRD上没有过滤器
> oc get accountclaim managed-test2005 -o yaml
apiVersion: aws.managed.openshift.io/v1alpha1
kind: AccountClaim
metadata:
creationTimestamp: 2019-05-20T12:38:35Z
generation: 1
labels:
api.openshift.com/id: 15o4llu96oe7rftq8nms5t99djl3cnmh
api.openshift.com/name: managed-test2005
name: managed-test2005
namespace: uhc-development-15o4llu96oe7rftq8nms5t99djl3cnmh
resourceVersion: "13051561"
selfLink: /apis/aws.managed.openshift.io/v1alpha1/namespaces/uhc-development-15o4llu96oe7rftq8nms5t99djl3cnmh/accountclaims/managed-test2005
uid: 2f719fc0-7afc-11e9-964f-001a4a162604
spec:
accountLink: ""
aws:
regions:
- name: us-east-1
awsCredentialSecret:
name: aws
namespace: uhc-development-15o4llu96oe7rftq8nms5t99djl3cnmh
legalEntity:
id: 0
name:
status:
conditions:
- lastProbeTime: 2019-05-20T12:38:35Z
lastTransitionTime: 2019-05-20T12:38:35Z
message: Attempting to claim account
reason: AccountClaimed
status: "True"
type: Unclaimed
state: Ready
以前有人遇到过此问题吗?任何帮助将不胜感激。
答案 0 :(得分:0)
您的CRD的范围是什么?范围指示此资源是群集范围还是名称空间范围。默认是命名空间,但是如果您在集群范围内定义它,那么您所描述的内容就很有意义。
答案 1 :(得分:0)
在黑暗中射击...如果您能够获得CRD本身,那么它可能有一些终结者针对它停止发行。如果您编辑crd并删除那些终结器,您可能会发现CRD将被删除。