Comments (11)
could you show the commands you ran that failed where you think they should succeed? i believe we allow krew to run without a default index (although krew-index ships as the default so it would need to be removed after the fact with kubectl krew index remove default
)
from krew.
kubectl krew list
comes back with
krew local plugin index is not initialized (run kubectl krew update)
If you run this above then it works as designed but again requires the default plugin index.
If you remove the default index with kubectl krew index remove default
or by deleting the default folder in the krew install it comes back with
krew local plugin index is not initialized (run kubectl krew update)
The only work around I've found so far is to git init
in the empty default folder. Then kubectl krew list
returns what is installed without setting the index.
from krew.
I can repro it this way:
kubectl krew install tree whoami
kubectl krew index remove default --force
# no indexes exist at this point
kubectl krew list
# fails with error: krew local plugin index is not initialized (run "kubectl krew update")
# even though some plugins are installed
however if you just add a random index, it starts working again:
kubectl krew index add other https://github.com/ahmetb/krew-index.git
kubectl krew list
# (shows previously installed plugins)
I don't know why we have this pre-run check in list
command but it might be handling an edge case we forgot about at this point.
The part I don't understand is why would someone try to use krew without any indexes.
Can you clarify @CarlosEsco?
from krew.
@ahmetb We are in an air gapped cluster without git repo access internally or externally and have to side load plugins with the --manifest --archive options.
As for the pre-run check, i feel it should maybe warn, but continue at worst. Instead of completely failing, or requires an empty git repository.
from krew.
i feel like in that scenario you lose a lot of the benefits of krew since youre basically just manually installing binaries. i think you would only really have uninstall
and list
as the main usable functions and you can already do kubectl plugin list
to somewhat make up for kubectl krew list
(although it will only list what kubectl-*
binaries are on your path).
from krew.
Fwiw installing plugins with --manifest/--archive was only meant for development use (to plugin authors) and not quite for what you are doing. In your case, it might be wiser to just ship the binary and add to PATH instead of using Krew.
I agree though the check doesnโt do anything useful here and we can remove it.
from krew.
Agree with both your points, we just found it easier for users managing the cluster to be able to see what is installed for kubernetes and to use them as "native" extensions vs having the binaries themselves. We are also able to reuse the ansible plays pointing to the index for the non air gapped system.
from krew.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale
- Close this issue with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
from krew.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten
- Close this issue with
/close
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
from krew.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied - After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied - After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closed
You can:
- Reopen this issue with
/reopen
- Mark this issue as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
from krew.
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/stale
is applied- After 30d of inactivity since
lifecycle/stale
was applied,lifecycle/rotten
is applied- After 30d of inactivity since
lifecycle/rotten
was applied, the issue is closedYou can:
- Reopen this issue with
/reopen
- Mark this issue as fresh with
/remove-lifecycle rotten
- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
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.
from krew.
Related Issues (20)
- Error: Flag --kubeconfig is not supported HOT 3
- Please release a new version HOT 4
- I have been struggling to install the OIDC-LOGIN plugin. I get Access is denied HOT 5
- Alternative branching for custom indexes instead default branch HOT 5
- Found some vulnerabilities in CVE report, when will it be fixed HOT 4
- Proposal: Download Binary File and Download License via URI HOT 6
- Krew seems to not download all the bytes of distribution archive HOT 2
- $KREW_ROOT/store/<plugin>/* has wrong permissions, 0700 instead of 0755 HOT 16
- Remove Developer Mode / Admin requirement for Windows install by using junctions HOT 2
- stats.krew.dev is not updating HOT 2
- Allow installing without sha256 when using --manifest-url HOT 8
- Allow selecting all platforms HOT 6
- support uninstall with --manifest-url HOT 6
- Cross platfrom (Windows) install testing failing on Linux HOT 5
- Installing krew - failed to list indexes on Windows HOT 5
- krew fails to work if `defaultRemoteName` is assigned in ~/.gitconfig HOT 3
- Can we have krew plugin for x86 arch on prem ubuntu servers HOT 2
- It complains 0.4.4 is not supported anymore on maiden install HOT 8
- Can Krew be Installed as Super User (su)? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krew.