Comments (6)
I tried to add update hook.
https://github.com/maver1ck/helm-diff
Result:
maverick@CARBON:~$ helm plugin install https://github.com/maver1ck/helm-diff/
Downloading https://github.com/databus23/helm-diff/releases/download/v2.9.0%2B2/helm-diff-linux.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 609 0 609 0 0 412 0 --:--:-- 0:00:01 --:--:-- 412
100 4776k 100 4776k 0 0 425k 0 0:00:11 0:00:11 --:--:-- 653k
Preparing to install into /home/maverick/.helm/plugins/helm-diff
helm-diff installed into /home/maverick/.helm/plugins/helm-diff/helm-diff
***
maverick@CARBON:~$ helm plugin update diff --debug
[debug] loading installed plugins from /home/maverick/.helm/plugins
Error: Failed to update plugin diff, got error (plugin does not exist)
Also output from strace
[pid 2227] newfstatat(AT_FDCWD, "/home/maverick/.helm/plugins/helm-diff.git", 0xc4209cc788, 0) = -1 ENOENT (No such file or directory)
[pid 2227] write(2, "Error: Failed to update plugin d"..., 71Error: Failed to update plugin diff, got error (plugin does not exist)
from helm-diff.
OK.
Found the reason of this problem.
PR is ready.
from helm-diff.
@maver1ck Looks like it tries to stat
the wrong path. In your strace snippet it says /home/maverick/.helm/plugins/helm-diff.git
while the actual location seems to be the folder /home/maverick/.helm/plugins/helm-diff
.
Looking at the relevant code sections, it seems that install does path.Dir(i.Path())
, while update does i.Path()
.
But I could not easily determine what goes wrong -- maybe it helps to look at the script used by a different plugin (that is used in its plugin update hook): https://github.com/nouney/helm-gcs/blob/master/scripts/install.sh
from helm-diff.
Ohh, good to hear :D I think when I opened the file in your branch you already fixed it so I never saw the erroneous "helm" :)
from helm-diff.
I was installing from github/maver1ck/helm-diff and should from helm-diff.git.
I added bug report to helm helm/helm#4240 (I think this is kind of bug)
from helm-diff.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from helm-diff.
Related Issues (20)
- Error: plugin "diff" exited with error HOT 2
- Add support for --set-json as a flag
- Add --labels support
- New release HOT 5
- helm 3.10.0 helm diff --insecure-skip-tls-verify Error: unknown flag: --insecure-skip-tls-verify HOT 9
- After downloading the .tgz release files, helm plugin install is failing HOT 1
- Show helm diff secrets base64 decoded
- detect/report drift: compare desired with actual state HOT 6
- Create a new release using Go version 1.21.5 to fix Go-related vulnerability HOT 3
- Is there a way to ignore line-endings as changes?
- CVE-2023-24538 Critical vulnerability using github.com/containerd/containerd 1.7.0 HOT 2
- `diff uninstall` command HOT 6
- CVE-2023-45287 HIGH vulnerability looking forward to a new release version . HOT 2
- HELM_DIFF_IGNORE_UNKNOWN_FLAGS doesn't ignore --atomic HOT 3
- `--color` flag doesn't work anymore HOT 3
- HELM_DIFF_IGNORE_UNKNOWN_FLAGS seems to be ignored in v3.9.2 HOT 3
- Seems diff does not support helm envs HOT 1
- default `vaules.yaml` should be specified HOT 1
- Support the `--reset-then-reuse-values` flag from helm 3.14+ HOT 1
- normalize-manifests flag does not work HOT 11
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 helm-diff.