Documentation ¶
Index ¶
- Constants
- func NewCmdJoin(f cmdutil.Factory, cmdOut io.Writer, config util.AdminConfig) *cobra.Command
- func NewCmdUnjoin(f cmdutil.Factory, cmdOut, cmdErr io.Writer, config util.AdminConfig) *cobra.Command
- func NewKubeFedCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer, ...) *cobra.Command
- type ClusterGeneratorV1Beta1
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 ¶
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.
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 ¶
func (s ClusterGeneratorV1Beta1) ParamNames() []kubectl.GeneratorParam
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.
Click to show internal directories.
Click to hide internal directories.