Skip to content

Refactor(defaults): centralize remove node defaults#13004

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
Srishti-j18:defaults-network-facts-remove-node
Feb 13, 2026
Merged

Refactor(defaults): centralize remove node defaults#13004
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
Srishti-j18:defaults-network-facts-remove-node

Conversation

@Srishti-j18
Copy link
Contributor

@Srishti-j18 Srishti-j18 commented Feb 13, 2026

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Moves inline defaults out of tasks and into role defaults for remove_node. This reduces repeated | default(...) usage and aligns with #11822.

Which issue(s) this PR fixes:

Special notes for your reviewer:
No functional behavior change intended.

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Feb 13, 2026
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 13, 2026
@k8s-ci-robot
Copy link
Contributor

Hi @Srishti-j18. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

--grace-period {{ drain_grace_period }}
--timeout {{ drain_timeout }}
--delete-emptydir-data {{ kube_override_hostname | default(inventory_hostname) }}
--delete-emptydir-data {{ kube_override_hostname }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is already defined here:

kube_override_hostname: "{{ inventory_hostname }}"

@Srishti-j18
Copy link
Contributor Author

/kind cleanup

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Feb 13, 2026
@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

Is that all of the unnecessary default usage left ? Otherwise let's not use the Fixes line to keep the issue open.
For network_facts, this should be handled in #12981 and the loadbalancer_apiserver should be fixed in #12897 . So let's drop those change for now

@Srishti-j18
Copy link
Contributor Author

No, this PR only addresses a small slice. Sorry, I’ve removed the Fixes #11822 line, so the issue stays open.
I’ll also drop the network_facts changes (since those are already tracked).

I’ll try to help with the remaining defaults in this PR only. Could you please take a look at this comment?
#11822 (comment)

@Srishti-j18 Srishti-j18 marked this pull request as draft February 13, 2026 13:07
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@Srishti-j18 Srishti-j18 changed the title Refactor(defaults): centralize network_facts/remove_node defaults Refactor(defaults): centralize defaults Feb 13, 2026
@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 13, 2026
@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

You just need to squash your commits and then we're good.

@Srishti-j18
Copy link
Contributor Author

Yeah, I know. I'm migrating roles/download in this PR. Give me some time.

@Srishti-j18 Srishti-j18 force-pushed the defaults-network-facts-remove-node branch from ddd3721 to d128a7a Compare February 13, 2026 14:04
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 13, 2026
@Srishti-j18 Srishti-j18 marked this pull request as ready for review February 13, 2026 14:05
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@Srishti-j18 Srishti-j18 changed the title Refactor(defaults): centralize defaults Refactor(defaults): centralize downloads and remove node defaults Feb 13, 2026
@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

I'm migrating roles/download in this PR

The download role is gonna substantially change in #12299 and #12937 ( as-in, full rewrite, in fact) ; I'd prefer not to touch it too much until this lands (which should in the coming month, there is not much left to do) since rebases can already take some time with large changes like this.

@Srishti-j18
Copy link
Contributor Author

Srishti-j18 commented Feb 13, 2026

🥲
Could you please tell me what dir I can touch? Or should I only solve the remove nodes ?

@Srishti-j18 Srishti-j18 changed the title Refactor(defaults): centralize downloads and remove node defaults Refactor(defaults): centralize remove node defaults Feb 13, 2026
@Srishti-j18 Srishti-j18 force-pushed the defaults-network-facts-remove-node branch 2 times, most recently from c847958 to edba352 Compare February 13, 2026 14:19
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 13, 2026
@Srishti-j18
Copy link
Contributor Author

Okay, I have removed all the other changes and only updated it for the remove node.

@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

It's generally easier to do such changes piece meal instead of one big PR, precisely for things like this. I don't have an exact list, but I think except download there isn't a big rewrite right now.

@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Srishti-j18, VannTen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2026
@Srishti-j18
Copy link
Contributor Author

@VannTen
Also, I think roles/network_plugin/calico can be covered in this PR: #12443.

@Srishti-j18
Copy link
Contributor Author

/retest-failed

@Srishti-j18
Copy link
Contributor Author

/retest

@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026

/retest-failed

@Srishti-j18 Srishti-j18 force-pushed the defaults-network-facts-remove-node branch from edba352 to 86162fa Compare February 13, 2026 20:45
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@Srishti-j18
Copy link
Contributor Author

I just rebased onto the master branch.

@VannTen
Copy link
Contributor

VannTen commented Feb 13, 2026 via email

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@k8s-ci-robot k8s-ci-robot merged commit e76eecc into kubernetes-sigs:master Feb 13, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants