Skip to content

add tests for deployment template arg helpers - #228

Open
magic-peach wants to merge 1 commit into
projectsveltos:mainfrom
magic-peach:test/deployment-args-coverage
Open

magic-peach wants to merge 1 commit into
projectsveltos:mainfrom
magic-peach:test/deployment-args-coverage

Conversation

@magic-peach

Copy link
Copy Markdown

setOptions and appendArgsToContainer manipulate the generated deployment templates used to deploy addon-controller, classifier, event-manager and healthcheck-manager per shard, but had no test coverage at all. Same for addDriftDetectionConfig and addClassifierConfigs which wrap appendArgsToContainer for specific flags.

Covers replacing an existing agent-in-mgmt-cluster arg, idempotency when applied twice, only touching the matching container, skipping empty values, and no-op behavior when nothing needs to change.

Tested with go build, go vet, and the full envtest suite (37/37 passing).

setOptions and appendArgsToContainer manipulate the generated deployment
templates used to deploy addon-controller, classifier, event-manager and
healthcheck-manager per shard, but had no test coverage at all. Same for
addDriftDetectionConfig and addClassifierConfigs which wrap
appendArgsToContainer for specific flags.

Covers replacing an existing agent-in-mgmt-cluster arg, idempotency when
applied twice, only touching the matching container, skipping empty
values, and no-op behavior when nothing needs to change.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
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