-
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
Prepare pkg/ansible and pkg/helm for v1.0.0 release #1186
Comments
I'd like to understand more about this. What is considered a public API? how are is the API expected to be used? |
In Go, an identifier is public if it is exported (begins with a capital letter) and is in a package tree that doesn't contain an IMO, I would consider all public identifiers to be part of our public API (since that's what the There's some discussion about this starting here, where the consensus is that it is reasonable to expect consumers of operator-sdk not to use exported identifiers from packages in the At the very least, we should probably document what we consider our public API to be, but the more we diverge from what the In the case of
We primarily expect our APIs to be used by operator authors using the SDK to create and manage their projects. Many of our exported libraries are used by the scaffolded operators we create with We expect the ansible and helm APIs to be used after SDK users run |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Problem
We currently export most of the internals of the Ansible and Helm operators, which is technically unnecessary, since only the
ansible.Run()
andhelm.Run()
entrypoints and their flag parameters are used inoperator-sdk run
and in scaffolds created byoperator-sdk migrate
.Leaving
pkg/ansible
andpkg/helm
in their current states will make it difficult to support new features after we releasev1.0.0
and are constrained by the backwards-compatible guarantees of a major release.However we may want to expose more than just the
Run()
functions in hybrid operator use cases, so we need to discuss what else we should leave exported in our public API frompkg/ansible
andpkg/helm
./cc @shawn-hurley
The text was updated successfully, but these errors were encountered: