Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addressable ¶ added in v0.5.0
type Addressable struct {
URL string `json:"url,omitempty"`
}
Addressable is the schema for the destination information. This is typically stored in the object's `status`, as this information may be generated by the controller. +k8s:deepcopy-gen=true
func (*Addressable) DeepCopy ¶ added in v0.5.0
func (in *Addressable) DeepCopy() *Addressable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addressable.
func (*Addressable) DeepCopyInto ¶ added in v0.5.0
func (in *Addressable) DeepCopyInto(out *Addressable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶ added in v0.5.0
type Condition struct { // Type of condition. // +required Type ConditionType `json:"type" description:"type of status condition"` // Status of the condition, one of True, False, Unknown. // +required Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"` // Severity with which to treat failures of this type of condition. // When this is not specified, it defaults to Error. // +optional Severity ConditionSeverity `json:"severity,omitempty" description:"how to interpret failures of this condition, one of Error, Warning, Info"` // LastTransitionTime is the last time the condition transitioned from one status to another. // We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic // differences (all other things held constant). // +optional LastTransitionTime VolatileTime `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty" description:"one-word CamelCase reason for the condition's last transition"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"` }
Conditions defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties +k8s:deepcopy-gen=true +k8s:openapi-gen=true
func (*Condition) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionManager ¶ added in v0.5.0
type ConditionManager interface { // IsHappy looks at the happy condition and returns true if that condition is // set to true. IsHappy() bool // GetCondition finds and returns the Condition that matches the ConditionType // previously set on Conditions. GetCondition(t ConditionType) *Condition // SetCondition sets or updates the Condition on Conditions for Condition.Type. // If there is an update, Conditions are stored back sorted. SetCondition(new Condition) // ClearCondition removes the non terminal condition that matches the ConditionType ClearCondition(t ConditionType) error // MarkTrue sets the status of t to true, and then marks the happy condition to // true if all dependents are true. MarkTrue(t ConditionType) // MarkUnknown sets the status of t to Unknown and also sets the happy condition // to Unknown if no other dependent condition is in an error state. MarkUnknown(t ConditionType, reason, messageFormat string, messageA ...interface{}) // MarkFalse sets the status of t and the happy condition to False. MarkFalse(t ConditionType, reason, messageFormat string, messageA ...interface{}) // InitializeConditions updates all Conditions in the ConditionSet to Unknown // if not set. InitializeConditions() }
ConditionManager allows a resource to operate on its Conditions using higher order operations.
type ConditionSet ¶ added in v0.5.0
type ConditionSet struct {
// contains filtered or unexported fields
}
ConditionSet is an abstract collection of the possible ConditionType values that a particular resource might expose. It also holds the "happy condition" for that resource, which we define to be one of Ready or Succeeded depending on whether it is a Living or Batch process respectively. +k8s:deepcopy-gen=false
func NewBatchConditionSet ¶ added in v0.5.0
func NewBatchConditionSet(d ...ConditionType) ConditionSet
NewBatchConditionSet returns a ConditionSet to hold the conditions for the batch resource. ConditionSucceeded is used as the happy condition. The set of condition types provided are those of the terminal subconditions.
func NewLivingConditionSet ¶ added in v0.5.0
func NewLivingConditionSet(d ...ConditionType) ConditionSet
NewLivingConditionSet returns a ConditionSet to hold the conditions for the living resource. ConditionReady is used as the happy condition. The set of condition types provided are those of the terminal subconditions.
func (ConditionSet) Manage ¶ added in v0.5.0
func (r ConditionSet) Manage(status ConditionsAccessor) ConditionManager
Manage creates a ConditionManager from an accessor object using the original ConditionSet as a reference. Status must be a pointer to a struct.
type ConditionSeverity ¶ added in v0.5.0
type ConditionSeverity string
ConditionSeverity expresses the severity of a Condition Type failing.
const ( // ConditionSeverityError specifies that a failure of a condition type // should be viewed as an error. As "Error" is the default for conditions // we use the empty string (coupled with omitempty) to avoid confusion in // the case where the condition is in state "True" (aka nothing is wrong). ConditionSeverityError ConditionSeverity = "" // ConditionSeverityWarning specifies that a failure of a condition type // should be viewed as a warning, but that things could still work. ConditionSeverityWarning ConditionSeverity = "Warning" // ConditionSeverityInfo specifies that a failure of a condition type // should be viewed as purely informational, and that things could still work. ConditionSeverityInfo ConditionSeverity = "Info" )
type ConditionType ¶ added in v0.5.0
type ConditionType string
ConditionType is a camel-cased condition type.
const ( // ConditionReady specifies that the resource is ready. // For long-running resources. ConditionReady ConditionType = "Ready" // ConditionSucceeded specifies that the resource has finished. // For resource which run to completion. ConditionSucceeded ConditionType = "Succeeded" )
type Conditions ¶ added in v0.5.0
type Conditions []Condition
Conditions is the schema for the conditions portion of the payload
type ConditionsAccessor ¶ added in v0.5.0
type ConditionsAccessor interface { GetConditions() Conditions SetConditions(Conditions) }
Conditions is the interface for a Resource that implements the getter and setter for accessing a Condition collection. +k8s:deepcopy-gen=false
type Resource ¶ added in v0.5.0
type Resource interface { GetGroupVersionKind() schema.GroupVersionKind GetObjectMeta() metav1.Object GetStatus() ResourceStatus }
type ResourceStatus ¶ added in v0.5.0
type ResourceStatus interface { IsReady() bool GetCondition(t ConditionType) *Condition GetReadyConditionType() ConditionType GetObservedGeneration() int64 }
type Status ¶
type Status struct { // ObservedGeneration is the 'Generation' of the Service that // was last processed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions the latest available observations of a resource's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
Status shows how we expect folks to embed Conditions in their Status field. WARNING: Adding fields to this struct will add them to all riff resources. +k8s:deepcopy-gen=true
func (*Status) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) GetCondition ¶
func (s *Status) GetCondition(t ConditionType) *Condition
GetCondition fetches the condition of the specified type.
func (*Status) GetConditions ¶ added in v0.5.0
func (s *Status) GetConditions() Conditions
GetConditions implements ConditionsAccessor
func (*Status) SetConditions ¶ added in v0.5.0
func (s *Status) SetConditions(c Conditions)
SetConditions implements ConditionsAccessor
type VolatileTime ¶ added in v0.5.0
VolatileTime wraps metav1.Time +k8s:deepcopy-gen=true +k8s:openapi-gen=true +kubebuilder:validation:Type=string
func (*VolatileTime) DeepCopy ¶ added in v0.5.0
func (in *VolatileTime) DeepCopy() *VolatileTime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolatileTime.
func (*VolatileTime) DeepCopyInto ¶ added in v0.5.0
func (in *VolatileTime) DeepCopyInto(out *VolatileTime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VolatileTime) MarshalJSON ¶ added in v0.5.0
func (t VolatileTime) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*VolatileTime) UnmarshalJSON ¶ added in v0.5.0
func (t *VolatileTime) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
build
|
|
v1alpha1
+groupName=build.projectriff.io Package v1alpha1 contains API Schema definitions for the build v1alpha1 API group +kubebuilder:object:generate=true
|
+groupName=build.projectriff.io Package v1alpha1 contains API Schema definitions for the build v1alpha1 API group +kubebuilder:object:generate=true |
core
|
|
v1alpha1
+groupName=core.projectriff.io Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true
|
+groupName=core.projectriff.io Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true |
knative
|
|
v1alpha1
+groupName=knative.projectriff.io Package v1alpha1 contains API Schema definitions for the knative v1alpha1 API group +kubebuilder:object:generate=true
|
+groupName=knative.projectriff.io Package v1alpha1 contains API Schema definitions for the knative v1alpha1 API group +kubebuilder:object:generate=true |
streaming
|
|
v1alpha1
+groupName=streaming.projectriff.io Copyright 2020 the original author or authors.
|
+groupName=streaming.projectriff.io Copyright 2020 the original author or authors. |
thirdparty
|
|
keda/v1alpha1
+kubebuilder:object:generate=true +groupName=keda.k8s.io
|
+kubebuilder:object:generate=true +groupName=keda.k8s.io |
knative/serving/v1
+kubebuilder:object:generate=true +groupName=serving.knative.dev
|
+kubebuilder:object:generate=true +groupName=serving.knative.dev |
kpack/build/v1alpha1
+kubebuilder:object:generate=true +groupName=build.pivotal.io
|
+kubebuilder:object:generate=true +groupName=build.pivotal.io |