capv

package
v2.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 Cluster

type Cluster struct {
	KubernetesVersion        string `json:"kubernetesVersion,omitempty"`
	EnableEncryptionProvider bool   `json:"enableEncryptionProvider,omitempty"`
}

type ClusterConfig

type ClusterConfig struct {
	Connectivity       *Connectivity               `json:"connectivity,omitempty"`
	ControlPlane       *ControlPlane               `json:"controlPlane,omitempty"`
	NodeClasses        map[string]*MachineTemplate `json:"nodeClasses,omitempty"`
	NodePools          map[string]*NodePool        `json:"nodePools,omitempty"`
	HelmReleases       *HelmReleases               `json:"helmReleases,omitempty"`
	BaseDomain         string                      `json:"baseDomain,omitempty"`
	ClusterDescription string                      `json:"clusterDescription,omitempty"`
	Organization       string                      `json:"organization,omitempty"`
	Cluster            *Cluster                    `json:"cluster,omitempty"`
}

type Connectivity

type Connectivity struct {
	Network *Network `json:"network,omitempty"`
}

type ControlPlane

type ControlPlane struct {
	Image           *Image           `json:"image,omitempty"`
	Replicas        int              `json:"replicas,omitempty"`
	MachineTemplate *MachineTemplate `json:"machineTemplate,omitempty"`
}

type ControlPlaneEndpoint

type ControlPlaneEndpoint struct {
	Host       string `json:"host"`
	Port       int    `json:"port,omitempty"`
	IpPoolName string `json:"ipPoolName,omitempty"`
}

type DefaultAppsConfig

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

type HelmRelease

type HelmRelease struct {
	Interval string `json:"interval,omitempty"`
}

type HelmReleases

type HelmReleases struct {
	Cilium  *HelmRelease `json:"cilium,omitempty"`
	Cpi     *HelmRelease `json:"cpi,omitempty"`
	Coredns *HelmRelease `json:"coredns,omitempty"`
}

type Image

type Image struct {
	Repository string `json:"repository,omitempty"`
}

type LoadBalancers

type LoadBalancers struct {
	CidrBlocks []string `json:"cidrBlocks,omitempty"`
	IpPoolName string   `json:"ipPoolName,omitempty"`
}

type MTDevice

type MTDevice struct {
	NetworkName string `json:"networkName,omitempty"`
	Dhcp4       bool   `json:"dhcp4,omitempty"`
}

type MTNetwork

type MTNetwork struct {
	Devices []*MTDevice `json:"devices,omitempty"`
}

type MachineTemplate

type MachineTemplate struct {
	Network      *MTNetwork `json:"network,omitempty"`
	CloneMode    string     `json:"cloneMode,omitempty"`
	DiskGiB      int        `json:"diskGiB,omitempty"`
	NumCPUs      int        `json:"numCPUs,omitempty"`
	MemoryMiB    int        `json:"memoryMiB,omitempty"`
	ResourcePool string     `json:"resourcePool,omitempty"`
	Template     string     `json:"template,omitempty"`
}

type Network

type Network struct {
	AllowAllEgress       bool                  `json:"allowAllEgress,omitempty"`
	ControlPlaneEndpoint *ControlPlaneEndpoint `json:"controlPlaneEndpoint,omitempty"`
	LoadBalancers        *LoadBalancers        `json:"loadBalancers,omitempty"`
}

type NodePool

type NodePool struct {
	Class    string `json:"class,omitempty"`
	Replicas int    `json:"replicas,omitempty"`
}

Jump to

Keyboard shortcuts

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