v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Overview

+groupName=core.projectriff.io

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true

Index

Constants

View Source
const (
	DeployerConditionReady                              = apis.ConditionReady
	DeployerConditionDeploymentReady apis.ConditionType = "DeploymentReady"
	DeployerConditionServiceReady    apis.ConditionType = "ServiceReady"
	DeployerConditionIngressReady    apis.ConditionType = "IngressReady"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.projectriff.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 (
	DeployerLabelKey = GroupVersion.Group + "/deployer"
)
View Source
var SchemeGroupVersion = GroupVersion

compatibility with k8s.io/code-generator

Functions

This section is empty.

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() validation.FieldErrors

type Deployer

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

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

Deployer is the Schema for the deployers API

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) Default added in v0.5.0

func (r *Deployer) Default()

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

func (*Deployer) GetGroupVersionKind

func (*Deployer) GetGroupVersionKind() schema.GroupVersionKind

func (*Deployer) GetStatus

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

func (*Deployer) Validate

func (r *Deployer) Validate() validation.FieldErrors

func (*Deployer) ValidateCreate added in v0.5.0

func (r *Deployer) ValidateCreate() error

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

func (*Deployer) ValidateDelete added in v0.5.0

func (r *Deployer) ValidateDelete() error

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

func (*Deployer) ValidateUpdate added in v0.5.0

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

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

type DeployerList

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

DeployerList contains a list of Deployer

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.
	// +optional
	Build *Build `json:"build,omitempty"`

	// Template pod
	// +optional
	Template *corev1.PodTemplateSpec `json:"template,omitempty"`

	// IngressPolicy defines whether the workload should be reachable from
	// outside the cluster
	IngressPolicy IngressPolicy `json:"ingressPolicy,omitempty"`
}

DeployerSpec defines the desired state of Deployer

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) Default added in v0.5.0

func (s *DeployerSpec) Default()

func (*DeployerSpec) Validate

func (s *DeployerSpec) Validate() validation.FieldErrors

type DeployerStatus

type DeployerStatus struct {
	apis.Status `json:",inline"`

	// LatestImage is the most recent image resolved from the build
	LatestImage string `json:"latestImage,omitempty"`

	DeploymentRef *refs.TypedLocalObjectReference `json:"deploymentRef,omitempty"`
	ServiceRef    *refs.TypedLocalObjectReference `json:"serviceRef,omitempty"`
	IngressRef    *refs.TypedLocalObjectReference `json:"ingressRef,omitempty"`

	// Address to target this deployer internally
	Address *apis.Addressable `json:"address,omitempty"`

	// URL to target this deployer publicly
	URL string `json:"url,omitempty"`
}

DeployerStatus defines the observed state of Deployer

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 apis.ConditionType) *apis.Condition

func (*DeployerStatus) GetObservedGeneration

func (ds *DeployerStatus) GetObservedGeneration() int64

func (*DeployerStatus) GetReadyConditionType

func (*DeployerStatus) GetReadyConditionType() apis.ConditionType

func (*DeployerStatus) InitializeConditions

func (ds *DeployerStatus) InitializeConditions()

func (*DeployerStatus) IsReady

func (ds *DeployerStatus) IsReady() bool

func (*DeployerStatus) MarkIngressNotRequired added in v0.5.0

func (ds *DeployerStatus) MarkIngressNotRequired()

func (*DeployerStatus) MarkServiceNotOwned

func (ds *DeployerStatus) MarkServiceNotOwned(name string)

func (*DeployerStatus) PropagateDeploymentStatus

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

func (*DeployerStatus) PropagateIngressStatus added in v0.5.0

func (ds *DeployerStatus) PropagateIngressStatus(is *networkingv1beta1.IngressStatus)

PropagateIngressStatus update DeployerConditionIngressReady condition in DeployerStatus according to IngressStatus.

func (*DeployerStatus) PropagateServiceStatus

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

type IngressPolicy added in v0.5.0

type IngressPolicy string

IngressPolicy describes whether the container should be exposed via ingress. Only one of the following ingress policies may be specified. If none of the following policies is specified, the default one is IngressPolicyClusterLocal.

const (
	IngressPolicyClusterLocal IngressPolicy = "ClusterLocal"
	IngressPolicyExternal     IngressPolicy = "External"
)

Jump to

Keyboard shortcuts

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