kubefed

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceAccountNameAnnotation = "federation.kubernetes.io/servive-account-name"
	ClusterRoleNameAnnotation    = "federation.kubernetes.io/cluster-role-name"
)
View Source
const (
	CMNameSuffix = "controller-manager"
)

Variables

This section is empty.

Functions

func NewCmdJoin

func NewCmdJoin(f cmdutil.Factory, cmdOut io.Writer, config util.AdminConfig) *cobra.Command

NewCmdJoin defines the `join` command that joins a cluster to a federation.

func NewCmdUnjoin

func NewCmdUnjoin(f cmdutil.Factory, cmdOut, cmdErr io.Writer, config util.AdminConfig) *cobra.Command

NewCmdUnjoin defines the `unjoin` command that removes a cluster from a federation.

func NewKubeFedCommand

func NewKubeFedCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer, defaultServerImage, defaultEtcdImage string) *cobra.Command

NewKubeFedCommand creates the `kubefed` command and its nested children.

Types

type ClusterGeneratorV1Beta1

type ClusterGeneratorV1Beta1 struct {
	// Name of the cluster context (required)
	Name string
	// ClientCIDR is the CIDR range in which the Kubernetes APIServer
	// is available for the client (optional)
	ClientCIDR string
	// ServerAddress is the APIServer address of the Kubernetes cluster
	// that is being registered (required)
	ServerAddress string
	// SecretName is the name of the secret that stores the credentials
	// for the Kubernetes cluster that is being registered (optional)
	SecretName string
	// ServiceAccountName is the name of the service account that is
	// created in the cluster being registered. If this is provided,
	// then ClusterRoleName must also be provided (optional)
	ServiceAccountName string
	// ClusterRoleName is the name of the cluster role and cluster role
	// binding that are created in the cluster being registered. If this
	// is provided, then ServiceAccountName must also be provided
	// (optional)
	ClusterRoleName string
}

ClusterGeneratorV1Beta1 supports stable generation of a federation/cluster resource.

func (ClusterGeneratorV1Beta1) Generate

func (s ClusterGeneratorV1Beta1) Generate(genericParams map[string]interface{}) (runtime.Object, error)

Generate returns a cluster resource using the specified parameters.

func (ClusterGeneratorV1Beta1) ParamNames

ParamNames returns the set of supported input parameters when using the parameter injection generator pattern.

func (ClusterGeneratorV1Beta1) StructuredGenerate

func (s ClusterGeneratorV1Beta1) StructuredGenerate() (runtime.Object, error)

StructuredGenerate outputs a federation cluster resource object using the configured fields.

Directories

Path Synopsis
TODO(madhusdancs): 1.
TODO(madhusdancs): 1.

Jump to

Keyboard shortcuts

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