Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkState ¶ added in v1.49.0
type NetworkState struct {
Provider Type
Domain string // Cloud domain (e.g., googleapis.com, amazonaws.com)
VPCs []VPC
ServiceRanges []ServiceRanges // Cloud provider service IP ranges (e.g., GCP APIs)
}
type PeeredVPC ¶
type PeeredVPC struct {
Name string
Ranges []PeeredVPCRange
}
PeeredVPC represents a VPC peering connection.
type PeeredVPCRange ¶
PeeredVPCRange represents a VPC peering IP ranges.
type Provider ¶
type Provider interface {
// Type returns the cloud provider type.
Type() Type
// GetNetworkState returns the cached network state for the cluster's cloud environment.
GetNetworkState(ctx context.Context) (*NetworkState, error)
// RefreshNetworkState updates cached network state.
RefreshNetworkState(ctx context.Context, network string) error
// GetStorageState returns the storage state for the cluster's cloud environment.
GetStorageState(ctx context.Context, instanceIds ...string) (*StorageState, error)
// Close cleans up resources.
Close() error
}
Provider defines cloud-agnostic operations for fetching cloud environment state.
type ProviderConfig ¶ added in v1.49.0
type ProviderConfig struct {
Type Type
// Authentication
CredentialsFile string // Path to service account key (fallback)
// GCP specific
GCPProjectID string
// AWS specific
AWSRegion string
// Azure specific (for future)
AzureSubscriptionID string
}
ProviderConfig contains cloud provider configuration.
type SecondaryRange ¶
SecondaryRange represents secondary IP ranges (GKE pods/services).
type ServiceRanges ¶
ServiceRanges contains cloud provider service IP ranges.
type StorageState ¶ added in v1.49.0
type Subnet ¶
type Subnet struct {
ID string
Name string
CIDR netip.Prefix
Zone string // AWS specific, GCP does not have zonal subnets
Region string
SecondaryRanges []SecondaryRange // GCP specific
}
Subnet represents a subnet within a VPC.
type Type ¶
type Type string
func NewProviderType ¶ added in v1.49.0
func (Type) KubernetesType ¶ added in v1.49.0
Click to show internal directories.
Click to hide internal directories.