capa

package
v2.31.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClusterValues

func GenerateClusterValues(flagInputs ClusterConfig) (string, error)

func GenerateDefaultAppsValues

func GenerateDefaultAppsValues(flagConfig DefaultAppsConfig) (string, error)

Types

type AWS

type AWS struct {
	Region string `json:"region,omitempty"`
	Role   string `json:"awsClusterRole,omitempty"`
}

type Bastion

type Bastion struct {
	InstanceType string `json:"instanceType,omitempty"`
	Replicas     int    `json:"replicas,omitempty"`
}

type CIDRBlock added in v2.31.1

type CIDRBlock struct {
	CIDR             string `json:"cidr"`
	AvailabilityZone string `json:"availabilityZone"`
}

type ClusterConfig

type ClusterConfig struct {
	ClusterDescription string         `json:"clusterDescription,omitempty"`
	ClusterName        string         `json:"clusterName,omitempty"`
	Organization       string         `json:"organization,omitempty"`
	AWS                *AWS           `json:"aws,omitempty"`
	Network            *Network       `json:"network,omitempty"`
	Bastion            *Bastion       `json:"bastion,omitempty"`
	ControlPlane       *ControlPlane  `json:"controlPlane,omitempty"`
	MachinePools       *[]MachinePool `json:"machinePools,omitempty"`
	FlatcarAWSAccount  string         `json:"flatcarAWSAccount,omitempty"`
	Proxy              *Proxy         `json:"proxy,omitempty"`
}

type ControlPlane

type ControlPlane struct {
	InstanceType           string   `json:"instanceType,omitempty"`
	Replicas               int      `json:"replicas,omitempty"`
	RootVolumeSizeGB       int      `json:"rootVolumeSizeGB,omitempty"`
	EtcdVolumeSizeGB       int      `json:"etcdVolumeSizeGB,omitempty"`
	ContainerdVolumeSizeGB int      `json:"containerdVolumeSizeGB,omitempty"`
	KubeletVolumeSizeGB    int      `json:"kubeletVolumeSizeGB,omitempty"`
	AvailabilityZones      []string `json:"availabilityZones,omitempty"`
}

type DefaultAppsConfig

type DefaultAppsConfig struct {
	ClusterName  string `json:"clusterName,omitempty"`
	Organization string `json:"organization,omitempty"`
}

type MachinePool

type MachinePool struct {
	Name              string   `json:"name,omitempty"`
	AvailabilityZones []string `json:"availabilityZones,omitempty"`
	InstanceType      string   `json:"instanceType,omitempty"`
	MinSize           int      `json:"minSize,omitempty"`
	MaxSize           int      `json:"maxSize,omitempty"`
	RootVolumeSizeGB  int      `json:"rootVolumeSizeGB,omitempty"`
	CustomNodeLabels  []string `json:"customNodeLabels,omitempty"`
}

type Network

type Network struct {
	AvailabilityZoneUsageLimit int      `json:"availabilityZoneUsageLimit,omitempty"`
	VPCCIDR                    string   `json:"vpcCIDR,omitempty"`
	TopologyMode               string   `json:"topologyMode,omitempty"`
	VPCMode                    string   `json:"vpcMode,omitempty"`
	APIMode                    string   `json:"apiMode,omitempty"`
	DNSMode                    string   `json:"dnsMode,omitempty"`
	Subnets                    []Subnet `json:"subnets,omitempty"`
}

type Proxy added in v2.30.0

type Proxy struct {
	Enabled    bool   `json:"enabled,omitempty"`
	HttpsProxy string `json:"https_proxy,omitempty"`
	HttpProxy  string `json:"http_proxy,omitempty"`
	NoProxy    string `json:"no_proxy,omitempty"`
}

type Subnet added in v2.30.0

type Subnet struct {
	CidrBlocks []CIDRBlock `json:"cidrBlocks"`
	IsPublic   bool        `json:"isPublic"`
}

Jump to

Keyboard shortcuts

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