v1alpha2

package
v0.0.0-...-9421b25 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.oam.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.oam.dev", Version: "v1alpha2"}

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

Functions

This section is empty.

Types

type PodDisruptionBudgetTrait

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

	Spec   PodDisruptionBudgetTraitSpec   `json:"spec,omitempty"`
	Status PodDisruptionBudgetTraitStatus `json:"status,omitempty"`
}

PodDisruptionBudgetTrait is the Schema for the poddisruptionbudgettraits API +kubebuilder:resource:categories={crossplane,oam},shortName={pdbtrait} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="MinAvailable",type=integer,JSONPath=`.spec.minAvailable` +kubebuilder:printcolumn:name="MaxUnavailable",type=integer,JSONPath=`.spec.maxUnavailable` +kubebuilder:printcolumn:name="Synced",type=string,JSONPath=`.status.conditions[?(@.type == "Synced")].status` +kubebuilder:printcolumn:name="ApplicationConfiguration",type=string,JSONPath=`.metadata.ownerReferences[?(@.kind=="ApplicationConfiguration")].name` +kubebuilder:printcolumn:name="PodDisruptionBudget",type=string,JSONPath=`.status.resources[?(@.kind=="PodDisruptionBudget")].name` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*PodDisruptionBudgetTrait) DeepCopy

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

func (*PodDisruptionBudgetTrait) DeepCopyInto

func (in *PodDisruptionBudgetTrait) DeepCopyInto(out *PodDisruptionBudgetTrait)

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

func (*PodDisruptionBudgetTrait) DeepCopyObject

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

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

func (*PodDisruptionBudgetTrait) GetCondition

GetCondition of this PodDisruptionBudgetTrait.

func (*PodDisruptionBudgetTrait) GetWorkloadReference

func (tr *PodDisruptionBudgetTrait) GetWorkloadReference() runtimev1alpha1.TypedReference

GetWorkloadReference of this PodDisruptionBudgetTrait.

func (*PodDisruptionBudgetTrait) SetConditions

func (tr *PodDisruptionBudgetTrait) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this PodDisruptionBudgetTrait.

func (*PodDisruptionBudgetTrait) SetWorkloadReference

func (tr *PodDisruptionBudgetTrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)

SetWorkloadReference of this PodDisruptionBudgetTrait.

type PodDisruptionBudgetTraitList

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

PodDisruptionBudgetTraitList contains a list of PodDisruptionBudgetTrait

func (*PodDisruptionBudgetTraitList) DeepCopy

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

func (*PodDisruptionBudgetTraitList) DeepCopyInto

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

func (*PodDisruptionBudgetTraitList) DeepCopyObject

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

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

type PodDisruptionBudgetTraitSpec

type PodDisruptionBudgetTraitSpec struct {
	// An eviction is allowed if at least "minAvailable" pods selected by
	// "selector" will still be available after the eviction, i.e. even in the
	// absence of the evicted pod.  So for example you can prevent all voluntary
	// evictions by specifying "100%".
	// +optional
	MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`

	// An eviction is allowed if at most "maxUnavailable" pods selected by
	// "selector" are unavailable after the eviction, i.e. even in absence of
	// the evicted pod. For example, one can prevent all voluntary evictions
	// by specifying 0. This is a mutually exclusive setting with "minAvailable".
	// +optional
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`

	// WorkloadReference to the workload this trait applies to.
	WorkloadReference runtimev1alpha1.TypedReference `json:"workloadRef"`
}

PodDisruptionBudgetTraitSpec defines the desired state of PodDisruptionBudgetTrait

func (*PodDisruptionBudgetTraitSpec) DeepCopy

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

func (*PodDisruptionBudgetTraitSpec) DeepCopyInto

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

type PodDisruptionBudgetTraitStatus

type PodDisruptionBudgetTraitStatus struct {
	runtimev1alpha1.ConditionedStatus `json:",inline"`

	// Resources managed by this service trait
	Resources []runtimev1alpha1.TypedReference `json:"resources,omitempty"`
}

PodDisruptionBudgetTraitStatus defines the observed state of PodDisruptionBudgetTrait

func (*PodDisruptionBudgetTraitStatus) DeepCopy

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

func (*PodDisruptionBudgetTraitStatus) DeepCopyInto

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