-
Notifications
You must be signed in to change notification settings - Fork 201
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
kie-issues#1586: [kn-plugin-workflow] Evaluate if we should install operator via cli #2874
base: main
Are you sure you want to change the base?
Conversation
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.
Very nice! So now, on our e2e we can install KIND, OLM, and run kn workflow operator install
? Then we perform a simple deployment.
"github.com/spf13/cobra" | ||
) | ||
|
||
func NewStatusOperatorCommand() *cobra.Command { |
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 think we can add the default sonataflow-operator-system
namespace here:
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.
good question, to install the operator from operatorhub into some namespace, we should have a namespace and OperatorGroup.
by default (minikube/kind), after we installed olm, where two Operator groups
NAMESPACE NAME AGE
olm olm-operators 7m46s
operators global-operators 7m46s
so to use sonataflow-operator-system
as a namespace for sonataflow operator, we should create a name and Operator group before installing the operator inseft.
I am going to implement it in the upcomming issue.
@ricardozanini tdyt ?
|
||
var kubeconfigInfoDisplayed = false | ||
|
||
func (m GoAPI) CanICreate(resourcePath string, namespace string) (bool, error) { |
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.
func (m GoAPI) CanICreate(resourcePath string, namespace string) (bool, error) { | |
func (m GoAPI) IsCreateAllowed(resourcePath string, namespace string) (bool, error) { |
return false, nil | ||
} | ||
|
||
func (m GoAPI) CanIDelete(name string, namespace string) error { |
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.
func (m GoAPI) CanIDelete(name string, namespace string) error { | |
func (m GoAPI) IsDeleteAllowed(name string, namespace string) error { |
closes: apache/incubator-kie-issues#1586
tests will be added after #2800 gets merged. (We need
kind
for e2e tests)