Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.oam.dev
Index ¶
- Variables
- type PodDisruptionBudgetTrait
- func (in *PodDisruptionBudgetTrait) DeepCopy() *PodDisruptionBudgetTrait
- func (in *PodDisruptionBudgetTrait) DeepCopyInto(out *PodDisruptionBudgetTrait)
- func (in *PodDisruptionBudgetTrait) DeepCopyObject() runtime.Object
- func (tr *PodDisruptionBudgetTrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (tr *PodDisruptionBudgetTrait) GetWorkloadReference() runtimev1alpha1.TypedReference
- func (tr *PodDisruptionBudgetTrait) SetConditions(c ...runtimev1alpha1.Condition)
- func (tr *PodDisruptionBudgetTrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)
- type PodDisruptionBudgetTraitList
- type PodDisruptionBudgetTraitSpec
- type PodDisruptionBudgetTraitStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (in *PodDisruptionBudgetTrait) DeepCopy() *PodDisruptionBudgetTrait
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 ¶
func (tr *PodDisruptionBudgetTrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
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 ¶
func (in *PodDisruptionBudgetTraitList) DeepCopy() *PodDisruptionBudgetTraitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetTraitList.
func (*PodDisruptionBudgetTraitList) DeepCopyInto ¶
func (in *PodDisruptionBudgetTraitList) DeepCopyInto(out *PodDisruptionBudgetTraitList)
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"` // "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 ¶
func (in *PodDisruptionBudgetTraitSpec) DeepCopy() *PodDisruptionBudgetTraitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetTraitSpec.
func (*PodDisruptionBudgetTraitSpec) DeepCopyInto ¶
func (in *PodDisruptionBudgetTraitSpec) DeepCopyInto(out *PodDisruptionBudgetTraitSpec)
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 ¶
func (in *PodDisruptionBudgetTraitStatus) DeepCopy() *PodDisruptionBudgetTraitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetTraitStatus.
func (*PodDisruptionBudgetTraitStatus) DeepCopyInto ¶
func (in *PodDisruptionBudgetTraitStatus) DeepCopyInto(out *PodDisruptionBudgetTraitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.