Skip to content

chore(test): fix command to create generic-for-e2e vmclass#2393

Merged
diafour merged 4 commits into
mainfrom
chore/test/fix-generic-e2e-vmclass-creation-command
May 27, 2026
Merged

chore(test): fix command to create generic-for-e2e vmclass#2393
diafour merged 4 commits into
mainfrom
chore/test/fix-generic-e2e-vmclass-creation-command

Conversation

@diafour
Copy link
Copy Markdown
Member

@diafour diafour commented May 22, 2026

Description

Fix command suggestion in default vmclass precheck.

Why do we need it, and what problem does it solve?

Command was wrong.

What is the expected result?

Dev cluster admin can create copy of vmclass/generic and run e2e tests.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

@diafour diafour added this to the v1.9.0 milestone May 22, 2026
@diafour diafour requested a review from hardcoretime May 22, 2026 08:30
@diafour diafour self-assigned this May 22, 2026
@diafour diafour requested a review from Isteb4k as a code owner May 22, 2026 08:30
@hardcoretime hardcoretime force-pushed the chore/test/fix-generic-e2e-vmclass-creation-command branch from e4b4452 to 6fedba3 Compare May 27, 2026 10:27
diafour and others added 4 commits May 27, 2026 14:47
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>

++ split ifs

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
- rename defaultVMClassName to requiredVMClassName for clarity
- extract defaultClassAnnotation as constant to avoid duplication
- refactor loop to single pass through vmclasses
- extract getVMClassName helper function to package level
- add comments explaining variables purpose

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime force-pushed the chore/test/fix-generic-e2e-vmclass-creation-command branch from 874eb4c to 8f8a115 Compare May 27, 2026 12:31
@diafour diafour merged commit 528d4e8 into main May 27, 2026
29 of 30 checks passed
@diafour diafour deleted the chore/test/fix-generic-e2e-vmclass-creation-command branch May 27, 2026 13:49
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.

2 participants