types

package
v0.0.0-...-7b24307 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConfig

type CloudConfig struct {
	Global GlobalOpts
}

CloudConfig contains only the section global.

func (*CloudConfig) AsString

func (cc *CloudConfig) AsString() (string, error)

AsString renders the cloud configuration as string.

type CloudProviderSpec

type CloudProviderSpec struct {
	// ServiceAccount must be base64-encoded.
	ServiceAccount               providerconfigtypes.ConfigVarString  `json:"serviceAccount,omitempty"`
	Zone                         providerconfigtypes.ConfigVarString  `json:"zone"`
	MachineType                  providerconfigtypes.ConfigVarString  `json:"machineType"`
	DiskSize                     int64                                `json:"diskSize"`
	DiskType                     providerconfigtypes.ConfigVarString  `json:"diskType"`
	Network                      providerconfigtypes.ConfigVarString  `json:"network"`
	Subnetwork                   providerconfigtypes.ConfigVarString  `json:"subnetwork"`
	Preemptible                  providerconfigtypes.ConfigVarBool    `json:"preemptible"`
	AutomaticRestart             *providerconfigtypes.ConfigVarBool   `json:"automaticRestart,omitempty"`
	ProvisioningModel            *providerconfigtypes.ConfigVarString `json:"provisioningModel,omitempty"`
	Labels                       map[string]string                    `json:"labels,omitempty"`
	Tags                         []string                             `json:"tags,omitempty"`
	AssignPublicIPAddress        *providerconfigtypes.ConfigVarBool   `json:"assignPublicIPAddress,omitempty"`
	MultiZone                    providerconfigtypes.ConfigVarBool    `json:"multizone"`
	Regional                     providerconfigtypes.ConfigVarBool    `json:"regional"`
	CustomImage                  providerconfigtypes.ConfigVarString  `json:"customImage,omitempty"`
	DisableMachineServiceAccount providerconfigtypes.ConfigVarBool    `json:"disableMachineServiceAccount,omitempty"`
	EnableNestedVirtualization   providerconfigtypes.ConfigVarBool    `json:"enableNestedVirtualization,omitempty"`
	MinCPUPlatform               providerconfigtypes.ConfigVarString  `json:"minCPUPlatform,omitempty"`
	GuestOSFeatures              []string                             `json:"guestOSFeatures,omitempty"`
	ProjectID                    providerconfigtypes.ConfigVarString  `json:"projectID,omitempty"`
}

CloudProviderSpec contains the specification of the cloud provider taken from the provider configuration.

func (*CloudProviderSpec) UpdateProviderSpec

func (cpSpec *CloudProviderSpec) UpdateProviderSpec(spec v1alpha1.ProviderSpec) (*runtime.RawExtension, error)

UpdateProviderSpec updates the given provider spec with changed configuration values.

type GlobalOpts

type GlobalOpts struct {
	ProjectID        string
	LocalZone        string
	NetworkName      string
	SubnetworkName   string
	TokenURL         string
	MultiZone        bool
	Regional         bool
	NodeTags         []string
	RHSMOfflineToken string
}

GlobalOpts contains the values of the global section of the cloud configuration.

type RawConfig

type RawConfig = CloudProviderSpec

func GetConfig

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

Jump to

Keyboard shortcuts

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