Skip to content

protokube: drop unused flags, fields, and methods and cleanup#18293

Merged
k8s-ci-robot merged 4 commits into
kubernetes:masterfrom
hakman:master
May 9, 2026
Merged

protokube: drop unused flags, fields, and methods and cleanup#18293
k8s-ci-robot merged 4 commits into
kubernetes:masterfrom
hakman:master

Conversation

@hakman
Copy link
Copy Markdown
Member

@hakman hakman commented May 9, 2026

/cc @rifelpet

Assisted by Claude Opus

hakman added 4 commits May 9, 2026 12:18
Removes dead code that was unused, no behavior change:
- main.go: --remove-dns-names, --dns-update-interval, --zone,
  --dns-internal-suffix, --cluster-id (parsed, never read);
  also RootFS package var and KubeBoot.InternalDNSSuffix
- {GCE,OpenStack}CloudProvider: unused Project() method
- nodeup ProtokubeFlags: matching ClusterID, DNSInternalSuffix,
  Zone fields and their populators.
Convert struct fields that were only used for construction-time
validation/logging into local vars, and drop a redundant interface:
- AWS: drop zone, deviceMap; imdsClient becomes a local
- GCE: drop compute, project, zone, region, clusterName
  (only discovery and instanceName are read post-construction)
- OpenStack: drop storageZone
- DO: drop region, dropletID and the now-orphaned
  getMetadataRegion / getMetadataDropletID helpers and constants
- Azure: replace the local 4-method client interface with the
  concrete *gossipazure.Client; the interface served only as a
  compile-time assertion with no test mocks
The flag was always set true by nodeup and protokube already gated
the label-bootstrap call on k.Master. Remove the flag, the
ProtokubeFlags / KubeBoot fields, and the inner gate; rely on
k.Master alone.
The local TokenSource type just reimplemented what
golang.org/x/oauth2 already provides.
@k8s-ci-robot k8s-ci-robot requested a review from rifelpet May 9, 2026 10:28
@k8s-ci-robot k8s-ci-robot added area/nodeup area/provider/digitalocean Issues or PRs related to digitalocean provider size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 9, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 9, 2026

/retest

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet

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 May 9, 2026
@k8s-ci-robot k8s-ci-robot merged commit 069e9eb into kubernetes:master May 9, 2026
26 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. area/nodeup area/provider/digitalocean Issues or PRs related to digitalocean provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants