Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxPodsPerChunk is the maximum number of pods we can schedule for each // chunk in case of failures. MaxPodsPerChunk = 3 // DefaultUserImage is the image used for jobs when the user does not specify // an image. DefaultUserImage = "ubuntu:16.04" )
Variables ¶
Functions ¶
func GetExpectedNumWorkers ¶ added in v1.2.0
func GetExpectedNumWorkers(kubeClient *kube.Client, spec *ppsclient.ParallelismSpec) (uint64, error)
GetExpectedNumWorkers computes the expected number of workers that pachyderm will start given the ParallelismSpec 'spec'.
This is only exported for testing
func RepoNameToEnvString ¶
RepoNameToEnvString is a helper which uppercases a repo name for use in environment variable names.
Types ¶
type APIServer ¶
type APIServer interface { ppsclient.APIServer ppsserver.InternalPodAPIServer shard.Frontend shard.Server }
APIServer represents an api server.
func NewAPIServer ¶
func NewAPIServer( hasher *ppsserver.Hasher, address string, kubeClient *kube.Client, namespace string, jobShimImage string, jobImagePullPolicy string, reporter *metrics.Reporter, leasePeriodSecs string, heartbeatSecs string, maxHeartbeatRetries string, ) APIServer
NewAPIServer creates an APIServer.
Click to show internal directories.
Click to hide internal directories.