v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DeployerConditionReady                                = knapis.ConditionReady
	DeployerConditionDeploymentReady knapis.ConditionType = "DeploymentReady"
	DeployerConditionServiceReady    knapis.ConditionType = "ServiceReady"
)

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: core.GroupName, Version: "v1alpha1"}

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 Build

type Build struct {
	// ApplicationRef references an application in this namespace.
	ApplicationRef string `json:"applicationRef,omitempty"`

	// ContainerRef references a container in this namespace.
	ContainerRef string `json:"containerRef,omitempty"`

	// FunctionRef references an application in this namespace.
	FunctionRef string `json:"functionRef,omitempty"`
}

func (*Build) DeepCopy

func (in *Build) DeepCopy() *Build

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

func (*Build) DeepCopyInto

func (in *Build) DeepCopyInto(out *Build)

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

func (*Build) Validate

func (b *Build) Validate(ctx context.Context) *apis.FieldError

type Deployer

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

	Spec   DeployerSpec   `json:"spec"`
	Status DeployerStatus `json:"status"`
}

func (*Deployer) DeepCopy

func (in *Deployer) DeepCopy() *Deployer

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

func (*Deployer) DeepCopyInto

func (in *Deployer) DeepCopyInto(out *Deployer)

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

func (*Deployer) DeepCopyObject

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

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

func (*Deployer) GetGroupVersionKind

func (*Deployer) GetGroupVersionKind() schema.GroupVersionKind

func (*Deployer) GetStatus

func (d *Deployer) GetStatus() apis.Status

func (*Deployer) SetDefaults

func (d *Deployer) SetDefaults(ctx context.Context)

func (*Deployer) Validate

func (d *Deployer) Validate(ctx context.Context) *apis.FieldError

type DeployerList

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

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

func (*DeployerList) DeepCopy

func (in *DeployerList) DeepCopy() *DeployerList

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

func (*DeployerList) DeepCopyInto

func (in *DeployerList) DeepCopyInto(out *DeployerList)

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

func (*DeployerList) DeepCopyObject

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

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

type DeployerSpec

type DeployerSpec struct {
	// Build resolves the image from a build resource. As the target build
	// produces new images, they will be automatically rolled out to the
	// deployer.
	Build *Build `json:"build,omitempty"`

	// Template pod
	Template *corev1.PodSpec `json:"template,omitempty"`
}

func (*DeployerSpec) DeepCopy

func (in *DeployerSpec) DeepCopy() *DeployerSpec

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

func (*DeployerSpec) DeepCopyInto

func (in *DeployerSpec) DeepCopyInto(out *DeployerSpec)

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

func (*DeployerSpec) SetDefaults

func (ds *DeployerSpec) SetDefaults(ctx context.Context)

func (DeployerSpec) Validate

func (ds DeployerSpec) Validate(ctx context.Context) *apis.FieldError

type DeployerStatus

type DeployerStatus struct {
	duckv1beta1.Status `json:",inline"`
	DeploymentName     string `json:"deploymentName,omitempty"`
	ServiceName        string `json:"serviceName,omitempty"`
}

func (*DeployerStatus) DeepCopy

func (in *DeployerStatus) DeepCopy() *DeployerStatus

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

func (*DeployerStatus) DeepCopyInto

func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)

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

func (*DeployerStatus) GetCondition

func (ds *DeployerStatus) GetCondition(t knapis.ConditionType) *knapis.Condition

func (*DeployerStatus) GetObservedGeneration

func (ds *DeployerStatus) GetObservedGeneration() int64

func (*DeployerStatus) GetReadyConditionType

func (*DeployerStatus) GetReadyConditionType() knapis.ConditionType

func (*DeployerStatus) InitializeConditions

func (ds *DeployerStatus) InitializeConditions()

func (*DeployerStatus) IsReady

func (ds *DeployerStatus) IsReady() bool

func (*DeployerStatus) MarkDeploymentNotOwned

func (ds *DeployerStatus) MarkDeploymentNotOwned(name string)

func (*DeployerStatus) MarkServiceNotOwned

func (ds *DeployerStatus) MarkServiceNotOwned(name string)

func (*DeployerStatus) PropagateDeploymentStatus

func (ds *DeployerStatus) PropagateDeploymentStatus(cds *appsv1.DeploymentStatus)

func (*DeployerStatus) PropagateServiceStatus

func (ds *DeployerStatus) PropagateServiceStatus(ss *corev1.ServiceStatus)

Jump to

Keyboard shortcuts

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