Skip to content

Commit

Permalink
Rename controller names to xxjob-controller
Browse files Browse the repository at this point in the history
- xgboostjob-operator -> xgboostjob-controller
- mxnet-operator -> mxjob-controller
- pytorchjob-operator -> pytorchjob-controller
- tfjob-operator -> tfjob-controller
  • Loading branch information
thunderboltsid committed Aug 26, 2021
1 parent 29b8996 commit 7fdfa19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/controller.v1/mxnet/mxjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import (
)

const (
controllerName = "mxnet-operator"
controllerName = "mxjob-controller"

// mxJobCreatedReason is added in a mxjob when it is created.
mxJobCreatedReason = "MXJobCreated"
Expand All @@ -73,7 +73,7 @@ const (

var (
jobOwnerKey = ".metadata.controller"
// DefaultMXControllerConfiguration is the suggested mxnet-operator configuration for production.
// DefaultMXControllerConfiguration is the suggested mxnetjob-controller configuration for production.
DefaultMXControllerConfiguration = common.JobControllerConfiguration{
ReconcilerSyncLoopPeriod: metav1.Duration{Duration: 15 * time.Second},
EnableGangScheduling: false,
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller.v1/pytorch/pytorchjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import (
)

const (
controllerName = "pytorchjob-operator"
controllerName = "pytorchjob-controller"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller.v1/tensorflow/tfjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
FailedDeleteJobReason = "FailedDeleteJob"
SuccessfulDeleteJobReason = "SuccessfulDeleteJob"

controllerName = "tfjob-operator"
controllerName = "tfjob-controller"

// labels for pods and servers.
tfReplicaTypeLabel = "replica-type"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller.v1/xgboost/xgboostjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import (
)

const (
controllerName = "xgboostjob-operator"
controllerName = "xgboostjob-controller"

// Reasons for job events.
FailedDeleteJobReason = "FailedDeleteJob"
Expand Down

0 comments on commit 7fdfa19

Please sign in to comment.