Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update manifests and developer documentation
* Update manifests to use a DaemonSet with appropriate Tolerations * Add a shell script to generate the manifest * Update developer documentation on the use Dep
- Loading branch information
Showing
7 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
#!/bin/bash | ||
|
||
go get -u golang.org/x/tools/cmd/goimports | ||
go get github.com/Masterminds/glide | ||
go get github.com/sgotti/glide-vc | ||
go get github.com/onsi/ginkgo/ginkgo | ||
go install github.com/onsi/ginkgo/ginkgo | ||
go get -u github.com/jteeuwen/go-bindata/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -o pipefail -o noclobber -o nounset | ||
|
||
die() { echo "$*" 1>&2; exit 1; } | ||
|
||
[ "$#" -eq 2 ] || die "First argument must be a Linode APIv4 Personal Access Token with all permissions. | ||
(https://cloud.linode.com/profile/tokens) | ||
Second argument must be a Linode region. | ||
(https://api.linode.com/v4/regions) | ||
Example: | ||
$ ./generate-manifest.sh \$LINODE_API_TOKEN us-east" | ||
|
||
ENCODED_TOKEN=$(echo -n $1 | base64) | ||
ENCODED_REGION=$(echo -n $2 | base64) | ||
|
||
cat ccm-linode-template.yaml | | ||
sed -e "s|{{ .Values.apiTokenB64 }}|$ENCODED_TOKEN|" | | ||
sed -e "s|{{ .Values.linodeRegionB64 }}|$ENCODED_REGION|" > ccm-linode.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
kubectl delete deployment -l app=ccm-linode -n kube-system | ||
kubectl delete service -l app=ccm-linode -n kube-system | ||
kubectl delete serviceaccount -l app=ccm-linode -n kube-system | ||
kubectl delete clusterrolebindings -l app=ccm-linode -n kube-system | ||
kubectl delete clusterrole -l app=ccm-linode -n kube-system | ||
kubectl delete secret ccm-linode -n kube-system | ||
kubectl delete serviceaccount ccm-linode -n kube-system | ||
kubectl delete clusterrolebinding system:ccm-linode -n kube-system | ||
kubectl delete daemonset ccm-linode -n kube-system |