authenticate

package module
v0.0.0-...-9b91450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL