Skip to content

chore: remove unused SelectEphemeral and SelectByPurpose label selectors - #1918

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-unused-selectephemeral-and-selectbypu-e7d63f
Open

chore: remove unused SelectEphemeral and SelectByPurpose label selectors#1918
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-unused-selectephemeral-and-selectbypu-e7d63f

Conversation

@detail-app

@detail-app detail-app Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Remove the unused SelectEphemeral() and SelectByPurpose() helper functions
from framework/kubernetes/kubedef/labels.go. Both functions had zero
callers anywhere in the codebase (no production, no tests). Their only
historical consumer was orchestration/legacycontroller/ephemeral.go, which
was deleted in #1612 ("orchestration/server: remove controllers, unused.") -
for SelectByPurpose even that usage was already commented out.

The constants they referenced (K8sEnvEphemeral, K8sEnvPurpose) remain
living via MakeLabels, so no further cascading removals were needed.

History


Dead Code PRs can be configured here.

@detail-app
detail-app Bot requested a review from n-g August 20, 2026 02:49
@detail-app detail-app Bot assigned n-g Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant