MCPcopy
hub / github.com/zegl/kube-score / RegisterHorizontalPodAutoscalerCheck

Method RegisterHorizontalPodAutoscalerCheck

score/checks/checks.go:122–124  ·  view source on GitHub ↗
(name, comment string, fn CheckFunc[ks.HpaTargeter])

Source from the content-addressed store, hash-verified

120}
121
122func (c *Checks) RegisterHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter]) {
123 reg(c, "HorizontalPodAutoscaler", name, comment, false, fn, c.horizontalPodAutoscalers)
124}
125
126func (c *Checks) RegisterOptionalHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter]) {
127 reg(c, "HorizontalPodAutoscaler", name, comment, true, fn, c.horizontalPodAutoscalers)

Callers 1

RegisterFunction · 0.80

Calls 1

regFunction · 0.85

Tested by

no test coverage detected