Skip to content

cmds: scope scheme and setupLog inside NewCmdRun#78

Open
tamalsaha wants to merge 1 commit into
masterfrom
refactor/scope-cmds-vars
Open

cmds: scope scheme and setupLog inside NewCmdRun#78
tamalsaha wants to merge 1 commit into
masterfrom
refactor/scope-cmds-vars

Conversation

@tamalsaha

Copy link
Copy Markdown
Contributor

Summary

`scheme` and `setupLog` were package-level vars but were only used inside `NewCmdRun`. Move them inside the function; `AddToScheme` calls move from `init()` into the constructor so the package no longer has init-time side effects.

Test plan

  • `go build ./...`
  • Start the operator and confirm both API types are registered as before

scheme and setupLog were package-level vars but were only ever used by
NewCmdRun. Move them inside the function; AddToScheme calls move from
init() into the constructor so the package no longer has init-time
side effects.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha force-pushed the refactor/scope-cmds-vars branch from 34fcfcc to b90d56b Compare June 6, 2026 16:10
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