Skip to content

Commit

Permalink
fix: remove finalizer handling
Browse files Browse the repository at this point in the history
Originally we added finalizers with the intention of
holding back object deletion until we were certain that
we had removed the relevant configuration from the Kong
Admin API. Ultimately at the time of writing it's not
feasible to get this done, so this removes a half of
the implementation which was causing us complexity without
any added value.
  • Loading branch information
shaneutt committed Jul 10, 2021
1 parent 1eaeda3 commit 1553b0f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 332 deletions.
144 changes: 0 additions & 144 deletions railgun/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ rules:
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- endpoints/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -56,12 +50,6 @@ rules:
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- secrets/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand All @@ -78,12 +66,6 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- services/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand All @@ -100,12 +82,6 @@ rules:
- get
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- apiextensions.k8s.io
resources:
Expand All @@ -122,12 +98,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongclusterplugins/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -144,12 +114,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongconsumers/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -166,12 +130,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -188,12 +146,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongplugins/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -210,12 +162,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- tcpingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -232,12 +178,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- udpingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -254,12 +194,6 @@ rules:
- get
- list
- watch
- apiGroups:
- networking.internal.knative.dev
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- networking.internal.knative.dev
resources:
Expand All @@ -276,12 +210,6 @@ rules:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- networking.k8s.io
resources:
Expand All @@ -306,12 +234,6 @@ rules:
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- endpoints/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -349,12 +271,6 @@ rules:
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- secrets/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand All @@ -371,12 +287,6 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- services/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand All @@ -393,12 +303,6 @@ rules:
- get
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- apiextensions.k8s.io
resources:
Expand All @@ -415,12 +319,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongclusterplugins/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -437,12 +335,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongconsumers/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -459,12 +351,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -481,12 +367,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- kongplugins/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -503,12 +383,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- tcpingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -525,12 +399,6 @@ rules:
- get
- list
- watch
- apiGroups:
- configuration.konghq.com
resources:
- udpingresses/finalizers
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
Expand All @@ -547,12 +415,6 @@ rules:
- get
- list
- watch
- apiGroups:
- networking.internal.knative.dev
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- networking.internal.knative.dev
resources:
Expand All @@ -569,12 +431,6 @@ rules:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingresses/finalizers
verbs:
- update
- apiGroups:
- networking.k8s.io
resources:
Expand Down
Loading

0 comments on commit 1553b0f

Please sign in to comment.