Skip to content

Commit

Permalink
Remove unused bootstrap-api-auth token usage
Browse files Browse the repository at this point in the history
It has been added as part of the initial Windows support,
but it seems it has never been in use. Supposedly this is a
remnant of an intermediary variant, and has been renamed to
bootstrap-api-worker-calls.

See: d2251a3 ("Implement different roles in the token/manager to distinguish api for controller nodes and api for worker nodes")
See: 55b5227 ("Apply lost in rebase commit for join token generation")
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Feb 6, 2024
1 parent 3a518d8 commit 29fba0c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/token/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ func RandomBootstrapSecret(role string, valid time.Duration) (*corev1.Secret, st
StringData: map[string]string{
"token-id": tokenID,
"token-secret": tokenSecret,

// This "usage-" is shared for all roles of the token which allows
// them to execute calls to the k0s API. This is done because we
// need to call the k0s API from windows workers during the join
// step.
"usage-bootstrap-api-auth": "true",
},
}

Expand Down

0 comments on commit 29fba0c

Please sign in to comment.