feat: allow know the project type by the config file#3330
feat: allow know the project type by the config file#3330camilamacedo86 merged 2 commits intooperator-framework:masterfrom camilamacedo86:run-local-for-new
Conversation
| } | ||
| return "" | ||
| } | ||
|
|
There was a problem hiding this comment.
move the implementation to the project util since is required/useful to check the project type.
asmacdo
left a comment
There was a problem hiding this comment.
Some of this logic could be DRYer, but while we support the legacy layouts, this is fine.
| } | ||
| return PluginKeyToOperatorType(cfg.Layout) == OperatorTypeAnsible | ||
| } | ||
| // todo(camilamacedo86): remove when the legacy layout is no longer supported |
There was a problem hiding this comment.
Will the roles dir no longer be in the new layout?
There was a problem hiding this comment.
The roles dir will be in the new layout, however, see:
- Follow up the same standard for all types shows very beneficial and increase the manutence ability
- We can init an Ansible/Helm project without scaffold an API which means that the roles dir would NOT exist.
| } | ||
| return PluginKeyToOperatorType(cfg.Layout) == OperatorTypeHelm | ||
| } | ||
| // todo(camilamacedo86): remove when the legacy layout is no longer supported |
There was a problem hiding this comment.
Will the charts dir no longer be in the new layout?
There was a problem hiding this comment.
ditto above. We can scaffold a project without any api.
|
@camilamacedo86 now that we have #3363 and #3371, is this PR still needed? |
|
Hi @joelanford, The changes to allow the project type helpers get the type based in the config file for the new layout still required. |
Co-authored-by: Eric Stroczynski <estroczy@redhat.com>
|
New changes are detected. LGTM label has been removed. |
…ork#3330) **Description of the change:** - Make ProjectTypes helpers looking for the type in the PROJECT file when it exists. **Motivation for the change:** - To allow the SDK CLI commands works properly for the new layout - Follow up the same standard for all types shows very beneficial and increase the manutence ability
Description of the change:
Motivation for the change: