MCPcopy Create free account

hub / github.com/deepinsight/mxnet-operator / functions

Functions146 in github.com/deepinsight/mxnet-operator

↓ 12 callersMethodKey
Key is an unique key for MxJob to store in maps
pkg/spec/mx_job.go:64
↓ 9 callersMethodGet
Get returns a MxJob
pkg/util/k8sutil/mxjobclient.go:33
↓ 9 callersMethodList
List returns a list of MxJobs
pkg/util/k8sutil/mxjobclient.go:39
↓ 9 callersMethodjobName
(index int32)
pkg/trainer/replicas.go:432
↓ 7 callersMethodDelete
Delete a MxJob
pkg/util/k8sutil/mxjobclient.go:36
↓ 7 callersMethodSetPhase
SetPhase set up mxnet job status phase
pkg/spec/mx_job.go:407
↓ 6 callersMethodappendCondition
(c MxJobCondition)
pkg/spec/mx_job.go:495
↓ 5 callersMethodupdateTPRStatus
updateTPRStatus updates the job status based on TraingingJob.status.
pkg/trainer/training.go:361
↓ 4 callersMethodCreate
()
pkg/trainer/replicas.go:33
↓ 4 callersMethodIdentity
Identity will return the locks Identity
pkg/util/k8sutil/election/resourcelock/interface.go:66
↓ 4 callersMethodLabels
Labels returns the labels for this replica set.
pkg/trainer/replicas.go:81
↓ 4 callersFunctionreadOutMxJob
(b []byte)
pkg/util/k8sutil/mxjobclient.go:165
↓ 3 callersMethodDescribe
Describe is used to convert details on current resource lock into a string
pkg/util/k8sutil/election/resourcelock/interface.go:70
↓ 3 callersFunctionGetClusterConfig
()
pkg/util/k8sutil/k8sutil.go:47
↓ 3 callersFunctioninitJob
(kubeCli kubernetes.Interface, mxJobClient k8sutil.MxJobClient, job *spec.MxJob, stopC <-chan struct{}, wg *sy
pkg/trainer/training.go:74
↓ 2 callersMethodCleanup
Cleanup cleans up user passed spec, e.g. defaulting, transforming fields. TODO: move this to admission controller
pkg/spec/mx_job.go:275
↓ 2 callersMethodCollectJob
CollectJob collects resources that matches job label, but does not belong to the job with given jobUID
pkg/garbagecollection/gc.go:47
↓ 2 callersMethodConfigureAccelerators
ConfigureAccelerators adds any accelerator specific configuration to the pods.
pkg/spec/mx_job.go:190
↓ 2 callersMethodCreate
Create a MxJob
pkg/util/k8sutil/mxjobclient.go:42
↓ 2 callersMethodCreate
Create attempts to create a LeaderElectionRecord
pkg/util/k8sutil/election/resourcelock/interface.go:57
↓ 2 callersMethodDelete
()
pkg/trainer/replicas.go:34
↓ 2 callersMethodGet
Get returns the LeaderElectionRecord
pkg/util/k8sutil/election/resourcelock/interface.go:54
↓ 2 callersMethodIsFailed
IsFailed return true if job status failed
pkg/spec/mx_job.go:399
↓ 2 callersFunctionNewMXReplicaSet
(clientSet kubernetes.Interface, mxReplicaSpec spec.MxReplicaSpec, job *TrainingJob)
pkg/trainer/replicas.go:44
↓ 2 callersMethodRecordEvent
RecordEvent is used to record events
pkg/util/k8sutil/election/resourcelock/interface.go:63
↓ 2 callersMethodSetDefaults
SetDefaults sets any unspecified values to defaults
pkg/spec/mx_job.go:247
↓ 2 callersMethodSetState
SetState for mxnet job status
pkg/spec/mx_job.go:427
↓ 2 callersMethodToSelector
ToSelector converts the labels to a selector matching the labels.
pkg/trainer/labels.go:12
↓ 2 callersMethodUpdate
Update will update and existing LeaderElectionRecord
pkg/util/k8sutil/election/resourcelock/interface.go:60
↓ 2 callersMethodcollectResources
(option metav1.ListOptions, runningSet map[types.UID]bool)
pkg/garbagecollection/gc.go:74
↓ 2 callersMethoddeleteResources
deleteResources deletes the replicas
pkg/trainer/training.go:128
↓ 2 callersFunctionisRetryableTerminationState
isRetryableTerminationState returns true if a container terminated in a state that we consider retryable.
pkg/trainer/training.go:205
↓ 2 callersMethodmaybeReportTransition
()
pkg/util/k8sutil/election/election.go:267
↓ 2 callersFunctionreplicaStatusFromPodList
replicaStatusFromPodList returns a status from a list of pods for a job.
pkg/trainer/replicas.go:297
↓ 2 callersMethodsend
TODO(jlewi): This is sending a clusterEvent to the channel. I think these are events coming from the cluster code and not k8s events.
pkg/trainer/training.go:341
↓ 2 callersMethodsetup
setup the training job.
pkg/trainer/training.go:256
↓ 2 callersMethodtryAcquireOrRenew
tryAcquireOrRenew tries to acquire a leader lease if it is not already acquired, else it tries to renew the lease if it has already been acquired. Ret
pkg/util/k8sutil/election/election.go:213
↓ 1 callersMethodClient
HttpClient returns the http client used.
pkg/util/k8sutil/mxjobclient.go:100
↓ 1 callersMethodCopy
Copy mxnet job status
pkg/spec/mx_job.go:385
↓ 1 callersMethodCreate
()
pkg/trainer/replicas.go:90
↓ 1 callersMethodDelete
Delete deletes the replicas
pkg/trainer/replicas.go:253
↓ 1 callersMethodError
()
pkg/util/retryutil/retry_util.go:12
↓ 1 callersMethodFullyCollect
FullyCollect collects resources that were created before, but does not belong to any current running clusters.
pkg/garbagecollection/gc.go:53
↓ 1 callersMethodGetStatus
TODO(jlewi): We can probably delete this. func replicaSetStatusToProto(r *MXReplicaSet, status *MXReplicaSetStatus) *tpb.MXReplicaSetStatus { p := &
pkg/trainer/training.go:157
↓ 1 callersMethodGetStatus
()
pkg/trainer/replicas.go:35
↓ 1 callersFunctionLabelsForJob
(jobName string)
pkg/util/k8sutil/k8sutil.go:84
↓ 1 callersFunctionNewLeaderElector
NewLeadereElector creates a LeaderElector from a LeaderElecitionConfig
pkg/util/k8sutil/election/election.go:73
↓ 1 callersMethodRun
()
pkg/controller/controller.go:80
↓ 1 callersMethodRun
Run starts the leader election loop
pkg/util/k8sutil/election/election.go:141
↓ 1 callersMethodSetReason
SetReason for mxnet job status
pkg/spec/mx_job.go:422
↓ 1 callersMethodUpdate
Update a MxJob.
pkg/util/k8sutil/mxjobclient.go:45
↓ 1 callersMethodValidate
Validate checks that the MxJobSpec is valid.
pkg/spec/mx_job.go:132
↓ 1 callersMethodWatch
Watch MxJobs.
pkg/util/k8sutil/mxjobclient.go:48
↓ 1 callersMethodacquire
acquire loops calling tryAcquireOrRenew and returns immediately when tryAcquireOrRenew succeeds.
pkg/util/k8sutil/election/election.go:175
↓ 1 callersMethodcollectDeployment
(option metav1.ListOptions, runningSet map[types.UID]bool)
pkg/garbagecollection/gc.go:133
↓ 1 callersMethodcollectPods
(option metav1.ListOptions, runningSet map[types.UID]bool)
pkg/garbagecollection/gc.go:86
↓ 1 callersMethodcollectServices
(option metav1.ListOptions, runningSet map[types.UID]bool)
pkg/garbagecollection/gc.go:110
↓ 1 callersMethodcreateCRD
()
pkg/controller/controller.go:232
↓ 1 callersMethodcreateDist
()
pkg/trainer/replicas.go:140
↓ 1 callersMethodcreateLocal
()
pkg/trainer/replicas.go:99
↓ 1 callersMethodcreateResources
createResources creates all the replicas
pkg/trainer/training.go:117
↓ 1 callersMethoddelete
TODO(jlewi): This delete function was copied from the etcd-operator. Need to figure out what the right thing to do is. Should we be calling deleteRepl
pkg/trainer/training.go:335
↓ 1 callersMethodfindAllMxJobs
()
pkg/controller/controller.go:169
↓ 1 callersMethodhandleMxJobEvent
(event *Event)
pkg/controller/controller.go:122
↓ 1 callersMethodinitResource
makeClusterConfig creates the Config object from a cluster initializing it with data from the controller. func (c *Controller) makeClusterConfig() clu
pkg/controller/controller.go:213
↓ 1 callersMethodisClustersCacheStale
(currentClusters []spec.MxJob)
pkg/controller/controller.go:361
↓ 1 callersFunctionlistMxJobsURI
(ns string)
pkg/util/k8sutil/mxjobclient.go:122
↓ 1 callersFunctionnewPanicTimer
(d time.Duration, msg string)
pkg/controller/util.go:57
↓ 1 callersFunctionperiodicFullGC
(kubecli kubernetes.Interface, mxJobClient k8sutil.MxJobClient, ns string, d time.Duration)
cmd/mx_operator/main.go:174
↓ 1 callersFunctionpollEvent
(decoder *json.Decoder)
pkg/controller/util.go:20
↓ 1 callersMethodrenew
renew loops calling tryAcquireOrRenew and returns immediately when tryAcquireOrRenew fails.
pkg/util/k8sutil/election/election.go:192
↓ 1 callersMethodreportFailedStatus
func isSpecEqual(s1, s2 spec.MxJobSpec) bool { // TODO(jlewi): Need to implement this function. return false //if s1.Size != s2.Size || s1.Paused !
pkg/trainer/training.go:489
↓ 1 callersFunctionrun
()
test/e2e/main.go:38
↓ 1 callersMethodrun
(stopC <-chan struct{})
pkg/trainer/training.go:379
↓ 1 callersFunctionscalingReason
(from, to int)
pkg/spec/mx_job.go:502
↓ 1 callersMethodstart
()
pkg/controller/util.go:64
↓ 1 callersMethodstop
stop stops the timer and resets the elapsed duration.
pkg/controller/util.go:71
↓ 1 callersMethodtriggerCreatePhase
triggerCreatePhase sets the phase to MxJobPhaseCreating additional resource creation happens in TrainingJob.run TODO(jlewi): Need to reconcile this fu
pkg/trainer/training.go:312
↓ 1 callersMethodwatch
watch creates a go routine, and watches the MX cluster kind resources from the given watch version. It emits events on the resources through the retur
pkg/controller/controller.go:290
MethodAppendRecoveringCondition
AppendRecoveringCondition for mxnet job status
pkg/spec/mx_job.go:444
MethodAppendRemovingDeadMember
AppendRemovingDeadMember for mxnet job status
pkg/spec/mx_job.go:465
MethodAppendScalingDownCondition
TODO(jlewi): Get rid of the append methods that we don't need AppendScalingDownCondition for mxnet job status
pkg/spec/mx_job.go:434
MethodAppendUpgradingCondition
AppendUpgradingCondition for mxnet job status
pkg/spec/mx_job.go:453
MethodAsOwner
AsOwner return owner reference
pkg/spec/mx_job.go:50
FunctionCRDName
CRDName return crd name
pkg/spec/mx_job.go:37
FunctionCascadeDeleteOptions
TODO(jlewi): CascadeDeletOptions are part of garbage collection policy. Do we want to use this? See https://kubernetes.io/docs/concepts/workloads/cont
pkg/util/k8sutil/k8sutil.go:95
MethodControl
Control set cs ControlPaused = false
pkg/spec/mx_job.go:417
MethodCreate
(ns string, j *spec.MxJob)
pkg/util/k8sutil/mxjobclient.go:126
MethodCreate
Create attempts to create a LeaderElectionRecord annotation
pkg/util/k8sutil/election/resourcelock/endpointslock.go:57
MethodCreate
(ns string, j *spec.MxJob)
pkg/util/k8sutil/fake/fake.go:25
MethodDelete
()
pkg/trainer/training.go:327
MethodDelete
(ns, name string)
pkg/util/k8sutil/mxjobclient.go:146
MethodDelete
(ns string, name string)
pkg/util/k8sutil/fake/fake.go:17
MethodDescribe
Describe is used to convert details on current resource lock into a string
pkg/util/k8sutil/election/resourcelock/endpointslock.go:96
MethodGet
(ns, name string)
pkg/util/k8sutil/mxjobclient.go:138
MethodGet
()
pkg/util/k8sutil/election/resourcelock/endpointslock.go:38
MethodGet
(ns string, name string)
pkg/util/k8sutil/fake/fake.go:13
MethodGetLeader
GetLeader returns the identity of the last observed leader or returns the empty string if no leader has yet been observed.
pkg/util/k8sutil/election/election.go:165
MethodGetStatus
Status returns the status of the replica set.
pkg/trainer/replicas.go:353
MethodIdentity
returns the Identity of the lock
pkg/util/k8sutil/election/resourcelock/endpointslock.go:101
next →1–100 of 146, ranked by callers