Skip to content

Commit

Permalink
Merge pull request #179 from Fedosin/delete_resources
Browse files Browse the repository at this point in the history
馃悰 Do not leave resources on the system after removing a provider
  • Loading branch information
k8s-ci-robot committed Jun 27, 2023
2 parents 23fbe96 + 79fa510 commit 667606e
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions internal/controller/client_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func (k *controllerProxy) ListResources(labels map[string]string, namespaces ...
{Kind: "Secret", Namespaced: true},
{Kind: "ConfigMap", Namespaced: true},
{Kind: "Service", Namespaced: true},
{Kind: "ServiceAccount", Namespaced: true},
{Kind: "Namespace"},
},
},
{
Expand All @@ -88,8 +90,30 @@ func (k *controllerProxy) ListResources(labels map[string]string, namespaces ...
{
GroupVersion: "admissionregistration.k8s.io/v1",
APIResources: []metav1.APIResource{
{Kind: "ValidatingWebhookConfiguration", Namespaced: true},
{Kind: "MutatingWebhookConfiguration", Namespaced: true},
{Kind: "ValidatingWebhookConfiguration"},
{Kind: "MutatingWebhookConfiguration"},
},
},
{
GroupVersion: "apiextensions.k8s.io/v1",
APIResources: []metav1.APIResource{
{Kind: "CustomResourceDefinition"},
},
},
{
GroupVersion: "cert-manager.io/v1",
APIResources: []metav1.APIResource{
{Kind: "Certificate", Namespaced: true},
{Kind: "Issuer", Namespaced: true},
},
},
{
GroupVersion: "rbac.authorization.k8s.io/v1",
APIResources: []metav1.APIResource{
{Kind: "Role", Namespaced: true},
{Kind: "RoleBinding", Namespaced: true},
{Kind: "ClusterRole"},
{Kind: "ClusterRoleBinding"},
},
},
}
Expand Down

0 comments on commit 667606e

Please sign in to comment.