Documentation
¶
Index ¶
- Constants
- func AwsCAPIEtcdEndpoint(clusterID string, baseDomain string) string
- func AzureEtcdEndpoint(etcdDomain string) string
- func IsFailedBackup(err error) bool
- func IsInvalidConfig(err error) bool
- func IsUnableToGetTenantClusters(err error) bool
- func KVMEtcdEndpoint(etcdDomain string) string
- type Cluster
- type ETCDInstance
- type ETCDv2Settings
- type ETCDv3Settings
- type TLSClientConfig
- type Utils
Constants ¶
View Source
const (
EtcdLabelComponentKey = "component"
EtcdLabelComponentValue = "etcd"
EtcdLabelTierKey = "tier"
EtcdLabelTierValue = "control-plane"
)
View Source
const (
CAPI = "capi"
)
Variables ¶
This section is empty.
Functions ¶
func AwsCAPIEtcdEndpoint ¶
func AwsCAPIEtcdEndpoint(clusterID string, baseDomain string) string
func AzureEtcdEndpoint ¶
func AzureEtcdEndpoint(etcdDomain string) string
func IsInvalidConfig ¶
func IsInvalidConfig(err error) bool
IsInvalidConfig asserts invalidConfigError.
func IsUnableToGetTenantClusters ¶
func IsUnableToGetTenantClusters(err error) bool
IsUnableToGetTenantClusters asserts unableToGetTenantClustersError.
func KVMEtcdEndpoint ¶
func KVMEtcdEndpoint(etcdDomain string) string
Types ¶
type ETCDInstance ¶
type ETCDInstance struct {
Name string
ETCDv2 ETCDv2Settings
ETCDv3 ETCDv3Settings
}
type ETCDv2Settings ¶
type ETCDv2Settings struct {
DataDir string
}
func (ETCDv2Settings) AreComplete ¶
func (s ETCDv2Settings) AreComplete() bool
type ETCDv3Settings ¶
type ETCDv3Settings struct {
Endpoints string
Proxy *proxy.Proxy
TLSConfig *tls.Config
}
func (ETCDv3Settings) AreComplete ¶
func (s ETCDv3Settings) AreComplete() bool
type TLSClientConfig ¶
type TLSClientConfig struct {
CAData []byte
KeyData []byte
CrtData []byte
}
type Utils ¶
type Utils struct {
K8sClient k8sclient.Interface
// contains filtered or unexported fields
}
func NewUtils ¶
func NewUtils(logger micrologger.Logger, client k8sclient.Interface) (*Utils, error)
func (*Utils) GetTenantClusters ¶
func (u *Utils) GetTenantClusters(ctx context.Context) ([]ETCDInstance, error)
Click to show internal directories.
Click to hide internal directories.