docs icon indicating copy to clipboard operation
docs copied to clipboard

Error Encountered When Using 'kn quickstart minikube' Command with Knative cli

Open AugustasV opened this issue 2 years ago • 8 comments

Expected Behavior

The quickstart command is expected to work as described in the Knative documentation.

Actual Behavior

When running the docker command mentioned in the Knative documentation, an error is encountered. The error message indicates that the quickstart command is unknown for the kn tool.

Steps to Reproduce the Problem

  1. Run the following command:
    docker run --rm -v "$HOME/.kube/config:/root/.kube/config" gcr.io/knative-releases/knative.dev/client/cmd/kn:latest quickstart minikube
    
  2. Observe the error message: "Error: unknown command 'quickstart' for 'kn'."

Additional Info

Additional context Knative Quickstart Installation.

Install information:

  • Platform (GKE, IKS, AKS, etc.): Local/Minikube
  • Knative Version: v1.11.1

AugustasV avatar Oct 19 '23 13:10 AugustasV

@AugustasV did you install the quickstart plugin? Quickstart is a separate dependency which must also be added, on top of the core kn tool

Cali0707 avatar Oct 19 '23 18:10 Cali0707

/triage needs-user-input

Cali0707 avatar Oct 19 '23 18:10 Cali0707

Yes now I see... but still to add as a plugin somehow didn't worked as expected on my system. I used kn-quickstart minikube Why those packages can't be installed with go in simple way something like go install https://github.com/knative@latest ?

But Yes my fault, didn't noticed.

AugustasV avatar Oct 19 '23 20:10 AugustasV

cc @dsimansk @rhuss

Any ideas about the above question?

Cali0707 avatar Oct 20 '23 13:10 Cali0707

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Jan 19 '24 01:01 github-actions[bot]

/remove-lifecycle stale

Sorry, I'm not deep in the quickstart plugin and so I'm not of great help. @psschwei , maybe you have an idea ?

rhuss avatar Jan 22 '24 08:01 rhuss

The preferred ways to install have historically been through either brew or downloading the binary from the Github releases page. Using go get/install wasn't really considered when we first came up with the idea of the quickstart plugin.

As to why go install knative.dev/kn-plugin-quickstart doesn't work, here's what happens when trying to run that command:

$ go install knative.dev/kn-plugin-quickstart@latest
go: downloading knative.dev/kn-plugin-quickstart v0.39.1
go: knative.dev/kn-plugin-quickstart@latest: module knative.dev/kn-plugin-quickstart@latest found (v0.39.1), but does not contain package knative.dev/kn-plugin-quickstart

If someone wanted to submit a PR to get go install working, I'd be happy to help get it merged, but it's not something I personally have the bandwidth these days to tackle.

psschwei avatar Jan 23 '24 00:01 psschwei

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Apr 22 '24 01:04 github-actions[bot]