Documentation ¶
Index ¶
- func ClusterClientset(config *rest.Config) (*kubeclient.Clientset, error)
- func ClusterRegistryClientset(config *rest.Config) (generic.Client, error)
- func ClusterServiceAccountName(joiningClusterName, hostClusterName string) string
- func HealthCheckRoleName(serviceAccountName, namespace string) string
- func HostClientset(config *rest.Config) (*kubeclient.Clientset, error)
- func RoleName(serviceAccountName string) string
- func WriteUnstructuredToYaml(unstructuredObj *unstructured.Unstructured, w io.Writer) error
- type FedConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterClientset ¶
func ClusterClientset(config *rest.Config) (*kubeclient.Clientset, error)
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 ClusterServiceAccountName ¶
ClusterServiceAccountName returns the name of a service account whose credentials are used by the host cluster to access the client cluster.
func HealthCheckRoleName ¶ added in v0.0.4
HealthCheckRoleName returns the name of a ClusterRole and its associated ClusterRoleBinding that is used to allow the service account to check the health of the cluster and list nodes.
func HostClientset ¶
func HostClientset(config *rest.Config) (*kubeclient.Clientset, error)
HostClientset provides a kubernetes API compliant clientset to communicate with the host cluster's kubernetes API server.
func RoleName ¶ added in v0.0.2
RoleName returns the name of a Role or ClusterRole and its associated RoleBinding or ClusterRoleBinding that are used to allow the service account to access necessary resources on the cluster.
func WriteUnstructuredToYaml ¶ added in v0.0.8
func WriteUnstructuredToYaml(unstructuredObj *unstructured.Unstructured, w io.Writer) error
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.