HasBeenUpgraded determines if the operator has been upgraded by checking if there is a deletion timestamp. If there isn't, it returns true
(ctx context.Context, crudClient client.Client)
| 292 | // HasBeenUpgraded determines if the operator has been upgraded by checking |
| 293 | // if there is a deletion timestamp. If there isn't, it returns true |
| 294 | func HasBeenUpgraded(ctx context.Context, crudClient client.Client) bool { |
| 295 | _, err := GetPodName(ctx, crudClient) |
| 296 | return err == nil |
| 297 | } |
| 298 | |
| 299 | // Version returns the current operator version |
| 300 | func Version(namespace, podName string) (string, error) { |
nothing calls this directly
no test coverage detected