Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix: properly set TaskStatus namespace in the initial call
Browse files Browse the repository at this point in the history
Namespace should be the name of the cluster, not `default`.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Jan 29, 2022
1 parent 4545464 commit 4451a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/runtime/theila/controllers/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (t *upgradeTask) start(ctx context.Context, task *resources.UpgradeK8sTask,
return err
}

if err := r.Modify(ctx, resources.NewTaskStatus(Namespace, id), func(res resource.Resource) error {
if err := r.Modify(ctx, resources.NewTaskStatus(namespace, id), func(res resource.Resource) error {
res.(*resources.TaskStatus).SetVersions(upgradeOptions.FromVersion, upgradeOptions.ToVersion)
res.(*resources.TaskStatus).SetPhase(rpc.TaskStatusSpec_RUNNING)

Expand Down

0 comments on commit 4451a5b

Please sign in to comment.