Remove operator-sdk new|add api commands and ansible scaffolding.#3531
Conversation
| ## Operator test stage jobs ## | ||
|
|
||
| # Build and test ansible and test ansible using molecule | ||
| # TODO: Replace with the required scripts after ansible plugin PR is merged |
There was a problem hiding this comment.
Leaving install set up here, thought not necessary.
|
|
||
| popd | ||
| popd | ||
| # TODO: Include test script after ansible plugins PR is merged. No newline at end of file |
There was a problem hiding this comment.
We can remove the full file and target.
There was a problem hiding this comment.
but do not need to do it in this PR we can do in a follow-up. Let's save Travis cycles.
| - make test-e2e-ansible-molecule | ||
|
|
||
| # Test subcommands | ||
| - <<: *test |
There was a problem hiding this comment.
Shows that we can remove all: /operator-sdk/internal/scaffold/
Required check if has some part of code which will require it.
There was a problem hiding this comment.
Some of it is still used while scaffolding kustomize templates (eg: in generate/kustomize/manifests.go) and in add crd.
With the removal of add crd, Ill clean up internal/scaffold too.
camilamacedo86
left a comment
There was a problem hiding this comment.
/lgtm
You can remove it if pass in the CI and then we can do follow-ups with what can be missing here👍
| @@ -1,69 +0,0 @@ | |||
| #!/usr/bin/env bash | |||
There was a problem hiding this comment.
@fabianvf since you are modifying this file for the ansible-plugin, I assume @varshaprasad96 should leave this file untouched?
There was a problem hiding this comment.
they've been rewritten in the scaffold PR, this will just cause a conflict
There was a problem hiding this comment.
Ill add this, and comment the targets in Makefile where its called.
There was a problem hiding this comment.
e2e tests will fail if the scaffolding is removed. so we either need to block this PR on the plugin PR
Or have the plugin PR rebase and re-add these tests.
Either way is fine by me.
|
/hold Will make changes after #3488 gets merged. |
eef7771 to
7f1b536
Compare
7f1b536 to
04658a8
Compare
This commit does the following: 1. Remove operator-sdk new and operator-sdk add api in favour of ansible plugins. 2. Remove ansible scaffolding (ie) internal/scaffold/ansible. 3. Remove internal/flags/apiflags/flags.go and relevant tests which were used in the commands. 4. Update IsOperatorAnsible() to check only for new layouts. 5. Remove hack/tests/e2e-ansible-molecule.sh and rewrite hack/tests/e2e-ansible.sh (which will get updated after ansible plugins).
04658a8 to
f8f203c
Compare
|
New changes are detected. LGTM label has been removed. |
Description of the change:
Remove operator-sdk new|add api commands and ansible scaffolding.
This commit does the following:
operator-sdk newandoperator-sdk add apiin favour of ansible plugins.internal/scaffold/ansible.internal/flags/apiflags/flags.goand relevant tests which were used in the commands.IsOperatorAnsible()to check only for new layouts.Motivation for the change:
Remove support for legacy commands and layouts in Operator SDK 1.0
Things to-do in follow up PR:
operator-sdk add crdand relevant crd generator code/its tests which are not used.cmd/operator-sdk/main.goc/c @joelanford @jmrodri @camilamacedo86 @fabianvf
Summary of changes:
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs