Commit graph

10 commits

Author SHA1 Message Date
Andrew Lytvynov 8d7a217089 Run shellcheck during "make lint"
Shellcheck is a linter for shell scripts. Since we have quite a few of
those for release packaging and examples, we'll benefit from an extra
set of (robot) eyes.

Note: I disabled https://github.com/koalaman/shellcheck/wiki/Sc2086 to
make this PR smaller. That specific check is for the most frequent
mistake in our scripts - not quoting env var expansions. I'll do a
separate PR cleaning those up.

`build.assets/pkg` is no longer used and was removed.
2020-09-29 20:40:16 +00:00
Andrew Lytvynov de9f9b9ce9
Universal kubeconfig provisioning script (#4086)
This script is similar to `examples/gke-auth/get-kubeconfig.sh` but
should work for any k8s setup.

It uses a service account bearer token for authentication instead of TLS
key/cert. These tokens shouldn't expire and are more appropriate for
automation. It also fetches the CA cert from the service account secret,
which is more reliable than assuming a `kube-dns` pod exists in the
cluster.

In addition, this script sets up the needed k8s RBAC objects for
impersonation, saving the user a few extra steps.
2020-07-21 12:31:22 -07:00
Karl-Johan Grahn 39a720d47b
Add support for linux-musl (#3641) 2020-04-29 16:59:56 -03:00
Russell Jones 43eabd9989 Update get-kubeconfig.sh 2020-03-30 17:26:30 -07:00
Matthew Adams 304b1031d8 also make user configurable 2020-03-30 17:26:30 -07:00
Matthew Adams 208d8142b4 Make CN configurable 2020-03-30 17:26:30 -07:00
Gus Luxton 5564855b87
Fix kubeconfig generator script and tidy up odd mention of 'jenkins' (#2771) 2019-06-12 18:08:04 -03:00
Jessynt 387e7e283d fix: OSTYPE command not found (#2590) 2019-04-23 16:01:33 -07:00
Russell Jones 31d7d36bfe Make get-kubeconfig.sh cross platform. 2018-11-13 18:13:10 -08:00
Ev Kontsevoy 7f5e93cf87 Added an example script for retreiving a GKE certificate 2018-10-30 13:09:51 -07:00