capa

package
v3.0.0-...-a69f007 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 5 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 Bastion

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

type CIDRBlock

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

type ClusterConfig

type ClusterConfig struct {
	Global *Global `json:"global,omitempty"`
}

type Connectivity

type Connectivity struct {
	AvailabilityZoneUsageLimit int       `json:"availabilityZoneUsageLimit,omitempty"`
	Bastion                    *Bastion  `json:"bastion,omitempty"`
	Network                    *Network  `json:"network,omitempty"`
	Proxy                      *Proxy    `json:"proxy,omitempty"`
	Subnets                    []Subnet  `json:"subnets,omitempty"`
	Topology                   *Topology `json:"topology,omitempty"`
	VPCMode                    string    `json:"vpcMode,omitempty"`
}

type ControlPlane

type ControlPlane struct {
	APIMode                            string   `json:"apiMode,omitempty"`
	InstanceType                       string   `json:"instanceType,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"`
	LoadBalancerIngressAllowCIDRBlocks []string `json:"loadBalancerIngressAllowCidrBlocks,omitempty"`
}

type DefaultAppsConfig

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

type Global

type Global struct {
	Connectivity     *Connectivity           `json:"connectivity,omitempty"`
	ControlPlane     *ControlPlane           `json:"controlPlane,omitempty"`
	Metadata         *Metadata               `json:"metadata,omitempty"`
	NodePools        *map[string]MachinePool `json:"nodePools,omitempty"`
	ProviderSpecific *ProviderSpecific       `json:"providerSpecific,omitempty"`
	Release          *Release                `json:"release,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 Metadata

type Metadata struct {
	Description     string `json:"description,omitempty"`
	Name            string `json:"name,omitempty"`
	Organization    string `json:"organization,omitempty"`
	PreventDeletion bool   `json:"preventDeletion,omitempty"`
}

type Network

type Network struct {
	VPCCIDR string `json:"vpcCidr,omitempty"`
}

type ProviderSpecific

type ProviderSpecific struct {
	AMI                        string `json:"ami,omitempty"`
	AWSClusterRoleIdentityName string `json:"awsClusterRoleIdentityName,omitempty"`
	FlatcarAWSAccount          string `json:"flatcarAwsAccount,omitempty"`
	Region                     string `json:"region,omitempty"`
}

type Proxy

type Proxy struct {
	Enabled    bool   `json:"enabled,omitempty"`
	HttpsProxy string `json:"httpsProxy,omitempty"`
	HttpProxy  string `json:"httpProxy,omitempty"`
	NoProxy    string `json:"noProxy,omitempty"`
}

type Release

type Release struct {
	Version string `json:"version,omitempty"`
}

type Subnet

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

type Topology

type Topology struct {
	Mode             string `json:"mode,omitempty"`
	PrefixListID     string `json:"prefixListId,omitempty"`
	TransitGatewayID string `json:"transitGatewayId,omitempty"`
}

Jump to

Keyboard shortcuts

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