Skip to content

Commit

Permalink
Merge pull request #11 from mjudeikis/nit.fixes
Browse files Browse the repository at this point in the history
🌱  Change controller names
  • Loading branch information
mjudeikis authored Jul 28, 2023
2 parents 7a26b1a + 80303bc commit 56c6fb9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TMC is a multi-cluster management platform that allows you to manage multiple Ku
# Create SyncTarget for remote cluster
kubectl tmc workload sync cluster-1 --syncer-image ghcr.io/kcp-dev/kcp-dev/contrib-tmc/syncer:latest --output-file cluster-1.yaml
kubectl tmc workload sync cluster-1 --syncer-image ghcr.io/kcp-dev/contrib-tmc/syncer:main --output-file cluster-1.yaml
# Login into child cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
)

const (
ControllerName = "kcp-workload-apiexport"
ControllerName = "tmc-workload-apiexport"
)

// NewController returns a new controller instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
)

const (
ControllerName = "kcp-workload-default-location"
ControllerName = "tmc-workload-default-location"

DefaultLocationName = "default"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

const (
ControllerName = "kcp-workloads-replicate-clusterrole"
ControllerName = "tmc-workloads-replicate-clusterrole"
)

// NewController returns a new controller for labelling ClusterRole that should be replicated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

const (
ControllerName = "kcp-workloads-replicate-clusterrolebinding"
ControllerName = "tmc-workloads-replicate-clusterrolebinding"
)

// NewController returns a new controller for labelling ClusterRoleBinding that should be replicated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
)

const (
ControllerName = "kcp-workload-replicate-logicalcluster"
ControllerName = "tmc-workload-replicate-logicalcluster"
)

// NewController returns a new controller for labelling LogicalClusters that should be replicated.
Expand Down
2 changes: 1 addition & 1 deletion pkg/syncer/apiimporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func NewAPIImporter(
syncTargetName string,
syncTargetUID types.UID,
) (*APIImporter, error) {
agent := fmt.Sprintf("kcp-workload-api-importer-%s-%s", syncTargetPath, syncTargetName)
agent := fmt.Sprintf("tmc-workload-api-importer-%s-%s", syncTargetPath, syncTargetName)
upstreamConfig = rest.AddUserAgent(rest.CopyConfig(upstreamConfig), agent)
downstreamConfig = rest.AddUserAgent(rest.CopyConfig(downstreamConfig), agent)

Expand Down
2 changes: 1 addition & 1 deletion pkg/syncer/namespace/namespace_downstream_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
)

const (
controllerNameRoot = "kcp-workload-syncer-namespace"
controllerNameRoot = "tmc-workload-syncer-namespace"
downstreamControllerName = controllerNameRoot + "-downstream"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
)

const (
ControllerName = "kcp-virtual-syncer-api-reconciler-"
ControllerName = "tmc-virtual-syncer-api-reconciler-"
IndexSyncTargetsByExport = ControllerName + "ByExport"
IndexAPIExportsByAPIResourceSchema = ControllerName + "ByAPIResourceSchema"
)
Expand Down

0 comments on commit 56c6fb9

Please sign in to comment.