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

kie-issues#1586: [kn-plugin-workflow] Evaluate if we should install operator via cli #2874

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

treblereel
Copy link
Contributor

closes: apache/incubator-kie-issues#1586

tests will be added after #2800 gets merged. (We need kind for e2e tests)

Copy link
Member

@ricardozanini ricardozanini left a 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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (m GoAPI) CanIDelete(name string, namespace string) error {
func (m GoAPI) IsDeleteAllowed(name string, namespace string) error {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[kn-plugin-workflow] Evaluate if we should install operator via cli
2 participants