MCPcopy
hub / github.com/kubernetes-sigs/kwok / checkConfigOrCRD

Function checkConfigOrCRD

pkg/kwok/cmd/root.go:461–467  ·  view source on GitHub ↗
(crds []string, kind string, crs []T)

Source from the content-addressed store, hash-verified

459}
460
461func 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
469func waitForReady(ctx context.Context, clientset kubernetes.Interface) error {
470 logger := log.FromContext(ctx)

Callers 2

runEFunction · 0.85
startServerFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected