Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Fyfe committed Feb 1, 2022
1 parent 6db27f0 commit 7294441
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/popeye.go
Expand Up @@ -128,7 +128,6 @@ func (p *Popeye) scannedGVRs(rev *client.Revision) []string {
"apps/v1/statefulsets",
"policy/v1beta1/podsecuritypolicies",
"networking.k8s.io/v1/networkpolicies",
"autoscaling/v1/horizontalpodautoscalers",
"rbac.authorization.k8s.io/v1/clusterroles",
"rbac.authorization.k8s.io/v1/clusterrolebindings",
"rbac.authorization.k8s.io/v1/roles",
Expand All @@ -145,6 +144,11 @@ func (p *Popeye) scannedGVRs(rev *client.Revision) []string {
} else {
mm = append(mm, "policy/v1beta1/poddisruptionbudgets")
}
if rev.Minor >= 23 {
mm = append(mm, "autoscaling/v2/horizontalpodautoscalers")
} else {
mm = append(mm, "autoscaling/v1/horizontalpodautoscalers")
}

return mm
}
Expand Down

0 comments on commit 7294441

Please sign in to comment.