Skip to content

feat: expose more SSA options in the upgrade-k8s command#12560

Merged
talos-bot merged 1 commit intosiderolabs:mainfrom
Orzelius:more-ssa-opts
Jan 12, 2026
Merged

feat: expose more SSA options in the upgrade-k8s command#12560
talos-bot merged 1 commit intosiderolabs:mainfrom
Orzelius:more-ssa-opts

Conversation

@Orzelius
Copy link
Copy Markdown
Member

@Orzelius Orzelius commented Jan 8, 2026

add the following flags to the upgrade-k8s command:

  • --force-conflicts overwrite the fields when applying even if the field manager differs
  • --inventory-policy string kubernetes SSA inventory policy (one of 'MustMatch', 'AdoptIfNoInventory' or 'AdoptAll') (default "AdoptIfNoInventory")
  • --no-prune whether pruning of previously applied objects should happen after apply
  • --prune-timeout int how long to wait for resources to be pruned in secunds (set to zero to disable waiting for resources to be fully deleted) (default 180)
  • --reconcile-timeout int how long to wait for resources to be prfully reconciled in secunds (set to zero to disable waiting for resources to be fully reoondiled) (default 180)

This should be merged once siderolabs/go-kubernetes#39 is merged and released
closes #12495

@github-project-automation github-project-automation Bot moved this to To Do in Planning Jan 8, 2026
@talos-bot talos-bot moved this from To Do to In Review in Planning Jan 8, 2026

// UpgradeOptions represents Kubernetes control plane upgrade settings.
type UpgradeOptions struct {
manifests.SSApplyBehaviorOptions
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let me know if embedding the fields here is a bad idea

Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
Comment thread go.sum Outdated
@smira
Copy link
Copy Markdown
Member

smira commented Jan 8, 2026

add the following flags to the upgrade-k8s command:

  • --proxy-image string kube-proxy image to use (default "registry.k8s.io/kube-proxy")

This has been there before.

@Orzelius
Copy link
Copy Markdown
Member Author

Orzelius commented Jan 9, 2026

add the following flags to the upgrade-k8s command:

  • --proxy-image string kube-proxy image to use (default "registry.k8s.io/kube-proxy")

This has been there before.

oops, accidentally copied it with the other flags

Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
// manifest sync related options
upgradeK8sCmd.Flags().BoolVar(&upgradeOptions.ForceConflicts, "mamifests-force-conflicts", ssaDefaults.ForceConflicts, "overwrite the fields when applying even if the field manager differs")
upgradeK8sCmd.Flags().BoolVar(&upgradeOptions.NoPrune, "mamifests-no-prune", ssaDefaults.NoPrune, "whether pruning of previously applied objects should happen after apply")
upgradeK8sCmd.Flags().StringVar(&upgradeK8sCmdFlags.inventoryPolicy, "mamifests-inventory-policy", ssaDefaults.InventoryPolicy.String(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mamifests 🤣

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
@Orzelius Orzelius force-pushed the more-ssa-opts branch 3 times, most recently from c485627 to 75fb105 Compare January 12, 2026 09:04
@Orzelius Orzelius requested a review from smira January 12, 2026 09:43
Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
Comment thread cmd/talosctl/cmd/talos/upgrade-k8s.go Outdated
Comment thread pkg/cluster/kubernetes/talos_managed.go Outdated
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning Jan 12, 2026
add the following flags to the upgrade-k8s command:
* `--force-conflicts`            overwrite the fields when applying even if the field manager differs
* `--inventory-policy` string    kubernetes SSA inventory policy (one of 'MustMatch', 'AdoptIfNoInventory' or 'AdoptAll') (default "AdoptIfNoInventory")
* `--no-prune`                   whether pruning of previously applied objects should happen after apply
* `--prune-timeout` int          how long to wait for resources to be pruned in secunds (set to zero to disable waiting for resources to be fully deleted) (default 180)
* `--reconcile-timeout` int      how long to wait for resources to be prfully reconciled in secunds (set to zero to disable waiting for resources to be fully reoondiled) (default 180)

Signed-off-by: Orzelius <33936483+Orzelius@users.noreply.github.com>
@Orzelius
Copy link
Copy Markdown
Member Author

/m

@talos-bot talos-bot merged commit c839b38 into siderolabs:main Jan 12, 2026
58 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Planning Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

SSA: support --force-conflicts option

4 participants