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: 13 Imported by: 3

Documentation

Overview

+groupName=knative.projectriff.io

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

Index

Constants

View Source
const (
	AdapterConditionReady                          = apis.ConditionReady
	AdapterConditionBuildReady  apis.ConditionType = "BuildReady"
	AdapterConditionTargetFound apis.ConditionType = "TargetFound"
)
View Source
const (
	DeployerConditionReady                                 = apis.ConditionReady
	DeployerConditionConfigurationReady apis.ConditionType = "ConfigurationReady"
	DeployerConditionRouteReady         apis.ConditionType = "RouteReady"
)
View Source
const (
	MaxContainerConcurrency int64 = 1000
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "knative.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 (
	AdapterLabelKey = GroupVersion.Group + "/adapter"
)
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 Adapter

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

	Spec   AdapterSpec   `json:"spec,omitempty"`
	Status AdapterStatus `json:"status,omitempty"`
}

Adapter is the Schema for the adapters API

func (*Adapter) DeepCopy

func (in *Adapter) DeepCopy() *Adapter

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

func (*Adapter) DeepCopyInto

func (in *Adapter) DeepCopyInto(out *Adapter)

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

func (*Adapter) DeepCopyObject

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

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

func (*Adapter) Default added in v0.5.0

func (r *Adapter) Default()

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

func (*Adapter) GetGroupVersionKind

func (*Adapter) GetGroupVersionKind() schema.GroupVersionKind

func (*Adapter) GetStatus

func (a *Adapter) GetStatus() apis.ResourceStatus

func (*Adapter) Validate

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

func (*Adapter) ValidateCreate added in v0.5.0

func (r *Adapter) ValidateCreate() error

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

func (*Adapter) ValidateDelete added in v0.5.0

func (r *Adapter) ValidateDelete() error

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

func (*Adapter) ValidateUpdate added in v0.5.0

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

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

type AdapterList

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

AdapterList contains a list of Adapter

func (*AdapterList) DeepCopy

func (in *AdapterList) DeepCopy() *AdapterList

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

func (*AdapterList) DeepCopyInto

func (in *AdapterList) DeepCopyInto(out *AdapterList)

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

func (*AdapterList) DeepCopyObject

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

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

type AdapterSpec

type AdapterSpec struct {

	// Build resolves the image from a build resource. As the target build
	// produces new images, they will be automatically rolled out to the
	// handler.
	Build Build `json:"build"`

	// Target Knative resource
	Target AdapterTarget `json:"target"`
}

AdapterSpec defines the desired state of Adapter

func (*AdapterSpec) DeepCopy

func (in *AdapterSpec) DeepCopy() *AdapterSpec

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

func (*AdapterSpec) DeepCopyInto

func (in *AdapterSpec) DeepCopyInto(out *AdapterSpec)

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

func (*AdapterSpec) Default added in v0.5.0

func (s *AdapterSpec) Default()

func (AdapterSpec) Validate

func (s AdapterSpec) Validate() validation.FieldErrors

type AdapterStatus

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

	// LatestImage is the most recent image resolved from the build and applied
	// to the target
	LatestImage string `json:"latestImage,omitempty"`
}

AdapterStatus defines the observed state of Adapter

func (*AdapterStatus) DeepCopy

func (in *AdapterStatus) DeepCopy() *AdapterStatus

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

func (*AdapterStatus) DeepCopyInto

func (in *AdapterStatus) DeepCopyInto(out *AdapterStatus)

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

func (*AdapterStatus) GetCondition

func (as *AdapterStatus) GetCondition(t apis.ConditionType) *apis.Condition

func (*AdapterStatus) GetObservedGeneration

func (as *AdapterStatus) GetObservedGeneration() int64

func (*AdapterStatus) GetReadyConditionType

func (*AdapterStatus) GetReadyConditionType() apis.ConditionType

func (*AdapterStatus) InitializeConditions

func (as *AdapterStatus) InitializeConditions()

func (*AdapterStatus) IsReady

func (as *AdapterStatus) IsReady() bool

func (*AdapterStatus) MarkBuildLatestImageMissing

func (as *AdapterStatus) MarkBuildLatestImageMissing(kind, name string)

func (*AdapterStatus) MarkBuildNotFound

func (as *AdapterStatus) MarkBuildNotFound(kind, name string)

func (*AdapterStatus) MarkBuildReady

func (as *AdapterStatus) MarkBuildReady()

func (*AdapterStatus) MarkTargetFound

func (as *AdapterStatus) MarkTargetFound()

func (*AdapterStatus) MarkTargetInvalid

func (as *AdapterStatus) MarkTargetInvalid(kind, name string, err error)

func (*AdapterStatus) MarkTargetNotFound

func (as *AdapterStatus) MarkTargetNotFound(kind, name string)

type AdapterTarget added in v0.5.0

type AdapterTarget struct {
	// ServiceRef references a Knative Service in this namespace.
	ServiceRef string `json:"serviceRef,omitempty"`

	// ConfigurationRef references a Knative Configuration in this namespace.
	ConfigurationRef string `json:"configurationRef,omitempty"`
}

func (*AdapterTarget) DeepCopy added in v0.5.0

func (in *AdapterTarget) DeepCopy() *AdapterTarget

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

func (*AdapterTarget) DeepCopyInto added in v0.5.0

func (in *AdapterTarget) DeepCopyInto(out *AdapterTarget)

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

func (*AdapterTarget) Validate added in v0.5.0

func (t *AdapterTarget) Validate() validation.FieldErrors

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 (c *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"`

	// +optional
	ContainerConcurrency *int64 `json:"containerConcurrency,omitempty"`

	Scale Scale `json:"scale,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"`

	// ConfigurationRef is a reference to the Knative Serving configuration
	// backing this deployer.
	ConfigurationRef *refs.TypedLocalObjectReference `json:"configurationRef,omitempty"`

	// RouteRef is a reference to the Knative Serving route backing this
	// deployer.
	RouteRef *refs.TypedLocalObjectReference `json:"routeRef,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) MarkRouteNotOwned

func (ds *DeployerStatus) MarkRouteNotOwned(name string)

func (*DeployerStatus) PropagateConfigurationStatus

func (ds *DeployerStatus) PropagateConfigurationStatus(kcs *servingv1.ConfigurationStatus)

func (*DeployerStatus) PropagateRouteStatus

func (ds *DeployerStatus) PropagateRouteStatus(rs *servingv1.RouteStatus)

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

type Scale added in v0.5.0

type Scale struct {
	Min *int32 `json:"min,omitempty"`
	Max *int32 `json:"max,omitempty"`
}

func (*Scale) DeepCopy added in v0.5.0

func (in *Scale) DeepCopy() *Scale

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

func (*Scale) DeepCopyInto added in v0.5.0

func (in *Scale) DeepCopyInto(out *Scale)

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

func (Scale) Validate added in v0.5.0

func (s Scale) Validate() validation.FieldErrors

Jump to

Keyboard shortcuts

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