{"modulePath":"github.com/devfile/devworkspace-operator","version":"v0.1.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cluster\n\n## Constants\n\n```go\nconst (\n\tWatchNamespaceEnvVar = \"WATCH_NAMESPACE\"\n)\n```\n\n## Functions\n\n```go\nfunc CleanJob(client crclient.Client, name string, namespace string) error\n```\nCleanJob cleans up a job in a given namespace. If a job didn't exist then it will throw isNotFound error\n\n```go\nfunc DeletePod(client crclient.Client, namespace, name string) error\n```\nDeletePod removes all pods which match the specified selector\n\n```go\nfunc GetOperatorNamespace() (string, error)\n```\nGetOperatorNamespace returns the namespace the operator should be running in.\n\nThis function was ported over from Operator SDK 0.17.0 and modified.\n\n```go\nfunc GetPodsBySelector(client crclient.Client, namespace string, selector string) (*corev1.PodList, error)\n```\nGetPodsBySelector selects all pods by a selector in a namespace\n\n```go\nfunc GetWatchNamespace() (string, error)\n```\nGetWatchNamespace returns the namespace the operator should be watching for changes\n\nThis function was ported over from Operator SDK 0.17.0\n\n```go\nfunc IsOpenShift() (bool, error)\n```\n\n```go\nfunc IsWebhookConfigurationEnabled() (bool, error)\n```\nIsWebhookConfigurationEnabled returns true if both of mutating and validating webhook configurations are enabled\n\n```go\nfunc SyncJobToCluster(\n\tclient crclient.Client,\n\tctx context.Context,\n\tspecJob *batchv1.Job,\n) error\n```\n\n```go\nfunc WaitForJobCompletion(client crclient.Client, name string, namespace string, timeout time.Duration) error\n```\nWait for the job to complete. Times out if the job isn't complete after $(timeout) seconds\n\n","path":"github.com/devfile/devworkspace-operator/internal/cluster","name":"cluster","synopsis":"","isRedistributable":true}
