v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Overview

DO NOT EDIT THIS FILE. This file was generated from aws-constants-generator/script.go

Package v1 contains API Schema definitions for the clusters v1 API group +kubebuilder:object:generate=true +groupName=clusters.kloudlite.io

Index

Constants

View Source
const (
	MachineStateOn  = "on"
	MachineStateOff = "off"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "clusters.kloudlite.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var AwsRegionToAZs = map[AwsRegion][]AwsAZ{
	AwsRegion_AP_NORTHEAST_1: {AwsAZ_AP_NORTHEAST_1A, AwsAZ_AP_NORTHEAST_1C, AwsAZ_AP_NORTHEAST_1D},
	AwsRegion_CA_CENTRAL_1:   {AwsAZ_CA_CENTRAL_1A, AwsAZ_CA_CENTRAL_1B, AwsAZ_CA_CENTRAL_1D},
	AwsRegion_SA_EAST_1:      {AwsAZ_SA_EAST_1A, AwsAZ_SA_EAST_1B, AwsAZ_SA_EAST_1C},
	AwsRegion_EU_CENTRAL_1:   {AwsAZ_EU_CENTRAL_1A, AwsAZ_EU_CENTRAL_1B, AwsAZ_EU_CENTRAL_1C},
	AwsRegion_AP_NORTHEAST_3: {AwsAZ_AP_NORTHEAST_3A, AwsAZ_AP_NORTHEAST_3B, AwsAZ_AP_NORTHEAST_3C},
	AwsRegion_AP_NORTHEAST_2: {AwsAZ_AP_NORTHEAST_2A, AwsAZ_AP_NORTHEAST_2B, AwsAZ_AP_NORTHEAST_2C, AwsAZ_AP_NORTHEAST_2D},
	AwsRegion_EU_WEST_2:      {AwsAZ_EU_WEST_2A, AwsAZ_EU_WEST_2B, AwsAZ_EU_WEST_2C},
	AwsRegion_EU_WEST_1:      {AwsAZ_EU_WEST_1A, AwsAZ_EU_WEST_1B, AwsAZ_EU_WEST_1C},
	AwsRegion_AP_SOUTHEAST_2: {AwsAZ_AP_SOUTHEAST_2A, AwsAZ_AP_SOUTHEAST_2B, AwsAZ_AP_SOUTHEAST_2C},
	AwsRegion_US_EAST_1:      {AwsAZ_US_EAST_1A, AwsAZ_US_EAST_1B, AwsAZ_US_EAST_1C, AwsAZ_US_EAST_1D, AwsAZ_US_EAST_1E, AwsAZ_US_EAST_1F},
	AwsRegion_US_WEST_1:      {AwsAZ_US_WEST_1B, AwsAZ_US_WEST_1C},
	AwsRegion_AP_SOUTH_1:     {AwsAZ_AP_SOUTH_1A, AwsAZ_AP_SOUTH_1B, AwsAZ_AP_SOUTH_1C},
	AwsRegion_EU_NORTH_1:     {AwsAZ_EU_NORTH_1A, AwsAZ_EU_NORTH_1B, AwsAZ_EU_NORTH_1C},
	AwsRegion_EU_WEST_3:      {AwsAZ_EU_WEST_3A, AwsAZ_EU_WEST_3B, AwsAZ_EU_WEST_3C},
	AwsRegion_AP_SOUTHEAST_1: {AwsAZ_AP_SOUTHEAST_1A, AwsAZ_AP_SOUTHEAST_1B, AwsAZ_AP_SOUTHEAST_1C},
	AwsRegion_US_EAST_2:      {AwsAZ_US_EAST_2A, AwsAZ_US_EAST_2B, AwsAZ_US_EAST_2C},
	AwsRegion_US_WEST_2:      {AwsAZ_US_WEST_2A, AwsAZ_US_WEST_2B, AwsAZ_US_WEST_2C, AwsAZ_US_WEST_2D},
}

Functions

This section is empty.

Types

type AWSClusterConfig

type AWSClusterConfig struct {
	Credentials AwsCredentials `json:"credentials"`

	VPC *AwsVPCParams `json:"vpc,omitempty" graphql:"noinput"`

	// Region     AwsRegion           `json:"region"`
	Region     string              `json:"region"`
	K3sMasters AWSK3sMastersConfig `json:"k3sMasters,omitempty"`

	NodePools     map[string]AwsEC2PoolConfig  `json:"nodePools,omitempty" graphql:"noinput"`
	SpotNodePools map[string]AwsSpotPoolConfig `json:"spotNodePools,omitempty" graphql:"noinput"`
}

func (*AWSClusterConfig) DeepCopy

func (in *AWSClusterConfig) DeepCopy() *AWSClusterConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSClusterConfig.

func (*AWSClusterConfig) DeepCopyInto

func (in *AWSClusterConfig) DeepCopyInto(out *AWSClusterConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AWSK3sMastersConfig

type AWSK3sMastersConfig struct {
	InstanceType           string                     `json:"instanceType"`
	NvidiaGpuEnabled       bool                       `json:"nvidiaGpuEnabled"`
	RootVolumeType         string                     `json:"rootVolumeType" graphql:"noinput"`
	RootVolumeSize         int                        `json:"rootVolumeSize" graphql:"noinput"`
	IAMInstanceProfileRole *string                    `json:"iamInstanceProfileRole,omitempty" graphql:"noinput"`
	Nodes                  map[string]MasterNodeProps `json:"nodes,omitempty" graphql:"noinput"`
}

func (*AWSK3sMastersConfig) DeepCopy

func (in *AWSK3sMastersConfig) DeepCopy() *AWSK3sMastersConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSK3sMastersConfig.

func (*AWSK3sMastersConfig) DeepCopyInto

func (in *AWSK3sMastersConfig) DeepCopyInto(out *AWSK3sMastersConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AWSNodePoolConfig

type AWSNodePoolConfig struct {
	Region           string `json:"region" graphql:"noinput"`
	AvailabilityZone string `json:"availabilityZone"`

	VPCId       string `json:"vpcId" graphql:"noinput"`
	VPCSubnetID string `json:"vpcSubnetId" graphql:"noinput"`

	NvidiaGpuEnabled bool   `json:"nvidiaGpuEnabled"`
	RootVolumeType   string `json:"rootVolumeType" graphql:"noinput"`
	RootVolumeSize   int    `json:"rootVolumeSize" graphql:"noinput"`

	IAMInstanceProfileRole *string `json:"iamInstanceProfileRole,omitempty" graphql:"noinput"`

	PoolType AWSPoolType `json:"poolType"`

	EC2Pool  *AwsEC2PoolConfig  `json:"ec2Pool,omitempty"`
	SpotPool *AwsSpotPoolConfig `json:"spotPool,omitempty"`
}

func (*AWSNodePoolConfig) DeepCopy

func (in *AWSNodePoolConfig) DeepCopy() *AWSNodePoolConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSNodePoolConfig.

func (*AWSNodePoolConfig) DeepCopyInto

func (in *AWSNodePoolConfig) DeepCopyInto(out *AWSNodePoolConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AWSPoolType

type AWSPoolType string

+kubebuilder:validation:Enum=ec2;spot;

const (
	AWSPoolTypeEC2  AWSPoolType = "ec2"
	AWSPoolTypeSpot AWSPoolType = "spot"
)

type AWSVirtualMachineConfig added in v1.1.0

type AWSVirtualMachineConfig struct {
	VPC *AwsVMVpcParams `json:"vpc,omitempty" graphql:"noinput"`

	// AvailabilityZone AwsAZ `json:"availabilityZone"`
	AvailabilityZone string `json:"availabilityZone"`

	NvidiaGpuEnabled bool   `json:"nvidiaGpuEnabled"`
	RootVolumeType   string `json:"rootVolumeType" graphql:"noinput"`
	RootVolumeSize   int    `json:"rootVolumeSize" graphql:"noinput"`

	IAMInstanceProfileRole *string `json:"iamInstanceProfileRole,omitempty" graphql:"noinput"`

	InstanceType string `json:"instanceType"`

	AllowIncomingHttpTraffic bool `json:"allowIncomingHttpTraffic"`
	AllowSSH                 bool `json:"allowSSH"`
}

func (*AWSVirtualMachineConfig) DeepCopy added in v1.1.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSVirtualMachineConfig.

func (*AWSVirtualMachineConfig) DeepCopyInto added in v1.1.0

func (in *AWSVirtualMachineConfig) DeepCopyInto(out *AWSVirtualMachineConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccountS3Bucket

type AccountS3Bucket struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AccountS3BucketSpec `json:"spec,omitempty"`
	Status rApi.Status         `json:"status,omitempty" graphql:"noinput"`
}

AccountS3Bucket is the Schema for the accounts3buckets API

func (*AccountS3Bucket) DeepCopy

func (in *AccountS3Bucket) DeepCopy() *AccountS3Bucket

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountS3Bucket.

func (*AccountS3Bucket) DeepCopyInto

func (in *AccountS3Bucket) DeepCopyInto(out *AccountS3Bucket)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccountS3Bucket) DeepCopyObject

func (in *AccountS3Bucket) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AccountS3Bucket) EnsureGVK

func (b *AccountS3Bucket) EnsureGVK()

func (*AccountS3Bucket) GetEnsuredAnnotations

func (b *AccountS3Bucket) GetEnsuredAnnotations() map[string]string

func (*AccountS3Bucket) GetEnsuredLabels

func (b *AccountS3Bucket) GetEnsuredLabels() map[string]string

func (*AccountS3Bucket) GetStatus

func (b *AccountS3Bucket) GetStatus() *rApi.Status

type AccountS3BucketList

type AccountS3BucketList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AccountS3Bucket `json:"items"`
}

AccountS3BucketList contains a list of AccountS3Bucket

func (*AccountS3BucketList) DeepCopy

func (in *AccountS3BucketList) DeepCopy() *AccountS3BucketList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountS3BucketList.

func (*AccountS3BucketList) DeepCopyInto

func (in *AccountS3BucketList) DeepCopyInto(out *AccountS3BucketList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccountS3BucketList) DeepCopyObject

func (in *AccountS3BucketList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AccountS3BucketSpec

type AccountS3BucketSpec struct {
	AccountName  string `json:"accountName"`
	BucketRegion string `json:"bucketRegion"`

	CredentialsRef common_types.SecretRef       `json:"credentialsRef"`
	CredentialKeys *CloudProviderCredentialKeys `json:"credentialKeys,omitempty" graphql:"noinput"`
}

AccountS3BucketSpec defines the desired state of AccountS3Bucket

func (*AccountS3BucketSpec) DeepCopy

func (in *AccountS3BucketSpec) DeepCopy() *AccountS3BucketSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountS3BucketSpec.

func (*AccountS3BucketSpec) DeepCopyInto

func (in *AccountS3BucketSpec) DeepCopyInto(out *AccountS3BucketSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsAZ added in v1.1.0

type AwsAZ string
const (
	AwsAZ_AP_SOUTH_1A AwsAZ = "ap-south-1a"
	AwsAZ_AP_SOUTH_1B AwsAZ = "ap-south-1b"
	AwsAZ_AP_SOUTH_1C AwsAZ = "ap-south-1c"

	AwsAZ_EU_NORTH_1A AwsAZ = "eu-north-1a"
	AwsAZ_EU_NORTH_1B AwsAZ = "eu-north-1b"
	AwsAZ_EU_NORTH_1C AwsAZ = "eu-north-1c"

	AwsAZ_EU_WEST_3A AwsAZ = "eu-west-3a"
	AwsAZ_EU_WEST_3B AwsAZ = "eu-west-3b"
	AwsAZ_EU_WEST_3C AwsAZ = "eu-west-3c"

	AwsAZ_EU_WEST_2A AwsAZ = "eu-west-2a"
	AwsAZ_EU_WEST_2B AwsAZ = "eu-west-2b"
	AwsAZ_EU_WEST_2C AwsAZ = "eu-west-2c"

	AwsAZ_EU_WEST_1A AwsAZ = "eu-west-1a"
	AwsAZ_EU_WEST_1B AwsAZ = "eu-west-1b"
	AwsAZ_EU_WEST_1C AwsAZ = "eu-west-1c"

	AwsAZ_AP_NORTHEAST_3A AwsAZ = "ap-northeast-3a"
	AwsAZ_AP_NORTHEAST_3B AwsAZ = "ap-northeast-3b"
	AwsAZ_AP_NORTHEAST_3C AwsAZ = "ap-northeast-3c"

	AwsAZ_AP_NORTHEAST_2A AwsAZ = "ap-northeast-2a"
	AwsAZ_AP_NORTHEAST_2B AwsAZ = "ap-northeast-2b"
	AwsAZ_AP_NORTHEAST_2C AwsAZ = "ap-northeast-2c"
	AwsAZ_AP_NORTHEAST_2D AwsAZ = "ap-northeast-2d"

	AwsAZ_AP_NORTHEAST_1A AwsAZ = "ap-northeast-1a"
	AwsAZ_AP_NORTHEAST_1C AwsAZ = "ap-northeast-1c"
	AwsAZ_AP_NORTHEAST_1D AwsAZ = "ap-northeast-1d"

	AwsAZ_CA_CENTRAL_1A AwsAZ = "ca-central-1a"
	AwsAZ_CA_CENTRAL_1B AwsAZ = "ca-central-1b"
	AwsAZ_CA_CENTRAL_1D AwsAZ = "ca-central-1d"

	AwsAZ_SA_EAST_1A AwsAZ = "sa-east-1a"
	AwsAZ_SA_EAST_1B AwsAZ = "sa-east-1b"
	AwsAZ_SA_EAST_1C AwsAZ = "sa-east-1c"

	AwsAZ_AP_SOUTHEAST_1A AwsAZ = "ap-southeast-1a"
	AwsAZ_AP_SOUTHEAST_1B AwsAZ = "ap-southeast-1b"
	AwsAZ_AP_SOUTHEAST_1C AwsAZ = "ap-southeast-1c"

	AwsAZ_AP_SOUTHEAST_2A AwsAZ = "ap-southeast-2a"
	AwsAZ_AP_SOUTHEAST_2B AwsAZ = "ap-southeast-2b"
	AwsAZ_AP_SOUTHEAST_2C AwsAZ = "ap-southeast-2c"

	AwsAZ_EU_CENTRAL_1A AwsAZ = "eu-central-1a"
	AwsAZ_EU_CENTRAL_1B AwsAZ = "eu-central-1b"
	AwsAZ_EU_CENTRAL_1C AwsAZ = "eu-central-1c"

	AwsAZ_US_EAST_1A AwsAZ = "us-east-1a"
	AwsAZ_US_EAST_1B AwsAZ = "us-east-1b"
	AwsAZ_US_EAST_1C AwsAZ = "us-east-1c"
	AwsAZ_US_EAST_1D AwsAZ = "us-east-1d"
	AwsAZ_US_EAST_1E AwsAZ = "us-east-1e"
	AwsAZ_US_EAST_1F AwsAZ = "us-east-1f"

	AwsAZ_US_EAST_2A AwsAZ = "us-east-2a"
	AwsAZ_US_EAST_2B AwsAZ = "us-east-2b"
	AwsAZ_US_EAST_2C AwsAZ = "us-east-2c"

	AwsAZ_US_WEST_1B AwsAZ = "us-west-1b"
	AwsAZ_US_WEST_1C AwsAZ = "us-west-1c"

	AwsAZ_US_WEST_2A AwsAZ = "us-west-2a"
	AwsAZ_US_WEST_2B AwsAZ = "us-west-2b"
	AwsAZ_US_WEST_2C AwsAZ = "us-west-2c"
	AwsAZ_US_WEST_2D AwsAZ = "us-west-2d"
)

type AwsAssumeRoleParams added in v1.1.0

type AwsAssumeRoleParams struct {
	RoleARN    string `json:"roleARN" graphql:"noinput"`
	ExternalID string `json:"externalID" graphql:"noinput"`
}

func (*AwsAssumeRoleParams) DeepCopy added in v1.1.0

func (in *AwsAssumeRoleParams) DeepCopy() *AwsAssumeRoleParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsAssumeRoleParams.

func (*AwsAssumeRoleParams) DeepCopyInto added in v1.1.0

func (in *AwsAssumeRoleParams) DeepCopyInto(out *AwsAssumeRoleParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsAuthMechanism added in v1.1.0

type AwsAuthMechanism string
const (
	AwsAuthMechanismSecretKeys AwsAuthMechanism = "secret_keys"
	AwsAuthMechanismAssumeRole AwsAuthMechanism = "assume_role"
)

type AwsAuthSecretKeys added in v1.1.0

type AwsAuthSecretKeys struct {
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
}

func (*AwsAuthSecretKeys) DeepCopy added in v1.1.0

func (in *AwsAuthSecretKeys) DeepCopy() *AwsAuthSecretKeys

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsAuthSecretKeys.

func (*AwsAuthSecretKeys) DeepCopyInto added in v1.1.0

func (in *AwsAuthSecretKeys) DeepCopyInto(out *AwsAuthSecretKeys)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsCredentials added in v1.1.0

type AwsCredentials struct {
	AuthMechanism AwsAuthMechanism `json:"authMechanism"`
	SecretRef     ct.SecretRef     `json:"secretRef"`
}

When

  • AuthMechanism == "secret_keys", Secret is unmarshalled as `AwsAuthSecretKeys`
  • AuthMechanism == "assume_role", Secret is unmarshalled as `AwsAssumeRoleParams`

func (*AwsCredentials) DeepCopy added in v1.1.0

func (in *AwsCredentials) DeepCopy() *AwsCredentials

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsCredentials.

func (*AwsCredentials) DeepCopyInto added in v1.1.0

func (in *AwsCredentials) DeepCopyInto(out *AwsCredentials)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsEC2PoolConfig

type AwsEC2PoolConfig struct {
	InstanceType string               `json:"instanceType"`
	Nodes        map[string]NodeProps `json:"nodes,omitempty"`
}

func (*AwsEC2PoolConfig) DeepCopy

func (in *AwsEC2PoolConfig) DeepCopy() *AwsEC2PoolConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsEC2PoolConfig.

func (*AwsEC2PoolConfig) DeepCopyInto

func (in *AwsEC2PoolConfig) DeepCopyInto(out *AwsEC2PoolConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsRegion added in v1.1.0

type AwsRegion string
const (
	AwsRegion_AP_SOUTH_1     AwsRegion = "ap-south-1"
	AwsRegion_EU_NORTH_1     AwsRegion = "eu-north-1"
	AwsRegion_EU_WEST_3      AwsRegion = "eu-west-3"
	AwsRegion_EU_WEST_2      AwsRegion = "eu-west-2"
	AwsRegion_EU_WEST_1      AwsRegion = "eu-west-1"
	AwsRegion_AP_NORTHEAST_3 AwsRegion = "ap-northeast-3"
	AwsRegion_AP_NORTHEAST_2 AwsRegion = "ap-northeast-2"
	AwsRegion_AP_NORTHEAST_1 AwsRegion = "ap-northeast-1"
	AwsRegion_CA_CENTRAL_1   AwsRegion = "ca-central-1"
	AwsRegion_SA_EAST_1      AwsRegion = "sa-east-1"
	AwsRegion_AP_SOUTHEAST_1 AwsRegion = "ap-southeast-1"
	AwsRegion_AP_SOUTHEAST_2 AwsRegion = "ap-southeast-2"
	AwsRegion_EU_CENTRAL_1   AwsRegion = "eu-central-1"
	AwsRegion_US_EAST_1      AwsRegion = "us-east-1"
	AwsRegion_US_EAST_2      AwsRegion = "us-east-2"
	AwsRegion_US_WEST_1      AwsRegion = "us-west-1"
	AwsRegion_US_WEST_2      AwsRegion = "us-west-2"
)

type AwsSpotCpuNode

type AwsSpotCpuNode struct {
	VCpu          ct.MinMaxFloat `json:"vcpu"`
	MemoryPerVCpu ct.MinMaxFloat `json:"memoryPerVcpu,omitempty"`
}

func (*AwsSpotCpuNode) DeepCopy

func (in *AwsSpotCpuNode) DeepCopy() *AwsSpotCpuNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSpotCpuNode.

func (*AwsSpotCpuNode) DeepCopyInto

func (in *AwsSpotCpuNode) DeepCopyInto(out *AwsSpotCpuNode)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsSpotGpuNode

type AwsSpotGpuNode struct {
	InstanceTypes []string `json:"instanceTypes"`
}

func (*AwsSpotGpuNode) DeepCopy

func (in *AwsSpotGpuNode) DeepCopy() *AwsSpotGpuNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSpotGpuNode.

func (*AwsSpotGpuNode) DeepCopyInto

func (in *AwsSpotGpuNode) DeepCopyInto(out *AwsSpotGpuNode)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsSpotPoolConfig

type AwsSpotPoolConfig struct {
	SpotFleetTaggingRoleName string               `json:"spotFleetTaggingRoleName" graphql:"noinput"`
	CpuNode                  *AwsSpotCpuNode      `json:"cpuNode,omitempty"`
	GpuNode                  *AwsSpotGpuNode      `json:"gpuNode,omitempty"`
	Nodes                    map[string]NodeProps `json:"nodes,omitempty"`
}

func (*AwsSpotPoolConfig) DeepCopy

func (in *AwsSpotPoolConfig) DeepCopy() *AwsSpotPoolConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSpotPoolConfig.

func (*AwsSpotPoolConfig) DeepCopyInto

func (in *AwsSpotPoolConfig) DeepCopyInto(out *AwsSpotPoolConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsSubnet added in v1.1.0

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

func (*AwsSubnet) DeepCopy added in v1.1.0

func (in *AwsSubnet) DeepCopy() *AwsSubnet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSubnet.

func (*AwsSubnet) DeepCopyInto added in v1.1.0

func (in *AwsSubnet) DeepCopyInto(out *AwsSubnet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsSubnetWithID added in v1.1.0

type AwsSubnetWithID struct {
	AvailabilityZone string `json:"availabilityZone"`
	ID               string `json:"id"`
}

func (*AwsSubnetWithID) DeepCopy added in v1.1.0

func (in *AwsSubnetWithID) DeepCopy() *AwsSubnetWithID

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSubnetWithID.

func (*AwsSubnetWithID) DeepCopyInto added in v1.1.0

func (in *AwsSubnetWithID) DeepCopyInto(out *AwsSubnetWithID)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsVMVpcParams added in v1.1.0

type AwsVMVpcParams struct {
	VPCId       string `json:"vpcId"`
	VPCSubnetID string `json:"VPCSubnetID"`
}

func (*AwsVMVpcParams) DeepCopy added in v1.1.0

func (in *AwsVMVpcParams) DeepCopy() *AwsVMVpcParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsVMVpcParams.

func (*AwsVMVpcParams) DeepCopyInto added in v1.1.0

func (in *AwsVMVpcParams) DeepCopyInto(out *AwsVMVpcParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AwsVPC added in v1.1.0

type AwsVPC struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AwsVPCSpec  `json:"spec,omitempty"`
	Status rApi.Status `json:"status,omitempty"`
}

AwsVPC is the Schema for the awsvpcs API

func (*AwsVPC) DeepCopy added in v1.1.0

func (in *AwsVPC) DeepCopy() *AwsVPC

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsVPC.

func (*AwsVPC) DeepCopyInto added in v1.1.0

func (in *AwsVPC) DeepCopyInto(out *AwsVPC)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AwsVPC) DeepCopyObject added in v1.1.0

func (in *AwsVPC) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AwsVPC) EnsureGVK added in v1.1.0

func (b *AwsVPC) EnsureGVK()

func (*AwsVPC) GetEnsuredAnnotations added in v1.1.0

func (b *AwsVPC) GetEnsuredAnnotations() map[string]string

func (*AwsVPC) GetEnsuredLabels added in v1.1.0

func (b *AwsVPC) GetEnsuredLabels() map[string]string

func (*AwsVPC) GetStatus added in v1.1.0

func (b *AwsVPC) GetStatus() *rApi.Status

type AwsVPCList added in v1.1.0

type AwsVPCList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AwsVPC `json:"items"`
}

AwsVPCList contains a list of AwsVPC

func (*AwsVPCList) DeepCopy added in v1.1.0

func (in *AwsVPCList) DeepCopy() *AwsVPCList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsVPCList.

func (*AwsVPCList) DeepCopyInto added in v1.1.0

func (in *AwsVPCList) DeepCopyInto(out *AwsVPCList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AwsVPCList) DeepCopyObject added in v1.1.0

func (in *AwsVPCList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AwsVPCParams added in v1.1.0

type AwsVPCParams struct {
	ID            string            `json:"id"`
	PublicSubnets []AwsSubnetWithID `json:"publicSubnets"`
}

func (*AwsVPCParams) DeepCopy added in v1.1.0

func (in *AwsVPCParams) DeepCopy() *AwsVPCParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsVPCParams.

func (*AwsVPCParams) DeepCopyInto added in v1.1.0

func (in *AwsVPCParams) DeepCopyInto(out *AwsVPCParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AwsVPCParams) GetSubnetId added in v1.1.0

func (avp *AwsVPCParams) GetSubnetId(az string) string

type AwsVPCSpec added in v1.1.0

type AwsVPCSpec struct {
	Credentials AwsCredentials `json:"credentials"`

	// Region AwsAZ `json:"region"`
	Region string `json:"region"`

	CIDR          string      `json:"cidr,omitempty"`
	PublicSubnets []AwsSubnet `json:"publicSubnets,omitempty"`

	Output *common_types.SecretRef `json:"output,omitempty"`
}

AwsVPCSpec defines the desired state of AwsVPC

func (*AwsVPCSpec) DeepCopy added in v1.1.0

func (in *AwsVPCSpec) DeepCopy() *AwsVPCSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsVPCSpec.

func (*AwsVPCSpec) DeepCopyInto added in v1.1.0

func (in *AwsVPCSpec) DeepCopyInto(out *AwsVPCSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AzureConfig

type AzureConfig struct{}

func (*AzureConfig) DeepCopy

func (in *AzureConfig) DeepCopy() *AzureConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureConfig.

func (*AzureConfig) DeepCopyInto

func (in *AzureConfig) DeepCopyInto(out *AzureConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudProviderCredentialKeys

type CloudProviderCredentialKeys struct {
	KeyAWSAccountId              string `json:"keyAWSAccountId"`
	KeyAWSAssumeRoleExternalID   string `json:"keyAWSAssumeRoleExternalID"`
	KeyAWSAssumeRoleRoleARN      string `json:"keyAWSAssumeRoleRoleARN"`
	KeyAWSIAMInstanceProfileRole string `json:"keyIAMInstanceProfileRole"`
	KeyAccessKey                 string `json:"keyAccessKey"`
	KeySecretKey                 string `json:"keySecretKey"`
}

func (*CloudProviderCredentialKeys) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderCredentialKeys.

func (*CloudProviderCredentialKeys) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   ClusterSpec `json:"spec"`
	Status rApi.Status `json:"status,omitempty" graphql:"noinput"`
}

Cluster is the Schema for the clusters API

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Cluster) EnsureGVK

func (b *Cluster) EnsureGVK()

func (*Cluster) GetEnsuredAnnotations

func (b *Cluster) GetEnsuredAnnotations() map[string]string

func (*Cluster) GetEnsuredLabels

func (b *Cluster) GetEnsuredLabels() map[string]string

func (*Cluster) GetStatus

func (b *Cluster) GetStatus() *rApi.Status

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

ClusterList contains a list of Cluster

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterList) DeepCopyObject

func (in *ClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterOutput

type ClusterOutput struct {
	JobName      string `json:"jobName"`
	JobNamespace string `json:"jobNamespace"`

	SecretName string `json:"secretName"`

	KeyKubeconfig          string `json:"keyKubeconfig"`
	KeyK3sServerJoinToken  string `json:"keyK3sServerJoinToken"`
	KeyK3sAgentJoinToken   string `json:"keyK3sAgentJoinToken"`
	KeyAWSVPCId            string `json:"keyAWSVPCId,omitempty"`
	KeyAWSVPCPublicSubnets string `json:"keyAWSVPCPublicSubnets,omitempty"`
}

func (*ClusterOutput) DeepCopy

func (in *ClusterOutput) DeepCopy() *ClusterOutput

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterOutput.

func (*ClusterOutput) DeepCopyInto

func (in *ClusterOutput) DeepCopyInto(out *ClusterOutput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSpec

type ClusterSpec struct {
	AccountName     string          `json:"accountName" graphql:"noinput"`
	AccountId       string          `json:"accountId" graphql:"noinput"`
	ClusterTokenRef ct.SecretKeyRef `json:"clusterTokenRef,omitempty" graphql:"noinput"`

	// +kubebuilder:validation:Enum=dev;HA
	AvailabilityMode string `json:"availabilityMode" graphql:"enum=dev;HA"`

	TaintMasterNodes       bool    `json:"taintMasterNodes" graphql:"noinput"`
	BackupToS3Enabled      bool    `json:"backupToS3Enabled" graphql:"noinput"`
	PublicDNSHost          string  `json:"publicDNSHost" graphql:"noinput"`
	ClusterServiceCIDR     string  `json:"clusterServiceCIDR,omitempty" graphql:"noinput"`
	ClusterInternalDnsHost *string `json:"clusterInternalDnsHost,omitempty" graphql:"noinput"`
	CloudflareEnabled      *bool   `json:"cloudflareEnabled,omitempty"`

	// +kubebuilder:validation:Enum=aws;do;gcp;azure
	CloudProvider ct.CloudProvider `json:"cloudProvider"`

	AWS *AWSClusterConfig `json:"aws,omitempty"`
	GCP *GCPClusterConfig `json:"gcp,omitempty"`

	MessageQueueTopicName string `json:"messageQueueTopicName" graphql:"noinput"`
	KloudliteRelease      string `json:"kloudliteRelease" graphql:"noinput"`

	Output *ClusterOutput `json:"output,omitempty" graphql:"noinput"`
}

ClusterSpec defines the desired state of Cluster For now considered basis on AWS Specific

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Credentials

type Credentials struct {
	AccessKey ct.SecretKeyRef `json:"accessKey"`
	SecretKey ct.SecretKeyRef `json:"secretKey"`
}

func (*Credentials) DeepCopy

func (in *Credentials) DeepCopy() *Credentials

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credentials.

func (*Credentials) DeepCopyInto

func (in *Credentials) DeepCopyInto(out *Credentials)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DigitalOceanConfig

type DigitalOceanConfig struct{}

func (*DigitalOceanConfig) DeepCopy

func (in *DigitalOceanConfig) DeepCopy() *DigitalOceanConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DigitalOceanConfig.

func (*DigitalOceanConfig) DeepCopyInto

func (in *DigitalOceanConfig) DeepCopyInto(out *DigitalOceanConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPClusterConfig added in v1.1.0

type GCPClusterConfig struct {
	Region       string `json:"region"`
	GCPProjectID string `json:"gcpProjectID" graphql:"noinput"`

	VPC *GcpVPCParams `json:"vpc,omitempty" graphql:"noinput"`

	// This secret will be unmarshalled into type GCPCredentials
	CredentialsRef ct.SecretRef `json:"credentialsRef"`

	ServiceAccount GCPServiceAccount `json:"serviceAccount" graphql:"noinput"`

	MasterNodes GCPMasterNodesConfig `json:"masterNodes,omitempty" graphql:"noinput"`
}

func (*GCPClusterConfig) DeepCopy added in v1.1.0

func (in *GCPClusterConfig) DeepCopy() *GCPClusterConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPClusterConfig.

func (*GCPClusterConfig) DeepCopyInto added in v1.1.0

func (in *GCPClusterConfig) DeepCopyInto(out *GCPClusterConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPCredentials added in v1.1.0

type GCPCredentials struct {
	ServiceAccountJSON string `json:"serviceAccountJSON"`
}

func (*GCPCredentials) DeepCopy added in v1.1.0

func (in *GCPCredentials) DeepCopy() *GCPCredentials

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPCredentials.

func (*GCPCredentials) DeepCopyInto added in v1.1.0

func (in *GCPCredentials) DeepCopyInto(out *GCPCredentials)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPMasterNodesConfig added in v1.1.0

type GCPMasterNodesConfig struct {
	RootVolumeType string                     `json:"rootVolumeType"`
	RootVolumeSize int                        `json:"rootVolumeSize"`
	Nodes          map[string]MasterNodeProps `json:"nodes,omitempty"`
}

func (*GCPMasterNodesConfig) DeepCopy added in v1.1.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPMasterNodesConfig.

func (*GCPMasterNodesConfig) DeepCopyInto added in v1.1.0

func (in *GCPMasterNodesConfig) DeepCopyInto(out *GCPMasterNodesConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPNodePoolConfig added in v1.1.0

type GCPNodePoolConfig struct {
	Region       string `json:"region" graphql:"noinput"`
	GCPProjectID string `json:"gcpProjectID" graphql:"noinput"`

	VPC *GcpVPCParams `json:"vpc,omitempty" graphql:"noinput"`

	AvailabilityZone string `json:"availabilityZone"`

	// this secret's `.data` will be unmarshaled into type `GCPCredentials`
	Credentials ct.SecretRef `json:"credentials" graphql:"noinput"`

	ServiceAccount GCPServiceAccount `json:"serviceAccount" graphql:"noinput"`

	PoolType GCPPoolType `json:"poolType"`

	MachineType    string `json:"machineType"`
	BootVolumeType string `json:"bootVolumeType" graphql:"noinput"`
	BootVolumeSize int    `json:"bootVolumeSize" graphql:"noinput"`

	Nodes map[string]NodeProps `json:"nodes,omitempty" graphql:"noinput"`
}

func (*GCPNodePoolConfig) DeepCopy added in v1.1.0

func (in *GCPNodePoolConfig) DeepCopy() *GCPNodePoolConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPNodePoolConfig.

func (*GCPNodePoolConfig) DeepCopyInto added in v1.1.0

func (in *GCPNodePoolConfig) DeepCopyInto(out *GCPNodePoolConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPPoolType added in v1.1.0

type GCPPoolType string

+kubebuilder:validation:Enum=STANDARD;SPOT;

const (
	GCPPoolTypeStandard GCPPoolType = "STANDARD"
	GCPPoolTypeSpot     GCPPoolType = "SPOT"
)

type GCPServiceAccount added in v1.1.0

type GCPServiceAccount struct {
	Enabled bool     `json:"enabled"`
	Email   *string  `json:"email,omitempty"`
	Scopes  []string `json:"scopes,omitempty"`
}

func (*GCPServiceAccount) DeepCopy added in v1.1.0

func (in *GCPServiceAccount) DeepCopy() *GCPServiceAccount

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPServiceAccount.

func (*GCPServiceAccount) DeepCopyInto added in v1.1.0

func (in *GCPServiceAccount) DeepCopyInto(out *GCPServiceAccount)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GCPVirtualMachineConfig added in v1.1.0

type GCPVirtualMachineConfig struct {
	Region       string `json:"region"`
	GCPProjectID string `json:"gcpProjectID" graphql:"noinput"`

	VPC *GcpVPCParams `json:"vpc,omitempty" graphql:"noinput"`

	ServiceAccount GCPServiceAccount `json:"serviceAccount"`

	// This secret will be unmarshalled into type GCPCredentials
	CredentialsRef ct.SecretRef `json:"credentialsRef"`

	AvailabilityZone string `json:"availabilityZone,omitempty"`

	MachineType string `json:"machineType"`

	PoolType GCPPoolType `json:"poolType"`

	StartupScript string `json:"startupScript"`

	AllowIncomingHttpTraffic bool `json:"allowIncomingHttpTraffic"`
	AllowSSH                 bool `json:"allowSSH"`

	BootVolumeSize int `json:"bootVolumeSize"`
}

func (*GCPVirtualMachineConfig) DeepCopy added in v1.1.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPVirtualMachineConfig.

func (*GCPVirtualMachineConfig) DeepCopyInto added in v1.1.0

func (in *GCPVirtualMachineConfig) DeepCopyInto(out *GCPVirtualMachineConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (GCPVirtualMachineConfig) RetrieveCreds added in v1.1.0

func (g GCPVirtualMachineConfig) RetrieveCreds(ctx context.Context, kcli client.Client) (*GCPCredentials, error)

type GcpVPC added in v1.1.0

type GcpVPC struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GcpVPCSpec  `json:"spec,omitempty"`
	Status rApi.Status `json:"status,omitempty"`
}

GcpVPC is the Schema for the gcpvpcs API

func (*GcpVPC) DeepCopy added in v1.1.0

func (in *GcpVPC) DeepCopy() *GcpVPC

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpVPC.

func (*GcpVPC) DeepCopyInto added in v1.1.0

func (in *GcpVPC) DeepCopyInto(out *GcpVPC)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GcpVPC) DeepCopyObject added in v1.1.0

func (in *GcpVPC) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GcpVPC) EnsureGVK added in v1.1.0

func (gv *GcpVPC) EnsureGVK()

func (*GcpVPC) GetEnsuredAnnotations added in v1.1.0

func (p *GcpVPC) GetEnsuredAnnotations() map[string]string

func (*GcpVPC) GetEnsuredLabels added in v1.1.0

func (p *GcpVPC) GetEnsuredLabels() map[string]string

func (*GcpVPC) GetStatus added in v1.1.0

func (p *GcpVPC) GetStatus() *rApi.Status

type GcpVPCList added in v1.1.0

type GcpVPCList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GcpVPC `json:"items"`
}

GcpVPCList contains a list of GcpVPC

func (*GcpVPCList) DeepCopy added in v1.1.0

func (in *GcpVPCList) DeepCopy() *GcpVPCList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpVPCList.

func (*GcpVPCList) DeepCopyInto added in v1.1.0

func (in *GcpVPCList) DeepCopyInto(out *GcpVPCList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GcpVPCList) DeepCopyObject added in v1.1.0

func (in *GcpVPCList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GcpVPCOutput added in v1.1.0

type GcpVPCOutput struct {
	// this secret will be unmarshalled into type github.com/kloudlite/operator/operators/clusters/internal/templates/types.GcpVpcTFOutput
	SecretRef ct.SecretRef `json:"secretRef"`

	TFWorkspaceName string `json:"tfWorkspaceName"`
}

func (*GcpVPCOutput) DeepCopy added in v1.1.0

func (in *GcpVPCOutput) DeepCopy() *GcpVPCOutput

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpVPCOutput.

func (*GcpVPCOutput) DeepCopyInto added in v1.1.0

func (in *GcpVPCOutput) DeepCopyInto(out *GcpVPCOutput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GcpVPCParams added in v1.1.0

type GcpVPCParams struct {
	Name string `json:"name"`
}

func (*GcpVPCParams) DeepCopy added in v1.1.0

func (in *GcpVPCParams) DeepCopy() *GcpVPCParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpVPCParams.

func (*GcpVPCParams) DeepCopyInto added in v1.1.0

func (in *GcpVPCParams) DeepCopyInto(out *GcpVPCParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GcpVPCSpec added in v1.1.0

type GcpVPCSpec struct {
	GCPProjectID string `json:"gcpProjectID"`
	Region       string `json:"region"`

	// This secret will be unmarshalled into type GCPCredentials
	CredentialsRef ct.SecretRef `json:"credentialsRef"`

	Output GcpVPCOutput `json:"output,omitempty" graphql:"noinput"`
}

GcpVPCSpec defines the desired state of GcpVPC

func (*GcpVPCSpec) DeepCopy added in v1.1.0

func (in *GcpVPCSpec) DeepCopy() *GcpVPCSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpVPCSpec.

func (*GcpVPCSpec) DeepCopyInto added in v1.1.0

func (in *GcpVPCSpec) DeepCopyInto(out *GcpVPCSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineState added in v1.1.0

type MachineState string

+kubebuilder:validation:Enum=on;off;

type MasterNodeProps

type MasterNodeProps struct {
	// +kubebuilder:validation:Enum=primary-master;secondary-master;
	Role string `json:"role"`
	// AvailabilityZone AwsAZ  `json:"availabilityZone"`
	AvailabilityZone string `json:"availabilityZone"`
	KloudliteRelease string `json:"kloudliteRelease"`
	NodeProps        `json:",inline"`
}

func (*MasterNodeProps) DeepCopy

func (in *MasterNodeProps) DeepCopy() *MasterNodeProps

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MasterNodeProps.

func (*MasterNodeProps) DeepCopyInto

func (in *MasterNodeProps) DeepCopyInto(out *MasterNodeProps)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Node

type Node struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NodeSpec    `json:"spec"`
	Status rApi.Status `json:"status,omitempty" graphql:"noinput"`
}

Node is the Schema for the nodes API

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Node) DeepCopyObject

func (in *Node) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Node) EnsureGVK

func (n *Node) EnsureGVK()

func (*Node) GetEnsuredAnnotations

func (n *Node) GetEnsuredAnnotations() map[string]string

func (*Node) GetEnsuredLabels

func (n *Node) GetEnsuredLabels() map[string]string

func (*Node) GetStatus

func (n *Node) GetStatus() *rApi.Status

type NodeList

type NodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Node `json:"items"`
}

NodeList contains a list of Node

func (*NodeList) DeepCopy

func (in *NodeList) DeepCopy() *NodeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.

func (*NodeList) DeepCopyInto

func (in *NodeList) DeepCopyInto(out *NodeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeList) DeepCopyObject

func (in *NodeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodePool

type NodePool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NodePoolSpec `json:"spec"`
	Status rApi.Status  `json:"status,omitempty" graphql:"noinput"`
}

NodePool is the Schema for the nodepools API

func (*NodePool) DeepCopy

func (in *NodePool) DeepCopy() *NodePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePool.

func (*NodePool) DeepCopyInto

func (in *NodePool) DeepCopyInto(out *NodePool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodePool) DeepCopyObject

func (in *NodePool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodePool) EnsureGVK

func (n *NodePool) EnsureGVK()

func (*NodePool) GetEnsuredAnnotations

func (n *NodePool) GetEnsuredAnnotations() map[string]string

func (*NodePool) GetEnsuredLabels

func (n *NodePool) GetEnsuredLabels() map[string]string

func (*NodePool) GetStatus

func (n *NodePool) GetStatus() *rApi.Status

type NodePoolList

type NodePoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NodePool `json:"items"`
}

NodePoolList contains a list of NodePool

func (*NodePoolList) DeepCopy

func (in *NodePoolList) DeepCopy() *NodePoolList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolList.

func (*NodePoolList) DeepCopyInto

func (in *NodePoolList) DeepCopyInto(out *NodePoolList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodePoolList) DeepCopyObject

func (in *NodePoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodePoolSpec

type NodePoolSpec struct {
	// +kubebuilder:validation:Minimum=0
	MaxCount int `json:"maxCount"`
	// +kubebuilder:validation:Minimum=0
	MinCount int `json:"minCount"`

	NodeLabels map[string]string `json:"nodeLabels,omitempty"`
	NodeTaints []corev1.Taint    `json:"nodeTaints,omitempty"`

	CloudProvider ct.CloudProvider `json:"cloudProvider"`

	AWS *AWSNodePoolConfig `json:"aws,omitempty"`
	GCP *GCPNodePoolConfig `json:"gcp,omitempty"`

	AllowSSH bool `json:"allowSSH,omitempty" graphql:"ignore"`
}

func (*NodePoolSpec) DeepCopy

func (in *NodePoolSpec) DeepCopy() *NodePoolSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolSpec.

func (*NodePoolSpec) DeepCopyInto

func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeProps

type NodeProps struct {
	LastRecreatedAt *metav1.Time `json:"lastRecreatedAt,omitempty"`
}

func (*NodeProps) DeepCopy

func (in *NodeProps) DeepCopy() *NodeProps

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProps.

func (*NodeProps) DeepCopyInto

func (in *NodeProps) DeepCopyInto(out *NodeProps)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeSpec

type NodeSpec struct {
	NodepoolName string `json:"nodepoolName"`
}

func (*NodeSpec) DeepCopy

func (in *NodeSpec) DeepCopy() *NodeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.

func (*NodeSpec) DeepCopyInto

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeType

type NodeType string

type OperatorVars

type OperatorVars struct {
	JobName      string `json:"jobName"`
	JobNamespace string `json:"jobNamespace"`
}

func (*OperatorVars) DeepCopy

func (in *OperatorVars) DeepCopy() *OperatorVars

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorVars.

func (*OperatorVars) DeepCopyInto

func (in *OperatorVars) DeepCopyInto(out *OperatorVars)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachine added in v1.1.0

type VirtualMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineSpec `json:"spec,omitempty"`
	Status rApi.Status        `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:JSONPath=".status.lastReconcileTime",name=Seen,type=date +kubebuilder:printcolumn:JSONPath=".spec.machineState",name="Machine_State",type=string +kubebuilder:printcolumn:JSONPath=".metadata.annotations.kloudlite\\.io\\/operator\\.checks",name=Checks,type=string +kubebuilder:printcolumn:JSONPath=".metadata.annotations.kloudlite\\.io\\/operator\\.resource\\.ready",name=Ready,type=string +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name=Age,type=date VirtualMachine is the Schema for the virtualmachines API

func (*VirtualMachine) DeepCopy added in v1.1.0

func (in *VirtualMachine) DeepCopy() *VirtualMachine

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachine.

func (*VirtualMachine) DeepCopyInto added in v1.1.0

func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachine) DeepCopyObject added in v1.1.0

func (in *VirtualMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VirtualMachine) EnsureGVK added in v1.1.0

func (vm *VirtualMachine) EnsureGVK()

func (*VirtualMachine) GetEnsuredAnnotations added in v1.1.0

func (vm *VirtualMachine) GetEnsuredAnnotations() map[string]string

func (*VirtualMachine) GetEnsuredLabels added in v1.1.0

func (vm *VirtualMachine) GetEnsuredLabels() map[string]string

func (*VirtualMachine) GetStatus added in v1.1.0

func (vm *VirtualMachine) GetStatus() *rApi.Status

type VirtualMachineControllerParams added in v1.1.0

type VirtualMachineControllerParams struct {
	TFWorkspaceName      string `json:"tfWorkspaceName"`
	TFWorkspaceNamespace string `json:"tfWorkspaceNamespace"`

	JobRef ct.NamespacedResourceRef `json:"jobRef"`
}

func (*VirtualMachineControllerParams) DeepCopy added in v1.1.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineControllerParams.

func (*VirtualMachineControllerParams) DeepCopyInto added in v1.1.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineList added in v1.1.0

type VirtualMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualMachine `json:"items"`
}

VirtualMachineList contains a list of VirtualMachine

func (*VirtualMachineList) DeepCopy added in v1.1.0

func (in *VirtualMachineList) DeepCopy() *VirtualMachineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineList.

func (*VirtualMachineList) DeepCopyInto added in v1.1.0

func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineList) DeepCopyObject added in v1.1.0

func (in *VirtualMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSpec added in v1.1.0

type VirtualMachineSpec struct {
	KloudliteAccount string `json:"kloudliteAccount"`

	CloudProvider ct.CloudProvider         `json:"cloudProvider"`
	AWS           *AWSVirtualMachineConfig `json:"aws,omitempty"`
	GCP           *GCPVirtualMachineConfig `json:"gcp,omitempty"`

	MachineState MachineState `json:"machineState"`

	ControllerParams VirtualMachineControllerParams `json:"controllerParams,omitempty" graphql:"noinput"`
}

VirtualMachineSpec defines the desired state of VirtualMachine

func (*VirtualMachineSpec) DeepCopy added in v1.1.0

func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineSpec.

func (*VirtualMachineSpec) DeepCopyInto added in v1.1.0

func (in *VirtualMachineSpec) DeepCopyInto(out *VirtualMachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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