hubconfig

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

package hubconfig provides common functionalities for hub configuration.

Index

Constants

View Source
const (

	// Naming pattern of member cluster namespace in hub cluster, should be the same as envValue as defined in
	// https://github.com/Azure/fleet/blob/main/pkg/utils/common.go
	HubNamespaceNameFormat = "fleet-member-%s"
)

Variables

This section is empty.

Functions

func FetchMemberClusterNamespace

func FetchMemberClusterNamespace() (string, error)

FetchMemberClusterNamespace gets the assigned namespace for the member cluster in the hub.

func PrepareHubConfig

func PrepareHubConfig(tlsClientInsecure bool) (*rest.Config, error)

PrepareHubConfig return the config holding attributes for a Kubernetes client to request hub cluster. Called must make sure all required environment variables are well set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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