Skip to content

Commit 50e39ac

Browse files
committed
updated templateArgs
1 parent f4fe9bb commit 50e39ac

File tree

1 file changed

+9
-13
lines changed
  • pkg/cliplugins/workload/plugin

1 file changed

+9
-13
lines changed

pkg/cliplugins/workload/plugin/sync.go

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,6 @@ type templateInput struct {
569569
// required to deploy the syncer.
570570
type templateArgs struct {
571571
templateInput
572-
// LabelSafeLogicalCluster is the qualified kcp logical cluster name that is
573-
// safe to appear as a label value
574-
LabelSafeLogicalCluster string
575572
// ServiceAccount is the name of the service account to create in the syncer
576573
// namespace on the pcluster.
577574
ServiceAccount string
@@ -606,16 +603,15 @@ type templateArgs struct {
606603
// of the namespace.
607604
func renderSyncerResources(input templateInput, syncerID string) ([]byte, error) {
608605
tmplArgs := templateArgs{
609-
templateInput: input,
610-
LabelSafeLogicalCluster: strings.ReplaceAll(input.LogicalCluster, ":", "_"),
611-
ServiceAccount: syncerID,
612-
ClusterRole: syncerID,
613-
ClusterRoleBinding: syncerID,
614-
GroupMappings: getGroupMappings(input.ResourcesToSync),
615-
Secret: syncerID,
616-
SecretConfigKey: SyncerSecretConfigKey,
617-
Deployment: syncerID,
618-
DeploymentApp: syncerID,
606+
templateInput: input,
607+
ServiceAccount: syncerID,
608+
ClusterRole: syncerID,
609+
ClusterRoleBinding: syncerID,
610+
GroupMappings: getGroupMappings(input.ResourcesToSync),
611+
Secret: syncerID,
612+
SecretConfigKey: SyncerSecretConfigKey,
613+
Deployment: syncerID,
614+
DeploymentApp: syncerID,
619615
}
620616

621617
syncerTemplate, err := embeddedResources.ReadFile("syncer.yaml")

0 commit comments

Comments
 (0)