MCPcopy Create free account
hub / github.com/Scalingo/cli / autoscaleDisableMessage

Function autoscaleDisableMessage

apps/scale.go:191–207  ·  view source on GitHub ↗
(typesWithAutoscaler []string)

Source from the content-addressed store, hash-verified

189}
190
191func autoscaleDisableMessage(typesWithAutoscaler []string) string {
192 if len(typesWithAutoscaler) <= 0 {
193 return ""
194 }
195 msg := "An autoscaler is configured for " + strings.Join(typesWithAutoscaler, ", ") + " container"
196 if len(typesWithAutoscaler) > 1 {
197 msg += "s"
198 }
199 msg += ". Manually scaling "
200 if len(typesWithAutoscaler) > 1 {
201 msg += "them"
202 } else {
203 msg += "it"
204 }
205 msg += " will disable the autoscaler. Do you confirm? (y/N)"
206 return msg
207}

Callers 1

ScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected