Create a jobSpec by modifying the provided podSpec
Create a k8s Job spec with affinity to jobs for the same goal set
Delete the provided job. Failures are ignored.
Delete the provided pods. Failures are ignored.
Checks if one of the provided values is configured in ATOMIST_GOAL_SCHEDULER or - for backwards compatibility reasons - ATOMIST_GOAL_LAUNCHER.
Kubernetes container spec environment variables that specify an SDM running in single-goal mode.
Unique name for goal to use in k8s job spec.
Unique name for job to use in k8s job spec.
Return the configured Kubernetes job time-to-live,
sdm.k8s.job.ttl
or, if that is not available, twice the value
returned by sdmGoalTimeout.
Return true for jobs that have exceeded the TTL or whose child is in the provided list of pods. Return false otherwise.
List Kubernetes jobs matching the provided label selector. Jobs
are listed across all namespaces if
configuration.sdm.k8s.job.singleNamespace
is not set to false
.
If that configuration value is not set or set to true
, jobs are
listed from the namespace provide by readNamespace.
array of Kubernetes jobs matching the label selector
List Kubernetes pods matching the provided label selector. Jobs are listed in a the current namespace or cluster-wide depending on evn configuration
Read the namespace from the following sources in order. It returns the first truthy value found.
service account files. Falls back to the default namespace if no other configuration can be found.
Rewrite the volume host path to include the workspace id to prevent cross workspace content ending up in the same directory.
Strip out any characters that aren't allowed a k8s label value
Return true for pods whose first container has terminated but at least one other container has not.
Generated using TypeDoc
Delete Kubernetes jobs created by this SDM that have either