@@ -569,9 +569,6 @@ type templateInput struct {
569
569
// required to deploy the syncer.
570
570
type templateArgs struct {
571
571
templateInput
572
- // LabelSafeLogicalCluster is the qualified kcp logical cluster name that is
573
- // safe to appear as a label value
574
- LabelSafeLogicalCluster string
575
572
// ServiceAccount is the name of the service account to create in the syncer
576
573
// namespace on the pcluster.
577
574
ServiceAccount string
@@ -606,16 +603,15 @@ type templateArgs struct {
606
603
// of the namespace.
607
604
func renderSyncerResources (input templateInput , syncerID string ) ([]byte , error ) {
608
605
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 ,
619
615
}
620
616
621
617
syncerTemplate , err := embeddedResources .ReadFile ("syncer.yaml" )
0 commit comments