v1alpha1

package
v0.0.0-...-eafeaea Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the infrastructure v1alpha1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha1"}

	// 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
)

Functions

This section is empty.

Types

type TFCManagedControlPlane

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

	Spec   TFCManagedControlPlaneSpec   `json:"spec,omitempty"`
	Status TFCManagedControlPlaneStatus `json:"status,omitempty"`
}

TFCManagedControlPlane is the Schema for the tfcmanagedcontrolplanes API

func (*TFCManagedControlPlane) DeepCopy

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

func (*TFCManagedControlPlane) DeepCopyInto

func (in *TFCManagedControlPlane) DeepCopyInto(out *TFCManagedControlPlane)

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

func (*TFCManagedControlPlane) DeepCopyObject

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

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

type TFCManagedControlPlaneList

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

TFCManagedControlPlaneList contains a list of TFCManagedControlPlane

func (*TFCManagedControlPlaneList) DeepCopy

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

func (*TFCManagedControlPlaneList) DeepCopyInto

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

func (*TFCManagedControlPlaneList) DeepCopyObject

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

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

type TFCManagedControlPlaneSpec

type TFCManagedControlPlaneSpec struct {
	// Organization is the name of the Terraform Cloud organization to use
	Organization string `json:"organization"`

	// Workspace is the name of the Terraform Cloud Workspace to execute the terraform run in
	// TODO: change this to a struct that supports ID or name
	Workspace string `json:"workspace"`

	// Token is the API token for accessing Terraform Cloud
	Token Token `json:"token"`

	// Module is the Terraform module to use for provisioning the Kubernetes Cluster
	Module TerraformModule `json:"module"`

	// Version is the Kubernetes cluster version to provision
	Version string `json:"version"`

	// AutoApply configures if plans should be applied straight away or manually approved in the Terraform Cloud UI
	AutoApply bool `json:"autoApply"`

	// Variables is the list of variables to supply to the Terraform module which creates the Kubernetes Cluster
	Variables []Variable `json:"variables"`

	// ControlPlaneEndpoint is the endpoint for the control plane
	ControlPlaneEndpoint clusterv1beta1.APIEndpoint `json:"controlPlaneEndpoint,omitempty"`
}

TFCManagedControlPlaneSpec defines the desired state of TFCManagedControlPlane

func (*TFCManagedControlPlaneSpec) DeepCopy

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

func (*TFCManagedControlPlaneSpec) DeepCopyInto

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

type TFCManagedControlPlaneStatus

type TFCManagedControlPlaneStatus struct {
	// +kubebuilder:default=false
	Ready       bool            `json:"ready"`
	Initialized bool            `json:"initialized"`
	Terraform   TerraformStatus `json:"terraform,omitempty"`
}

TFCManagedControlPlaneStatus defines the observed state of TFCManagedControlPlane

func (*TFCManagedControlPlaneStatus) DeepCopy

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

func (*TFCManagedControlPlaneStatus) DeepCopyInto

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

type TFCManagedMachinePool

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

	Spec   TFCManagedMachinePoolSpec   `json:"spec,omitempty"`
	Status TFCManagedMachinePoolStatus `json:"status,omitempty"`
}

TFCManagedMachinePool is the Schema for the tfcmanagedmachinepools API

func (*TFCManagedMachinePool) DeepCopy

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

func (*TFCManagedMachinePool) DeepCopyInto

func (in *TFCManagedMachinePool) DeepCopyInto(out *TFCManagedMachinePool)

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

func (*TFCManagedMachinePool) DeepCopyObject

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

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

type TFCManagedMachinePoolList

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

TFCManagedMachinePoolList contains a list of TFCManagedMachinePool

func (*TFCManagedMachinePoolList) DeepCopy

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

func (*TFCManagedMachinePoolList) DeepCopyInto

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

func (*TFCManagedMachinePoolList) DeepCopyObject

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

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

type TFCManagedMachinePoolSpec

type TFCManagedMachinePoolSpec struct {
	// Organization is the name of the Terraform Cloud organization to use
	Organization string `json:"organization"`

	// Workspace is the name of the Terraform Cloud Workspace to execute the terraform run in
	// TODO: change this to a struct that supports ID or name
	Workspace string `json:"workspace"`

	// Token is the API token for accessing Terraform Cloud
	Token Token `json:"token"`

	// Module is the Terraform module to use for provisioning the Kubernetes Cluster
	Module TerraformModule `json:"module"`

	// AutoApply configures if plans should be applied straight away or manually approved in the Terraform Cloud UI
	AutoApply bool `json:"autoApply"`

	// Variables is the list of variables to supply to the Terraform module which creates the Kubernetes Cluster
	Variables []Variable `json:"variables"`

	// ProviderIDList is a list of cloud provider IDs identifying the instances.
	ProviderIDList []string `json:"providerIDList,omitempty"`
}

TFCManagedMachinePoolSpec defines the desired state of TFCManagedMachinePool

func (*TFCManagedMachinePoolSpec) DeepCopy

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

func (*TFCManagedMachinePoolSpec) DeepCopyInto

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

type TFCManagedMachinePoolStatus

type TFCManagedMachinePoolStatus struct {
	Ready     bool            `json:"ready,omitempty"`
	Terraform TerraformStatus `json:"terraform,omitempty"`
}

TFCManagedMachinePoolStatus defines the observed state of TFCManagedMachinePool

func (*TFCManagedMachinePoolStatus) DeepCopy

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

func (*TFCManagedMachinePoolStatus) DeepCopyInto

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

type TerraformModule

type TerraformModule struct {
	// Source is the Terraform Registry or HTTP URL of the module source
	Source string `json:"source"`

	// Version is the semantic version of the Terraform Module
	Version string `json:"version"`
}

TerraformModule defines the source and version for a Terraform module

func (*TerraformModule) DeepCopy

func (in *TerraformModule) DeepCopy() *TerraformModule

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

func (*TerraformModule) DeepCopyInto

func (in *TerraformModule) DeepCopyInto(out *TerraformModule)

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

type TerraformStatus

type TerraformStatus struct {
	// subresource for TerraformRun
	RunID                  string      `json:"runID,omitempty"`
	RunStatus              string      `json:"runStatus,omitempty"`
	RunStartedAt           metav1.Time `json:"runStartedAt,omitempty"`
	RunFinishedAt          metav1.Time `json:"runFinishedAt,omitempty"`
	ConfigurationVersionID string      `json:"configurationVersionID,omitempty"`
	ConfigurationHash      string      `json:"configurationHash,omitempty"`
}

TerraformStatus defines status information about the terraform workspace

func (*TerraformStatus) DeepCopy

func (in *TerraformStatus) DeepCopy() *TerraformStatus

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

func (*TerraformStatus) DeepCopyInto

func (in *TerraformStatus) DeepCopyInto(out *TerraformStatus)

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

type Token

type Token struct {
	// Selects a key of a secret in the workspace's namespace
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef"`
}

Token refers to a Kubernetes Secret object within the same namespace as the Workspace object

func (*Token) DeepCopy

func (in *Token) DeepCopy() *Token

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

func (*Token) DeepCopyInto

func (in *Token) DeepCopyInto(out *Token)

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

type Variable

type Variable struct {
	// Name is the name of the variable
	Name string `json:"name"`
}

Variable is a Terraform Variable

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

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

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

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

Jump to

Keyboard shortcuts

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