Documentation ¶
Index ¶
- func ClusterClientset(config *rest.Config) (*client.Clientset, error)
- func ClusterRegistryClientset(config *rest.Config) (*crclient.Clientset, error)
- func ClusterRoleName(serviceAccountName string) string
- func ClusterServiceAccountName(joiningClusterName, hostClusterName string) string
- func FedClientset(config *rest.Config) (*fedclient.Clientset, error)
- func HostClientset(config *rest.Config) (*client.Clientset, error)
- type FedConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterClientset ¶
ClusterClientset provides a kubernetes API compliant clientset to communicate with the joining cluster's kubernetes API server.
func ClusterRegistryClientset ¶
ClusterRegistryClientset provides a cluster registry API compliant clientset to communicate with the cluster registry.
func ClusterRoleName ¶
ClusterRoleName returns the name of a ClusterRole and its associated ClusterRoleBinding that are used to allow the service account to access necessary resources on the cluster.
func ClusterServiceAccountName ¶
ClusterServiceAccountName returns the name of a service account whose credentials are used by the host cluster to access the client cluster.
func FedClientset ¶
FedClientset provides a federation API compliant clientset to communicate with the federation API server.
Types ¶
type FedConfig ¶
type FedConfig interface { HostConfig(context, kubeconfigPath string) (*rest.Config, error) ClusterConfig(context, kubeconfigPath string) (*rest.Config, error) }
FedConfig provides a rest config based on the filesystem kubeconfig (via pathOptions) and context in order to talk to the host kubernetes cluster and the joining kubernetes cluster.
func NewFedConfig ¶
func NewFedConfig(pathOptions *clientcmd.PathOptions) FedConfig
NewFedConfig creates a fedConfig for `kubefed2` commands.