(typesWithAutoscaler []string)
| 189 | } |
| 190 | |
| 191 | func 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 | } |