weaveworks / launcher

Weave Cloud Launcher
Apache License 2.0
10 stars 13 forks source link

don't make the user execute a scary kubectl command to configure Deploy #88

Open rade opened 6 years ago

rade commented 6 years ago

Our agent install is now a nice and simple

curl -Ls https://get.dev.weave.works | sh -s -- --token=blah

but when a user attempts to configure Deploy we make them run the following abomination

kubectl apply -f "https://frontend.dev.weave.works/k8s/flux.yaml?t=blah&k8s-version=$(kubectl version | base64 | tr -d '\n')&flux-version=%5E1&git-label=flux-proud-wind-05&git-url=git%40github.com%3Aweaveworks%2Fservice-conf&git-path=k8s%2Fdev&git-branch=master"

Ideally the user wouldn't have to type anything, i.e. the Deploy agent would obtain its config from Weave Cloud automagically. But that's a fair bit of work. In the meantime we could at least shorten this to something like

curl -Ls https://get.dev.weave.works | sh -s -- --token=blah --git-label=... --git-url=... --git-path=... --git-branch=...