feat: Add support for enabling and disabling QA category to Move2Kube API #162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added feature requested in konveyor/move2kube#1155, konveyor/move2kube#1151 (comment)
Currently, Move2Kube API doesn't have support for
--qa-enable
and--qa-disable
flags, which are supported by Move2Kube CLI.Now, Move2Kube API will also support enabling/disabling QA category, similar to how the Move2Kube CLI allows for enabling/disabling the QA category using
--qa-disable
and--qa-enable
flags.Disabling QA category/categories
For example, to disable the questions from the
transformers
,network
andsourceanalyzer
categories-Move2Kube only asks the questions from the categories that are not disabled. So, in this case it directly ask the question from
imageregistry
category as thetransformers
,sourceanalyzer
andnetwork
categories are disabled.It can also be done using the
curl
command in multiple ways.Enabling QA category/categories
For example, to enable the questions only from the
cicd
category-Move2Kube transform straightaway skips all the questions that belong to the categories other than the enabled category (
cicd
in this case).This can also be done using the
curl
command.To enable this support, I have also updated the QA engine of Move2Kube- konveyor/move2kube#1156
Signed-off-by: Akash Nayak akash19nayak@gmail.com