replicatedhq / unfork Goto Github PK
View Code? Open in Web Editor NEWKubectl plugin to find forked Helm Charts and other K8s resources and unfork them with Kustomize
Home Page: https://www.unfork.io
License: Apache License 2.0
Kubectl plugin to find forked Helm Charts and other K8s resources and unfork them with Kustomize
Home Page: https://www.unfork.io
License: Apache License 2.0
Unforking stable/mysql
results (for me) in a dir intent-lynx
. This feels to be a suboptimal naming scheme.
We should show the next steps after successfully unforking.
This are:
Your unforked Chart is available at ~/path/name
You can install the same version with:
kubectl apply -k ~/path/name/overlays/downstreams/unforked
You can update to the latest version of name with:
kots pull helm://name
$ k unfork
Building a local index of available Helm charts. This is needed to find the best upstream, and will only take a few seconds
getting version info for charts in repo weave-flux (https://weaveworks.github.io/flux/)failed to fetch charts in repo weave-flux, error was &errors.errorString{s:"Failed to fetch https://weaveworks.github.io/flux/index.yaml : 404 Not Found"}
getting version info for charts in repo zammad (https://zammad.github.io)found 878 total repos, and 16339 total versions
This line should be displayed, but it includes a newline, which causes undesirable Terminal UX
Hello,
I see a dependency on tiller. Wanted to have a confirmation if this is then targeted only for helm2 and not helm3
Helm will often add prefixes to the names of generated resources when applying to a cluster - resulting in names like jaunty-quail-redis-master
instead of just redis-master
. Unfork should handle this (with json patches to change names, if required) when it appears.
Today we return an error if the target directory already exists. We should prompt to overwrite it or create a new dir with a -n suffix
I saw this wonderful tool demonstrated at the Helm Summit last month and I had an opportunity to try using it today, when I noticed that my Bookstack wiki is down and segfaulting.
I don't know why, but I have a forked chart with some of my own changes in it, and I may have lost track of the original directory, so I was going to try upgrading first, and let Unfork help me sort out the changes that I made (that is what it's for).
I have replaced the mariadb dependency in my own version, possibly even removed it, because I am using a managed database provided by KubeDB, which is much better than the bitnami chart that was provided for example use. That could be what causes this error, I am assuming that this error is more narrow than I think it is, (and probably doesn't really affect every chart with a dependency in charts/
)
Is there some debugging output that I can provide that will help narrow down the cause of this error and what patch might be needed to accommodate this particular use case?
Here is the error I experienced:
panic: failed to render forked chart: failed to render chart: found in requirements.yaml, but missing in charts/ directory: mariadb
goroutine 1 [running]:
github.com/replicatedhq/unfork/cmd/unfork/cli.(*Home).handleEvent(0xc0000e2790, 0x0, 0xc000a74008, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/replicatedhq/unfork/cmd/unfork/cli/home.go:224 +0xeb8
github.com/replicatedhq/unfork/cmd/unfork/cli.(*UnforkUI).eventLoop(0xc007513cf0, 0x0, 0x0)
/go/src/github.com/replicatedhq/unfork/cmd/unfork/cli/root.go:162 +0x109
github.com/replicatedhq/unfork/cmd/unfork/cli.RootCmd.func2(0xc00045d400, 0x31f36b8, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/replicatedhq/unfork/cmd/unfork/cli/root.go:114 +0x4b5
github.com/spf13/cobra.(*Command).execute(0xc00045d400, 0xc00009e190, 0x0, 0x0, 0xc00045d400, 0xc00009e190)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:826 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xc00045d400, 0x2353460, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:914 +0x2fc
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:864
github.com/replicatedhq/unfork/cmd/unfork/cli.InitAndExecute()
/go/src/github.com/replicatedhq/unfork/cmd/unfork/cli/root.go:138 +0x2c
main.main()
/go/src/github.com/replicatedhq/unfork/cmd/unfork/main.go:9 +0x20
The steps I took were (first, confirm I can reach the cluster and helm tiller manually, then)
Have you seen this one before?
We shouldn't leave dirs with names like intent-lynx
or jaunty-quail
lying around in ~
- we should use something like ~/unfork
instead
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.