1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 02:45:06 +00:00
This commit is contained in:
Shuting Zhao 2020-01-02 19:46:02 -08:00
parent 956cb0559a
commit e466a8e1df

View file

@ -256,7 +256,7 @@ func cleanupOldCrd(client *dclient.Client) {
gvr := client.DiscoveryClient.GetGVRFromKind("NamespacedPolicyViolation")
if !reflect.DeepEqual(gvr, (schema.GroupVersionResource{})) {
if err := client.DeleteResource("CustomResourceDefinition", "", "namespacedpolicyviolations.kyverno.io", false); err != nil {
glog.Info("Failed to remove previous CRD namespacedpolicyviolations: %v", err)
glog.Infof("Failed to remove previous CRD namespacedpolicyviolations: %v", err)
}
}
}