Skip to content

Commit

Permalink
fix: trim space for harvester-agent file
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Nov 1, 2023
1 parent 21597b2 commit 9111ce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ func initRancherdStage(config *HarvesterConfig, stage *yipSchema.Stage) error {
if err != nil {
return err
}

// remove space, so we don't get result like |2 or |4 in the yaml
rke2AgentConfig = strings.TrimSpace(rke2AgentConfig)
stage.Files = append(stage.Files,
yipSchema.File{
Path: "/etc/rancher/rke2/config.yaml.d/90-harvester-agent.yaml",
Expand Down

0 comments on commit 9111ce0

Please sign in to comment.