isDeploymentReady returns true if the operator deployment has the expected number of ready pods. It returns an error if there was a problem getting the operator deployment
(ctx context.Context, crudClient client.Client)
| 230 | // of ready pods. |
| 231 | // It returns an error if there was a problem getting the operator deployment |
| 232 | func isDeploymentReady(ctx context.Context, crudClient client.Client) (bool, error) { |
| 233 | operatorDeployment, err := GetDeployment(ctx, crudClient) |
| 234 | if err != nil { |
| 235 | return false, err |
| 236 | } |
| 237 | |
| 238 | return deployments.IsReady(operatorDeployment), nil |
| 239 | } |
| 240 | |
| 241 | // ScaleOperatorDeployment will scale the operator to n replicas and return an error in case of failure |
| 242 | func ScaleOperatorDeployment( |
no test coverage detected