capg

package
v2.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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"`
	RootVolumeSizeGB int            `json:"rootVolumeSizeGB,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"`
	RootVolumeSizeGB int            `json:"rootVolumeSizeGB,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"`
}

Jump to

Keyboard shortcuts

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