Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
shipperctl: add support for external auth providers
Browse files Browse the repository at this point in the history
This allows it to work with, for example, GKE clusters with the 'gcp'
auth provider in ~/.kube/config.

Also tweak the quick install docs to mention that you need to be a real
cluster-admin. On GKE you need to create a clusterrolebinding first;
otherwise you see errors that indicate trying to create the new Shipper
clusterroles is privilege escalation.

This commit includes a giant pile of new stuff in vendor: this is
everything all of the cloud providers for their auth plugins.
  • Loading branch information
kanatohodets committed Dec 10, 2018
1 parent 5130255 commit 39422b3
Show file tree
Hide file tree
Showing 2,718 changed files with 554,807 additions and 1 deletion.
86 changes: 86 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ required = ["k8s.io/code-generator/cmd/client-gen"]
name = "github.com/spf13/pflag"
version = "1.0.3"

[[override]]
name = "github.com/Azure/go-autorest"
revision = "e14a70c556c8e0db173358d1a903dca345a8e75e"

[[constraint]]
version = "kubernetes-1.11.4"
name = "k8s.io/apiextensions-apiserver"
1 change: 1 addition & 0 deletions cmd/shipperctl/configurator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

Expand Down
7 changes: 6 additions & 1 deletion docs/start/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ The rest of this document assumes that you have access to a Kubernetes cluster
and admin privileges on it. If you don't have this, check out `microk8s
<https://microk8s.io/>`_ or `minikube
<https://github.com/kubernetes/minikube>`_. Cloud clusters like GKE are also
fine. Shipper requires Kubernetes 1.11 or later.
fine. Shipper requires Kubernetes 1.11 or later, and you'll need to be an admin
on the cluster you're working with. [#f1]_

Make sure that ``kubectl`` works and can connect to your cluster before
continuing.
Expand Down Expand Up @@ -104,3 +105,7 @@ Step 5: do a rollout!
*********************

Now we should have a working Shipper installation. :ref:`Let's roll something out! <user_rolling-out>`

.. rubric:: Footnotes

.. [#f1] For example, on GKE you need to `bind yourself to cluster-admin <https://stackoverflow.com/a/52972588>`_ before ``shipperctl`` will work.
15 changes: 15 additions & 0 deletions vendor/cloud.google.com/go/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 39422b3

Please sign in to comment.