federation

package
v0.0.0-...-7a4df5e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const UserAdmin = "admin"

Variables

This section is empty.

Functions

func EnsureCASecret

func EnsureCASecret(keystore fi.Keystore) (*pki.Certificate, *pki.PrivateKey, error)

Types

type ApplyFederationOperation

type ApplyFederationOperation struct {
	Federation *kopsapi.Federation
	KopsClient simple.Clientset
	// contains filtered or unexported fields
}

func (*ApplyFederationOperation) EnsureNamespace

func (o *ApplyFederationOperation) EnsureNamespace(c *fi.Context) error

func (*ApplyFederationOperation) FindKubecfg

func (*ApplyFederationOperation) Run

type AuthFile

type AuthFile struct {
	Lines []*AuthFileLine
}

func ParseAuthFile

func ParseAuthFile(data []byte) (*AuthFile, error)

func (*AuthFile) Add

func (a *AuthFile) Add(line *AuthFileLine) error

func (*AuthFile) Encode

func (a *AuthFile) Encode() string

func (*AuthFile) FindUser

func (a *AuthFile) FindUser(user string) *AuthFileLine

type AuthFileLine

type AuthFileLine struct {
	User   string
	Secret string
	Role   string
}

func ParseAuthFileLine

func ParseAuthFileLine(line string) (*AuthFileLine, error)

type FederationCluster

type FederationCluster struct {
	FederationNamespace string

	ControllerKubernetesClients []kubernetes.Interface
	FederationClient            federation_clientset.Interface

	ClusterSecretName string

	ClusterName       string
	ApiserverHostname string
}

func (*FederationCluster) Run

func (o *FederationCluster) Run(clientset simple.Clientset, cluster *kopsapi.Cluster) error

type FederationConfiguration

type FederationConfiguration struct {
	Namespace string

	ApiserverKeypair     *fitasks.Keypair
	ApiserverServiceName string
	ApiserverSecretName  string

	KubeconfigSecretName string
}

func (*FederationConfiguration) EnsureConfiguration

func (o *FederationConfiguration) EnsureConfiguration(c *fi.Context) error

Directories

Path Synopsis
targets

Jump to

Keyboard shortcuts

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