Skip to content

Commit

Permalink
better debug tokendata
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Nov 26, 2024
1 parent 4d5b700 commit 0a86b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions phase/install_controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (p *InstallControllers) After() error {
func (p *InstallControllers) Run() error {
for _, h := range p.hosts {
if p.IsWet() {
log.Infof("%s: generating token", p.leader)
log.Infof("%s: generate join token for %s", p.leader, h)
token, err := p.Config.Spec.K0s.GenerateToken(
p.leader,
"controller",
Expand All @@ -104,7 +104,7 @@ func (p *InstallControllers) Run() error {
if err != nil {
return err
}
log.Debugf("%s: token data: %+v", p.leader, tokenData)
log.Debugf("%s: token data for %s: %+v", p.leader, h, tokenData)
h.Metadata.K0sJoinTokenID = tokenData.ID
h.Metadata.K0sJoinTokenURL = tokenData.URL
} else {
Expand Down
2 changes: 1 addition & 1 deletion phase/install_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (p *InstallWorkers) Run() error {
h.Metadata.K0sJoinTokenID = td.ID
h.Metadata.K0sJoinTokenURL = td.URL

log.Debugf("%s: token data: %+v", h, td)
log.Debugf("%s: token data for %s: %+v", p.leader, h, td)
return nil
}, func() error {
h.Metadata.K0sJoinTokenID = "dry-run"
Expand Down

0 comments on commit 0a86b1f

Please sign in to comment.