huanggze A copy of your changes has been stored to “/tmp/kubectl-edit-b3f08.yaml”
error: no original object found for &unstructured.Unstructured
{
Object: map[string] interface {} {
“apiVersion”: “rbac.authorization.k8s.io/v1″, “kind”: “ClusterRole”, “metadata”: map[string] interface {} {
“annotations”: interface {}(nil), “labels”: map[string] interface {} {
“app.kubernetes.io/name”: “kube-state-metrics”, “app.kubernetes.io/version”: “v1.9.4″
}, “name”: “kubesphere-kube-state-metrics”, “resourceVersion”: “338724”, “selfLink”: “/apis/rbac.authorization.k8s.io/v1/clusterroles/kube-state-metrics”, “uid”: “be243ec7-20c6-49d7-8980-d660a9b5a22d”
}, “rules”: [] interface {} {
map[string] interface {} {
“apiGroups”: [] interface {} {
""
}, “resources”: [] interface {} {
“configmaps”, “secrets”, “nodes”, “pods”, “services”, “resourcequotas”, “replicationcontrollers”, “limitranges”, “persistentvolumeclaims”, “persistentvolumes”, “namespaces”, “endpoints”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“extensions”
}, “resources”: [] interface {} {
“daemonsets”, “deployments”, “replicasets”, “ingresses”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“apps”
}, “resources”: [] interface {} {
“statefulsets”, “daemonsets”, “deployments”, “replicasets”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“batch”
}, “resources”: [] interface {} {
“cronjobs”, “jobs”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“autoscaling”
}, “resources”: [] interface {} {
“horizontalpodautoscalers”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“authentication.k8s.io”
}, “resources”: [] interface {} {
“tokenreviews”
}, “verbs”: [] interface {} {
“create”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“authorization.k8s.io”
}, “resources”: [] interface {} {
“subjectaccessreviews”
}, “verbs”: [] interface {} {
“create”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“policy”
}, “resources”: [] interface {} {
“poddisruptionbudgets”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“certificates.k8s.io”
}, “resources”: [] interface {} {
“certificatesigningrequests”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“storage.k8s.io”
}, “resources”: [] interface {} {
“storageclasses”, “volumeattachments”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“admissionregistration.k8s.io”
}, “resources”: [] interface {} {
“mutatingwebhookconfigurations”, “validatingwebhookconfigurations”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“networking.k8s.io”
}, “resources”: [] interface {} {
“networkpolicies”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}, map[string] interface {} {
“apiGroups”: [] interface {} {
“coordination.k8s.io”
}, “resources”: [] interface {} {
“leases”
}, “verbs”: [] interface {} {
“list”, “watch”
}
}
}
}
}
编辑了一下格式,看一下这个异常是什么原因呢?