capg

package
v2.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 ClusterConfig

type ClusterConfig struct {
	ClusterName         string               `json:"clusterName,omitempty"`
	ClusterDescription  string               `json:"clusterDescription,omitempty"`
	Organization        string               `json:"organization,omitempty"`
	GCP                 *GCP                 `json:"gcp,omitempty"`
	Network             *Network             `json:"network,omitempty"`
	BastionInstanceType string               `json:"bastion,omitempty"`
	ControlPlane        *ControlPlane        `json:"controlPlane,omitempty"`
	MachineDeployments  *[]MachineDeployment `json:"machineDeployments,omitempty"`
	SSHSSOPublicKey     string               `json:"sshSSOPublicKey,omitempty"`
}

type ControlPlane

type ControlPlane struct {
	InstanceType     string         `json:"instanceType,omitempty"`
	Replicas         int            `json:"replicas,omitempty"`
	RootVolume       Volume         `json:"rootVolume,omitempty"`
	EtcdVolume       Volume         `json:"etcdVolume,omitempty"`
	ContainerdVolume Volume         `json:"containerdVolume,omitempty"`
	KubeletVolume    Volume         `json:"kubeletVolume,omitempty"`
	ServiceAccount   ServiceAccount `json:"serviceAccount,omitempty"`
}

type DefaultAppsConfig

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

type GCP

type GCP struct {
	Region         string   `json:"region,omitempty"`
	Project        string   `json:"project,omitempty"`
	FailureDomains []string `json:"failureDomains,omitempty"`
}

type MachineDeployment

type MachineDeployment struct {
	Name             string         `json:"name,omitempty"`
	FailureDomain    string         `json:"failureDomain,omitempty"`
	InstanceType     string         `json:"instanceType,omitempty"`
	Replicas         int            `json:"replicas,omitempty"`
	RootVolume       Volume         `json:"rootVolume,omitempty"`
	ContainerdVolume Volume         `json:"containerdVolume,omitempty"`
	KubeletVolume    Volume         `json:"kubeletVolume,omitempty"`
	CustomNodeLabels []string       `json:"customNodeLabels,omitempty"`
	ServiceAccount   ServiceAccount `json:"serviceAccount,omitempty"`
}

type Network

type Network struct {
	AutoCreateSubnetNetworks int    `json:"autoCreateSubnetworks,omitempty"`
	PodCIDR                  string `json:"podCidr,omitempty"`
}

type ServiceAccount

type ServiceAccount struct {
	Email  string   `json:"email,omitempty"`
	Scopes []string `json:"scopes,omitempty"`
}

type Volume added in v2.29.0

type Volume struct {
	SizeGB   int    `json:"sizeGB,omitempty"`
	DiskType string `json:"diskType,omitempty"`
}

Defines the size and disk type for a volume

Jump to

Keyboard shortcuts

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