Skip to content

Commit

Permalink
Add comment to ClusterConfig: nil
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed May 8, 2023
1 parent eba0aaa commit a757931
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cmd/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,15 @@ func (c *Command) Start(ctx context.Context) error {
componentManager.Add(ctx, &status.Status{
Prober: prober.DefaultProber,
StatusInformation: status.K0sStatus{
Pid: os.Getpid(),
Role: "worker",
Args: os.Args,
Version: build.Version,
Workloads: true,
SingleNode: false,
K0sVars: c.K0sVars,
Pid: os.Getpid(),
Role: "worker",
Args: os.Args,
Version: build.Version,
Workloads: true,
SingleNode: false,
K0sVars: c.K0sVars,
// worker does not have cluster config. this is only shown in "k0s status -o json".
// todo: if it's needed, a worker side config client can be set up and used to load the config
ClusterConfig: nil,
},
CertManager: certManager,
Expand Down

0 comments on commit a757931

Please sign in to comment.