Closed tmshort closed 1 year ago
Based on #84
Also interested in a convo weighing pros/cons of separate subcommand vs different CLI based on envvar.
Part of my envvar motivation was that we would eventually flip the default to the OLMv1 CLI, in which case no one using it already would need to change their invocations.
Con of that, I suppose, is discoverability, which I was banking on relying on docs for.
Which is why I was originally thinking of an --api-version
option instead for install
/uniinstall
; but that gets complicated by all the OLMv0 options.
Alternatively, we could move OLMv0 to a branch, and move everything to OLMv1. Since that's the direction we're headed.
but that gets complicated by all the OLMv0 options.
Yeah exactly. I think we definitely want a separate CLI one way or the other.
Alternatively, we could move OLMv0 to a branch, and move everything to OLMv1.
We could but I don't think we should do that until OLMv1 GA. There are upstream projects using this with OLMv0 that we would break. (e.g.: https://cert-manager.io/docs/installation/operator-lifecycle-manager/#option-3-manual-install-via-kubectl-operator-plugin)
I think our approaches both do the correct things:
I suppose we could make a v1
branch for v1.y.z[-pre]
tags and essentially maintain main
for the time being as the v0 branch. That seems overly complicated to me though. And most importantly, it doesn't play well with the krew index which contains a pointer to a single version of the plugin.
IMO putting the OLMv1 stuff in the main branch is a good avenue for letting people know about OLMv1 progress, and maybe getting feedback.
ping @awgreene for review?
@joelanford @dtfranz is this good?
very nice! thank you!!
/approve
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: perdasilva, tmshort
Once this PR has been reviewed and has the lgtm label, please assign joelanford for approval by writing /assign @joelanford
in a comment. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
looks good to me too ^^ sorry I couldn't approve
looks good to me too ^^ sorry I couldn't approve
Thanks. @awgreen can likely merge, or @joelanford. The [Squash and merge] button is live for me... 🤔
We never directly talked about the envvar enablement mode like in my PR vs the separate subcommand in this one. I'm somewhat partial to the envvar approach but I'm also not going to stand in the way of progress if the consensus is the separate subcommand approach.
The ticket OLM-2869 had it as a an extra keyword as done in this PR.
Fixes #83
Implements Jira OLM-2863 and OLM-2869
Signed-off-by: Todd Short tshort@redhat.com