Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Copyright Contributors to the Open Cluster Management project
Index ¶
- func GenerateSelfManagedClusterName(ctx context.Context, inClusterConfig *rest.Config) (string, error)
- func GenerateServiceAccountKey(file string) error
- func GetComponentNamespace() string
- func GetExternalHost() (string, error)
- func GoContext(stopCh <-chan struct{}) context.Context
- func KubeconfigWriteToFile(filename string, clusterURL string, clusterTrustBundle []byte, ...) error
- func KubeconfigWroteToSecret(config *rest.Config, secretName, clusterURL string, ...) error
- func LoadServingSigner(signerPath string) (bool, error)
- func NewLoggingRecorder(componentName string) events.Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfManagedClusterName ¶
func GenerateSelfManagedClusterName(ctx context.Context, inClusterConfig *rest.Config) (string, error)
GenerateSelfManagedClusterName generates an ID for the self management cluster. If the worker manager addon is enabled, this ID will be same with `id.k8s.io` cluster claim. We get ID by the sequence of: openshiftID, uid of kube-system namespace, random UID.
func GetComponentNamespace ¶
func GetComponentNamespace() string
func GetExternalHost ¶
GetExternalHost get the generated external IP from service
func KubeconfigWriteToFile ¶
func KubeconfigWriteToFile(filename string, clusterURL string, clusterTrustBundle []byte, clientCertPEM []byte, clientKeyPEM []byte) error
KubeConfigWithClientCerts creates a kubeconfig authenticating with client cert/key and write it to `path`
func KubeconfigWroteToSecret ¶
func KubeconfigWroteToSecret(config *rest.Config, secretName, clusterURL string, clusterTrustBundle, clientCertPEM, clientKeyPEM []byte) error
KubeConfigWithClientCerts creates a kubeconfig authenticating with client cert/key and write it to secret "kubeconfig"
func LoadServingSigner ¶
func NewLoggingRecorder ¶
Types ¶
This section is empty.