v1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=terraformcontroller.cattle.io

+k8s:deepcopy-gen=package +groupName=terraformcontroller.cattle.io

+k8s:deepcopy-gen=package +groupName=terraformcontroller.cattle.io

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleConditionGitUpdated = condition.Cond("GitUpdated")

	ExecutionConditionDestroyJobDeployed = condition.Cond("DestroyJobDeployed")
	ExecutionConditionJobDeployed        = condition.Cond("JobDeployed")
	ExecutionConditionMissingInfo        = condition.Cond("MissingInfo")
	ExecutionConditionWatchRunning       = condition.Cond("WatchRunning")

	ExecutionRunConditionPlanned = condition.Cond("Planned")
	ExecutionRunConditionApplied = condition.Cond("Applied")
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: terraformcontroller.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Execution

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

	Spec   ExecutionSpec   `json:"spec"`
	Status ExecutionStatus `json:"status"`
}

func NewExecution

func NewExecution(namespace, name string, obj Execution) *Execution

func (*Execution) DeepCopy

func (in *Execution) DeepCopy() *Execution

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

func (*Execution) DeepCopyInto

func (in *Execution) DeepCopyInto(out *Execution)

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

func (*Execution) DeepCopyObject

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

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

type ExecutionList

type ExecutionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Execution `json:"items"`
}

ExecutionList is a list of Execution resources

func (*ExecutionList) DeepCopy

func (in *ExecutionList) DeepCopy() *ExecutionList

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

func (*ExecutionList) DeepCopyInto

func (in *ExecutionList) DeepCopyInto(out *ExecutionList)

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

func (*ExecutionList) DeepCopyObject

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

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

type ExecutionRun

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

	Spec   ExecutionRunSpec   `json:"spec"`
	Status ExecutionRunStatus `json:"status"`
}

func NewExecutionRun

func NewExecutionRun(namespace, name string, obj ExecutionRun) *ExecutionRun

func (*ExecutionRun) DeepCopy

func (in *ExecutionRun) DeepCopy() *ExecutionRun

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

func (*ExecutionRun) DeepCopyInto

func (in *ExecutionRun) DeepCopyInto(out *ExecutionRun)

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

func (*ExecutionRun) DeepCopyObject

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

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

type ExecutionRunList

type ExecutionRunList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ExecutionRun `json:"items"`
}

ExecutionRunList is a list of ExecutionRun resources

func (*ExecutionRunList) DeepCopy

func (in *ExecutionRunList) DeepCopy() *ExecutionRunList

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

func (*ExecutionRunList) DeepCopyInto

func (in *ExecutionRunList) DeepCopyInto(out *ExecutionRunList)

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

func (*ExecutionRunList) DeepCopyObject

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

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

type ExecutionRunSpec

type ExecutionRunSpec struct {
	AutoConfirm      bool              `json:"autoConfirm,omitempty"`
	Content          ModuleContent     `json:"content,omitempty"`
	ContentHash      string            `json:"contentHash,omitempty"`
	Data             map[string]string `json:"data,omitempty"`
	ExecutionName    string            `json:"executionName,omitempty"`
	ExecutionVersion int32             `json:"executionVersion,omitempty"`
	// Secrets and config maps referenced in the Execution spec will be combined into this secret
	SecretName string `json:"secretName,omitempty"`
}

func (*ExecutionRunSpec) DeepCopy

func (in *ExecutionRunSpec) DeepCopy() *ExecutionRunSpec

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

func (*ExecutionRunSpec) DeepCopyInto

func (in *ExecutionRunSpec) DeepCopyInto(out *ExecutionRunSpec)

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

type ExecutionRunStatus

type ExecutionRunStatus struct {
	Conditions    []genericcondition.GenericCondition `json:"conditions,omitempty"`
	JobName       string                              `json:"jobName,omitempty"`
	PlanOutput    string                              `json:"planOutput,omitempty"`
	PlanConfirmed bool                                `json:"planConfirmed,omitempty"`
	ApplyOutput   string                              `json:"applyOutput,omitempty"`
	Outputs       string                              `json:"outputs,omitempty"`
}

func (*ExecutionRunStatus) DeepCopy

func (in *ExecutionRunStatus) DeepCopy() *ExecutionRunStatus

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

func (*ExecutionRunStatus) DeepCopyInto

func (in *ExecutionRunStatus) DeepCopyInto(out *ExecutionRunStatus)

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

type ExecutionSpec

type ExecutionSpec struct {
	Image      string    `json:"image,omitempty"`
	Variables  Variables `json:"variables,omitempty"`
	ModuleName string    `json:"moduleName,omitempty"`
	// Data is dataName mapped to another executionRun name
	// so terraform variable name that should be an output from the run
	Data            map[string]string `json:"data,omitempty"`
	AutoConfirm     bool              `json:"autoConfirm,omitempty"`
	DestroyOnDelete bool              `json:"destroyOnDelete,omitempty"`
	Version         int32             `json:"version,omitempty"`
}

func (*ExecutionSpec) DeepCopy

func (in *ExecutionSpec) DeepCopy() *ExecutionSpec

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

func (*ExecutionSpec) DeepCopyInto

func (in *ExecutionSpec) DeepCopyInto(out *ExecutionSpec)

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

type ExecutionStatus

type ExecutionStatus struct {
	Conditions        []genericcondition.GenericCondition `json:"conditions,omitempty"`
	ExecutionRunName  string                              `json:"executionRunName,omitempty"`
	ExecutionPlanName string                              `json:"executionPlanName,omitempty"`
}

func (*ExecutionStatus) DeepCopy

func (in *ExecutionStatus) DeepCopy() *ExecutionStatus

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

func (*ExecutionStatus) DeepCopyInto

func (in *ExecutionStatus) DeepCopyInto(out *ExecutionStatus)

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

type GitLocation

type GitLocation struct {
	URL             string `json:"url,omitempty"`
	Branch          string `json:"branch,omitempty"`
	Tag             string `json:"tag,omitempty"`
	Commit          string `json:"commit,omitempty"`
	SecretName      string `json:"secretName,omitempty"`
	IntervalSeconds int    `json:"intervalSeconds,omitempty"`
}

func (*GitLocation) DeepCopy

func (in *GitLocation) DeepCopy() *GitLocation

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

func (*GitLocation) DeepCopyInto

func (in *GitLocation) DeepCopyInto(out *GitLocation)

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

type Module

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

	Spec   ModuleSpec   `json:"spec"`
	Status ModuleStatus `json:"status"`
}

func NewModule

func NewModule(namespace, name string, obj Module) *Module

func (*Module) DeepCopy

func (in *Module) DeepCopy() *Module

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

func (*Module) DeepCopyInto

func (in *Module) DeepCopyInto(out *Module)

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

func (*Module) DeepCopyObject

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

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

type ModuleContent

type ModuleContent struct {
	Content map[string]string `json:"content,omitempty"`
	Git     GitLocation       `json:"git,omitempty"`
}

func (*ModuleContent) DeepCopy

func (in *ModuleContent) DeepCopy() *ModuleContent

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

func (*ModuleContent) DeepCopyInto

func (in *ModuleContent) DeepCopyInto(out *ModuleContent)

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

type ModuleList

type ModuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Module `json:"items"`
}

ModuleList is a list of Module resources

func (*ModuleList) DeepCopy

func (in *ModuleList) DeepCopy() *ModuleList

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

func (*ModuleList) DeepCopyInto

func (in *ModuleList) DeepCopyInto(out *ModuleList)

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

func (*ModuleList) DeepCopyObject

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

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

type ModuleSpec

type ModuleSpec struct {
	ModuleContent
}

func (*ModuleSpec) DeepCopy

func (in *ModuleSpec) DeepCopy() *ModuleSpec

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

func (*ModuleSpec) DeepCopyInto

func (in *ModuleSpec) DeepCopyInto(out *ModuleSpec)

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

type ModuleStatus

type ModuleStatus struct {
	CheckTime   metav1.Time                         `json:"time,omitempty"`
	GitChecked  *GitLocation                        `json:"gitChecked,omitempty"`
	Content     ModuleContent                       `json:"content,omitempty"`
	ContentHash string                              `json:"contentHash,omitempty"`
	Conditions  []genericcondition.GenericCondition `json:"conditions,omitempty"`
}

func (*ModuleStatus) DeepCopy

func (in *ModuleStatus) DeepCopy() *ModuleStatus

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

func (*ModuleStatus) DeepCopyInto

func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)

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

type Variables

type Variables struct {
	EnvConfigName  []string `json:"envConfigNames,omitempty"`
	EnvSecretNames []string `json:"envSecretNames,omitempty"`
	ConfigNames    []string `json:"configNames,omitempty"`
	SecretNames    []string `json:"secretNames,omitempty"`
}

func (*Variables) DeepCopy

func (in *Variables) DeepCopy() *Variables

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

func (*Variables) DeepCopyInto

func (in *Variables) DeepCopyInto(out *Variables)

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