gcp

package
v0.0.0-...-a41b62c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlPlaneConfig

func ControlPlaneConfig(cfg map[string]interface{}) (*runtime.RawExtension, error)

func InfraConfig

func InfraConfig(cfg map[string]interface{}) (*runtime.RawExtension, error)

Types

type CloudControllerManager

type CloudControllerManager struct {
	// FeatureGates contains information about enabled feature gates.
	FeatureGates map[string]bool
}

CloudControllerManagerConfig contains configuration settings for the cloud-controller-manager.

type CloudNAT

type CloudNAT struct {
	// MinPortsPerVM is the minimum number of ports allocated to a VM in the NAT config.
	// The default value is 2048 ports.
	MinPortsPerVM *int32 `json:"minPortsPerVM,omitempty"`
}

CloudNAT contains information about the the CloudNAT configuration

type CloudRouter

type CloudRouter struct {
	// Name is the CloudRouter name.
	Name string `json:"name"`
}

CloudRouter contains information about the the CloudRouter configuration

type ControlPlane

type ControlPlane struct {
	metav1.TypeMeta

	// Zones are the GCP zones.
	Zone string `json:"zone"`

	// CloudControllerManager contains configuration settings for the cloud-controller-manager.
	CloudControllerManager *CloudControllerManager `json:"cloudControllerManager,omitempty"`
}

ControlPlane contains configuration settings for the control plane.

type FlowLogs

type FlowLogs struct {
	// AggregationInterval for collecting flow logs.
	AggregationInterval *string `json:"aggregationInterval,omitempty"`
	// FlowSampling sets the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported.
	FlowSampling *float32 `json:"flowSampling,omitempty"`
	// Metadata configures whether metadata fields should be added to the reported VPC flow logs.
	Metadata *string `json:"metadata,omitempty"`
}

FlowLogs contains the configuration options for the vpc flow logs.

type InfrastructureConfig

type InfrastructureConfig struct {
	metav1.TypeMeta

	// Networks is the network configuration (VPC, subnets, etc.)
	Networks Networks `json:"networks"`
}

InfrastructureConfig infrastructure configuration resource

type Networks

type Networks struct {
	// VPC indicates whether to use an existing VPC or create a new one.
	VPC *VPC `json:"vpc,omitempty"`
	// CloudNAT contains configation about the the CloudNAT resource
	CloudNAT *CloudNAT `json:"cloudNat,omitempty"`
	// Internal is a private subnet (used for internal load balancers).
	Internal *string `json:"internal,omitempty"`
	// Worker is the worker subnet range to create (used for the VMs).
	// Deprecated - use `workers` instead.
	Worker string `json:"worker"`
	// Workers is the worker subnet range to create (used for the VMs).
	Workers *string `json:"workers,omitempty"`
	// FlowLogs contains the flow log configuration for the subnet.
	FlowLogs *FlowLogs `json:"flowLogs,omitempty"`
}

Networks holds information about the Kubernetes and infrastructure networks.

type VPC

type VPC struct {
	// Name is the VPC name.
	Name string `json:"name"`
	// CloudRouter indicates whether to use an existing CloudRouter or create a new one
	CloudRouter *CloudRouter `json:"cloudRouter,omitempty"`
}

VPC contains information about the VPC and some related resources.

Jump to

Keyboard shortcuts

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