Documentation ¶
Index ¶
Constants ¶
View Source
const DiagnosticKMS = config.DiagnosticKMS
Variables ¶
View Source
var ( // Exported so that it can be overridden in tests MaxRetry = 12 RetryInterval = 10 * time.Second )
View Source
var NewProvider = func(ctx context.Context, cfg *config.Settings, clientset ...kubernetes.Interface) diagnostic.Provider { var cs kubernetes.Interface if len(clientset) > 0 { cs = clientset[0] } else { config, err := rest.InClusterConfig() if err != nil { kubeconfig := clientcmd.RecommendedHomeFile config, err = clientcmd.BuildConfigFromFlags("", kubeconfig) if err != nil { panic(err.Error()) } } cs, err = kubernetes.NewForConfig(config) if err != nil { panic(err.Error()) } } return &checker{ cfg: cfg, logger: logging.NewLogger(). WithContext(ctx).WithField(logging.OpField, "ksm"), clientset: cs, } }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.