v1alpha1

package
v0.0.0-...-81b0bac Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the claim v1alpha1 API group +kubebuilder:object:generate=true +groupName=claim.tmax.io

Index

Constants

View Source
const (
	TFApplyClaimFinalizer = "tfapplyclaim.claim.tmax.io/finalizer"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "claim.tmax.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
)
View Source
var TFApplyClaimWebhookLogger = logf.Log.WithName("tfapplyclaim-resource")

log is for logging in this package.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	// Last time that "terraform plan" performed.
	LastExectionTime string `json:"lastexectiontime,omitempty"`
	// The latest Commid ID that "terraform plan" peformed in
	Commit string `json:"commit,omitempty"`
	// Stdout-StdErr Log about Plan Cmd
	Log string `json:"log,omitempty"`
}

func (*Plan) DeepCopy

func (in *Plan) DeepCopy() *Plan

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

func (*Plan) DeepCopyInto

func (in *Plan) DeepCopyInto(out *Plan)

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

type Resource

type Resource struct {
	Added   int `json:"added,omitempty"`
	Updated int `json:"updated,omitempty"`
	Deleted int `json:"deleted,omitempty"`
}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

type TFApplyClaim

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

	Spec   TFApplyClaimSpec   `json:"spec,omitempty"`
	Status TFApplyClaimStatus `json:"status,omitempty"`
}

TFApplyClaim is the Schema for the tfapplyclaims API

func (*TFApplyClaim) DeepCopy

func (in *TFApplyClaim) DeepCopy() *TFApplyClaim

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

func (*TFApplyClaim) DeepCopyInto

func (in *TFApplyClaim) DeepCopyInto(out *TFApplyClaim)

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

func (*TFApplyClaim) DeepCopyObject

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

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

func (*TFApplyClaim) Default

func (r *TFApplyClaim) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*TFApplyClaim) GetNamespacedName

func (t *TFApplyClaim) GetNamespacedName() types.NamespacedName

func (*TFApplyClaim) SetupWebhookWithManager

func (r *TFApplyClaim) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*TFApplyClaim) ValidateCreate

func (r *TFApplyClaim) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*TFApplyClaim) ValidateDelete

func (r *TFApplyClaim) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*TFApplyClaim) ValidateUpdate

func (r *TFApplyClaim) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type TFApplyClaimList

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

TFApplyClaimList contains a list of TFApplyClaim

func (*TFApplyClaimList) DeepCopy

func (in *TFApplyClaimList) DeepCopy() *TFApplyClaimList

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

func (*TFApplyClaimList) DeepCopyInto

func (in *TFApplyClaimList) DeepCopyInto(out *TFApplyClaimList)

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

func (*TFApplyClaimList) DeepCopyObject

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

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

type TFApplyClaimSpec

type TFApplyClaimSpec struct {

	// +kubebuilder:validation:Enum:=public;private
	// +kubebuilder:validation:Required
	// Git Repoistory Type (public, private)
	Type string `json:"type"`
	// +kubebuilder:validation:Required
	// Terraform CLI Version. Example: 0.12.3
	Version string `json:"version"`
	// +kubebuilder:validation:Required
	// Git URL (HCL Code)
	URL string `json:"url"`
	// +kubebuilder:validation:Required
	// Git Branch
	Branch string `json:"branch,omitempty"`
	// Secret Name for Git Credential
	Secret string `json:"secret,omitempty"`
	// Value for performing "terraform destroy". Set to FALSE when creating the resource
	Destroy bool `json:"destroy,omitempty"`
	// Terraform Variable. Example: AWS_ACCESS_KEY_ID=aws-access-key, AWS_SECRET_ACCESS_KEY=aws-secret-access-key
	Variable string `json:"variable,omitempty"`
}

TFApplyClaimSpec defines the desired state of TFApplyClaim

func (*TFApplyClaimSpec) DeepCopy

func (in *TFApplyClaimSpec) DeepCopy() *TFApplyClaimSpec

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

func (*TFApplyClaimSpec) DeepCopyInto

func (in *TFApplyClaimSpec) DeepCopyInto(out *TFApplyClaimSpec)

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

type TFApplyClaimStatus

type TFApplyClaimStatus struct {

	// Action defines the action that administrator apply
	Action string `json:"action,omitempty"`
	// Phase defines the current step for Terraform Claim
	Phase string `json:"phase,omitempty"`
	// Phase defines the current step for Terraform Claim
	PrePhase string `json:"prephase,omitempty"`
	// Plans defines the information about "terraform plan"
	Plans []Plan `json:"plans,omitempty"`
	// Apply defines the information about "terraform apply"
	Apply string `json:"apply,omitempty"`
	// Destroy defines the information about "terraform destroy"
	Destroy string `json:"destroy,omitempty"`
	// State defines the contents for Terraform State File
	State string `json:"state,omitempty"`
	// URL defines the Git URL (HCL Code)
	URL string `json:"url,omitempty"`
	// Branch defines the Git Branch
	Branch string `json:"branch,omitempty"`
	// Commit defines the latest commit id when apply or destroy
	Commit string `json:"commit,omitempty"`
	// Resource defines the count about added, updated, or deleted resources in Cloud Platform
	Resource Resource `json:"resource,omitempty"`
	// Reason defines the reason why TFApplyClaim is Error or Rejected
	Reason string `json:"reason,omitempty"`
}

TFApplyClaimStatus defines the observed state of TFApplyClaim

func (*TFApplyClaimStatus) DeepCopy

func (in *TFApplyClaimStatus) DeepCopy() *TFApplyClaimStatus

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

func (*TFApplyClaimStatus) DeepCopyInto

func (in *TFApplyClaimStatus) DeepCopyInto(out *TFApplyClaimStatus)

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