metal

package
v0.0.0-...-2ac1687 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationKeyClusterName is the cluster name annotation key name
	AnnotationKeyClusterName = "cluster-name"
	// AnnotationKeyServiceName is the service name annotation key name
	AnnotationKeyServiceName = "service-name"
	// AnnotationKeyServiceNamespace is the service namespace annotation key name
	AnnotationKeyServiceNamespace = "service-namespace"
	// AnnotationKeyServiceUID is the service UID annotation key name
	AnnotationKeyServiceUID = "service-uid"
	// LabelKeyClusterName is the label key name used to identify the cluster name in Kubernetes labels
	LabelKeyClusterName = "kubernetes.io/cluster"
)
View Source
const (
	ProviderName = "metal"
)

Variables

View Source
var (
	MetalKubeconfigPath string
)

Functions

func AddExtraFlags

func AddExtraFlags(fs *pflag.FlagSet)

Types

type CloudConfig

type CloudConfig struct {
	ClusterName string `json:"clusterName"`
}

type CloudProviderConfig

type CloudProviderConfig struct {
	RestConfig *rest.Config
	Namespace  string
	// contains filtered or unexported fields
}

func LoadCloudProviderConfig

func LoadCloudProviderConfig(f io.Reader) (*CloudProviderConfig, error)

Jump to

Keyboard shortcuts

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