(crds []string, kind string, crs []T)
| 459 | } |
| 460 | |
| 461 | func checkConfigOrCRD[T metav1.Object](crds []string, kind string, crs []T) error { |
| 462 | if slices.Contains(crds, kind) && len(crs) != 0 { |
| 463 | return fmt.Errorf("%s already exists in --config, so please remove it, or remove %s from --enable-crd", kind, kind) |
| 464 | } |
| 465 | |
| 466 | return nil |
| 467 | } |
| 468 | |
| 469 | func waitForReady(ctx context.Context, clientset kubernetes.Interface) error { |
| 470 | logger := log.FromContext(ctx) |
no test coverage detected