NamespaceName returns the namespace the operator Deployment is running in
(ctx context.Context, crudClient client.Client)
| 158 | |
| 159 | // NamespaceName returns the namespace the operator Deployment is running in |
| 160 | func NamespaceName(ctx context.Context, crudClient client.Client) (string, error) { |
| 161 | deployment, err := GetDeployment(ctx, crudClient) |
| 162 | if err != nil { |
| 163 | return "", err |
| 164 | } |
| 165 | return deployment.GetNamespace(), err |
| 166 | } |
| 167 | |
| 168 | // IsReady ensures that the operator will be ready. |
| 169 | func IsReady( |
no test coverage detected