(operatorVersion string, clientVersion string)
| 40 | ) |
| 41 | |
| 42 | func ErrorAPIVersionMismatch(operatorVersion string, clientVersion string) error { |
| 43 | return errors.WithStack(&errors.Error{ |
| 44 | Kind: ErrAPIVersionMismatch, |
| 45 | Message: fmt.Sprintf("your CLI version (%s) doesn't match your Cortex operator version (%s); please update your cluster by following the instructions at https://docs.cortex.dev, or update your CLI (pip install cortex==%s)", clientVersion, operatorVersion, operatorVersion), |
| 46 | }) |
| 47 | } |
| 48 | |
| 49 | func ErrorHeaderMissing(header string) error { |
| 50 | return errors.WithStack(&errors.Error{ |
no test coverage detected