Skip to content

Commit

Permalink
cli/workload/sync: MaxSyncTargetNameLength decreased by SyncerIDPrefi…
Browse files Browse the repository at this point in the history
…x length

Signed-off-by: Robin Y Bobbitt <[email protected]>
  • Loading branch information
robinbobbitt committed Jul 14, 2022
1 parent d2998d7 commit b6314f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cliplugins/workload/plugin/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var embeddedResources embed.FS
const (
SyncerSecretConfigKey = "kubeconfig"
SyncerIDPrefix = "kcp-syncer-"
MaxSyncTargetNameLength = validation.DNS1123SubdomainMaxLength - 9 + len(SyncerIDPrefix)
MaxSyncTargetNameLength = validation.DNS1123SubdomainMaxLength - (9 + len(SyncerIDPrefix))
)

// Sync prepares a kcp workspace for use with a syncer and outputs the
Expand Down

0 comments on commit b6314f8

Please sign in to comment.