Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

mhrivnak
Copy link
Member

@mhrivnak mhrivnak commented Dec 6, 2018

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.

@mhrivnak mhrivnak added kind/feature Categorizes issue or PR as related to a new feature. language/ansible Issue is related to an Ansible operator project labels Dec 6, 2018
@mhrivnak mhrivnak requested a review from shawn-hurley December 6, 2018 22:56
@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 6, 2018
@mhrivnak
Copy link
Member Author

mhrivnak commented Dec 6, 2018

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 main.go that we're ready to start recommending that people use this.

@mhrivnak mhrivnak force-pushed the source branch 2 times, most recently from 973babc to fe8fc7f Compare December 18, 2018 15:24
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 19, 2018
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 4, 2019
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
Copy link
Contributor

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.

Copy link
Contributor

@dymurray dymurray left a 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
Copy link
Contributor

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.

@mhrivnak
Copy link
Member Author

mhrivnak commented Jan 7, 2019

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 run command to the operator-sdk binary.

The migrate behavior will be the same as in this PR.

typo fix

Co-Authored-By: mhrivnak <mhrivnak@hrivnak.org>
@mhrivnak
Copy link
Member Author

mhrivnak commented Jan 8, 2019

Here's the new PR that obsoletes this one: #887

@mhrivnak mhrivnak closed this Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. language/ansible Issue is related to an Ansible operator project size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants