Skip to content

Commit

Permalink
Merge pull request #1527 from robinbobbitt/sync-target-length
Browse files Browse the repository at this point in the history
cli/workload/sync: MaxSyncTargetNameLength decreased by SyncerIDPrefix length
  • Loading branch information
openshift-ci[bot] authored Jul 14, 2022
2 parents 7de8978 + b6314f8 commit 648bcfd
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 648bcfd

Please sign in to comment.