Documentation ¶
Overview ¶
package authenticate creates a clientset for Kubernetes authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromS3Bucket ¶
func FromS3Bucket(bucket, kubeconfig, ctx, region string) (clientset *kubernetes.Clientset, err error)
FromS3Bucket accepts two strings, a bucket and a configFile. The bucket string should contain the name of an S3 bucket that contains a kubeconfig file. The configFile string should contain the kubeconfig file name held within the bucket. Both of these values are defined by flags passed to main and default to an environment variable. The function returns a Kubernetes clientset and an error, if there is one. The clientset uses the current context value in the kubeconfig file, so this must be set beforehand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.