Skip to content

Commit de66c15

Browse files
committed
Include ingress resource in preferred versions list
Since several versions of Kubernetes, the ingress resource has been assigned to the API group `networking.k8s.io`, but still compatible with the group `extensions`. This cohabitation brings a weird behavior to Katafygio, where every 30 minutes, the API group would switch from the group `extensions` and `networking.k8s.io`. To avoid that, Katafygio should ignore the old API group and use only the new one.
1 parent d0a1ad8 commit de66c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/observer/observer.go

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ var preferredVersions = map[string]string{
171171
"events:events": ":events",
172172
"extensions:podsecuritypolicies": "policy:podsecuritypolicies",
173173
"networking.k8s.io:networkpolicies": "extensions:networkpolicies",
174+
"networking.k8s.io:ingress": "extensions:ingress",
174175
}
175176

176177
func (c *Observer) expandAndFilterAPIResources(groups []*metav1.APIResourceList) resources {

0 commit comments

Comments
 (0)