-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds migrate command and ansible base image scaffolds #823
Conversation
I'll add docs for this, but want to vet the general approach first, and also ensure we are happy enough with the contents of |
973babc
to
fe8fc7f
Compare
The `operator-sdk migrate` command adds go source and other files necessary to convert an ansible operator to a hybrid operator. The scaffolds used for `migrate` are also made available for use in creating the ansible-operator base image through `commands/ansible-operator-base/main.go`.
exit 1 | ||
fi | ||
|
||
## TODO enable when this is fixed: https://github.com/operator-framework/operator-sdk/issues/818 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this can be added back. I've commented on the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I really like the approach you took with the scaffolding. It's really clean and the changes you made to the e2e tests make it much easier to follow. Great job!
kubectl logs deployment/${memcached_deployment} | ||
exit 1 | ||
fi | ||
deploy_operator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to wrapping all this in functions.
I am going to submit a new PR that takes a different approach to building the ansible operator binary itself. As discussed elsewhere, it will add a The |
typo fix Co-Authored-By: mhrivnak <mhrivnak@hrivnak.org>
Here's the new PR that obsoletes this one: #887 |
The
operator-sdk migrate
command adds go source and other files necessary toconvert an ansible operator to a hybrid operator.
The scaffolds used for
migrate
are also made available for use in creatingthe ansible-operator base image through
commands/ansible-operator-base/main.go
.