Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the multiarch v1beta1 API group +kubebuilder:object:generate=true +groupName=multiarch.openshift.io
Index ¶
- Constants
- Variables
- type ClusterPodPlacementConfig
- func (in *ClusterPodPlacementConfig) DeepCopy() *ClusterPodPlacementConfig
- func (in *ClusterPodPlacementConfig) DeepCopyInto(out *ClusterPodPlacementConfig)
- func (in *ClusterPodPlacementConfig) DeepCopyObject() runtime.Object
- func (*ClusterPodPlacementConfig) Hub()
- func (c *ClusterPodPlacementConfig) PluginsEnabled(plugin common.Plugin) bool
- func (c *ClusterPodPlacementConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- type ClusterPodPlacementConfigList
- type ClusterPodPlacementConfigSpec
- type ClusterPodPlacementConfigStatus
- func (s *ClusterPodPlacementConfigStatus) Build(podPlacementControllerAvailable, podPlacementWebhookAvailable, ... bool)
- func (s *ClusterPodPlacementConfigStatus) CanDeployMutatingWebhook() bool
- func (in *ClusterPodPlacementConfigStatus) DeepCopy() *ClusterPodPlacementConfigStatus
- func (in *ClusterPodPlacementConfigStatus) DeepCopyInto(out *ClusterPodPlacementConfigStatus)
- func (s *ClusterPodPlacementConfigStatus) IsDegraded() bool
- func (s *ClusterPodPlacementConfigStatus) IsDeprovisioning() bool
- func (s *ClusterPodPlacementConfigStatus) IsMutatingWebhookConfigurationNotAvailable() bool
- func (s *ClusterPodPlacementConfigStatus) IsPodPlacementControllerNotReady() bool
- func (s *ClusterPodPlacementConfigStatus) IsPodPlacementWebhookNotReady() bool
- func (s *ClusterPodPlacementConfigStatus) IsProgressing() bool
- func (s *ClusterPodPlacementConfigStatus) IsReady() bool
- type ClusterPodPlacementConfigValidator
- func (v *ClusterPodPlacementConfigValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (v *ClusterPodPlacementConfigValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (v *ClusterPodPlacementConfigValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
- type ENoExecEvent
- type ENoExecEventList
- type ENoExecEventSpec
- type ENoExecEventStatus
- type PodPlacementConfig
- func (in *PodPlacementConfig) DeepCopy() *PodPlacementConfig
- func (in *PodPlacementConfig) DeepCopyInto(out *PodPlacementConfig)
- func (in *PodPlacementConfig) DeepCopyObject() runtime.Object
- func (p *PodPlacementConfig) PluginsEnabled(plugin common.Plugin) bool
- func (p *PodPlacementConfig) ValidatePriorityNew(list runtime.Object) (bool, error)
- func (p *PodPlacementConfig) ValidatePriorityUpdate(old *PodPlacementConfig, list runtime.Object) (bool, error)
- type PodPlacementConfigList
- type PodPlacementConfigSpec
- type PodPlacementConfigStatus
Constants ¶
const ( MutatingWebhookConfigurationNotAvailable = "MutatingWebhookConfigurationNotAvailable" PodPlacementControllerNotRolledOutType = "PodPlacementControllerNotRolledOut" PodPlacementWebhookNotRolledOutType = "PodPlacementWebhookNotRolledOut" AvailableType = "Available" DegradedType = "Degraded" ProgressingType = "Progressing" DeprovisioningType = "Deprovisioning" MutatingWebhookConfigurationReadyMsg = "The mutating webhook configuration is %sready." PodPlacementControllerRolledOutMsg = "The pod placement controller is %sfully rolled out." PodPlacementWebhookRolledOutMsg = "The pod placement webhook is %sfully rolled out." ReadyMsg = "The cluster pod placement config operand is %sready. We can%s gate and reconcile pods." DegradedMsg = "The cluster pod placement config operand is %sdegraded." ProgressingMsg = "The cluster pod placement config operand is %sprogressing." DeprovisioningMsg = "The cluster pod placement config operand is %sbeing deprovisioned. %s" PendingDeprovisioningMsg = "Some pods may still have the " + utils.SchedulingGateName + "scheduling gate. The pod placement controller is updating them and will terminate." AllComponentsReady = "AllComponentsReady" )
const ClusterPodPlacementConfigKind = "ClusterPodPlacementConfig"
const ClusterPodPlacementConfigResource = "clusterpodplacementconfigs"
const ENoExecEventKind = "ENoExecEvent"
const ENoExecEventResource = "enoexecevents"
const PodPlacementConfigKind = "PodPlacementConfig"
const PodPlacementConfigResource = "podplacementconfigs"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "multiarch.openshift.io", Version: "v1beta1"} // 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 ClusterPodPlacementConfig ¶
type ClusterPodPlacementConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterPodPlacementConfigSpec `json:"spec,omitempty"`
Status ClusterPodPlacementConfigStatus `json:"status,omitempty"`
}
ClusterPodPlacementConfig defines the configuration for the architecture aware pod placement operand. Users can only deploy a single object named "cluster". Creating the object enables the operand. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:path=clusterpodplacementconfigs,scope=Cluster +kubebuilder:printcolumn:name=Available,JSONPath=.status.conditions[?(@.type=="Available")].status,type=string +kubebuilder:printcolumn:name=Progressing,JSONPath=.status.conditions[?(@.type=="Progressing")].status,type=string +kubebuilder:printcolumn:name=Degraded,JSONPath=.status.conditions[?(@.type=="Degraded")].status,type=string +kubebuilder:printcolumn:name=Since,JSONPath=.status.conditions[?(@.type=="Progressing")].lastTransitionTime,type=date +kubebuilder:printcolumn:name=Status,JSONPath=.status.conditions[?(@.type=="Available")].reason,type=string
func (*ClusterPodPlacementConfig) DeepCopy ¶
func (in *ClusterPodPlacementConfig) DeepCopy() *ClusterPodPlacementConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodPlacementConfig.
func (*ClusterPodPlacementConfig) DeepCopyInto ¶
func (in *ClusterPodPlacementConfig) DeepCopyInto(out *ClusterPodPlacementConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodPlacementConfig) DeepCopyObject ¶
func (in *ClusterPodPlacementConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterPodPlacementConfig) Hub ¶
func (*ClusterPodPlacementConfig) Hub()
Hub marks this type as a conversion hub.
func (*ClusterPodPlacementConfig) PluginsEnabled ¶
func (c *ClusterPodPlacementConfig) PluginsEnabled(plugin common.Plugin) bool
func (*ClusterPodPlacementConfig) SetupWebhookWithManager ¶
func (c *ClusterPodPlacementConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
type ClusterPodPlacementConfigList ¶
type ClusterPodPlacementConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterPodPlacementConfig `json:"items"`
}
ClusterPodPlacementConfigList contains a list of ClusterPodPlacementConfig
func (*ClusterPodPlacementConfigList) DeepCopy ¶
func (in *ClusterPodPlacementConfigList) DeepCopy() *ClusterPodPlacementConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodPlacementConfigList.
func (*ClusterPodPlacementConfigList) DeepCopyInto ¶
func (in *ClusterPodPlacementConfigList) DeepCopyInto(out *ClusterPodPlacementConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodPlacementConfigList) DeepCopyObject ¶
func (in *ClusterPodPlacementConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPodPlacementConfigSpec ¶
type ClusterPodPlacementConfigSpec struct {
// LogVerbosity is the log level for the pod placement components.
// Valid values are: "Normal", "Debug", "Trace", "TraceAll".
// Defaults to "Normal".
// +optional
// +kubebuilder:default=Normal
LogVerbosity common.LogVerbosityLevel `json:"logVerbosity,omitempty"`
// NamespaceSelector selects the namespaces where the pod placement operand can process the nodeAffinity
// of the pods. If left empty, all the namespaces are considered.
// The default sample allows to exclude all the namespaces where the
// label "multiarch.openshift.io/exclude-pod-placement" exists.
// +optional
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
// Plugins defines the configurable plugins for this component.
// This field is optional and will be omitted from the output if not set.
// +optional
Plugins *plugins.Plugins `json:"plugins,omitempty"`
// FallbackArchitecture defines the architecture to use if the image inspector cannot determine the image's architecture.
// If configured, the PodPlacementController will set the node affinity of the pod to the fallback architecture
// if the image inspector cannot determine the image's architecture.
// +optional
// +kubebuilder:default=""
// +kubebuilder:validation:Enum=arm64;amd64;ppc64le;s390x;""
FallbackArchitecture string `json:"fallbackArchitecture,omitempty"`
}
ClusterPodPlacementConfigSpec defines the desired state of ClusterPodPlacementConfig
func (*ClusterPodPlacementConfigSpec) DeepCopy ¶
func (in *ClusterPodPlacementConfigSpec) DeepCopy() *ClusterPodPlacementConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodPlacementConfigSpec.
func (*ClusterPodPlacementConfigSpec) DeepCopyInto ¶
func (in *ClusterPodPlacementConfigSpec) DeepCopyInto(out *ClusterPodPlacementConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPodPlacementConfigStatus ¶
type ClusterPodPlacementConfigStatus struct {
// Conditions represents the latest available observations of a ClusterPodPlacementConfig's current state.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// contains filtered or unexported fields
}
ClusterPodPlacementConfigStatus defines the observed state of ClusterPodPlacementConfig
func (*ClusterPodPlacementConfigStatus) Build ¶
func (s *ClusterPodPlacementConfigStatus) Build( podPlacementControllerAvailable, podPlacementWebhookAvailable, podPlacementControllerUpToDate, podPlacementWebhookUpToDate, mutatingWebhookConfigurationAvailable, deprovisioning bool)
Build sets the conditions in the ClusterPodPlacementConfig object. The build Conditions are:
- Degraded: if some components are not available (no replicas) and the object is not deprovisioning
- Deprovisioning: if the object is being deleted
- MutatingWebhookConfigurationNotAvailable: if the mutating webhook configuration does not exist
- PodPlacementControllerNotReady: if the pod placement controller is not available or up-to-date
- PodPlacementWebhookNotReady: if the pod placement webhook is not available or up-to-date
- Progressing: if the object is not deprovisioning and some of the components are not up-to-date.
- Available: if all the components are available to serve the requests and reconcile node affinities (at least one replica).
func (*ClusterPodPlacementConfigStatus) CanDeployMutatingWebhook ¶
func (s *ClusterPodPlacementConfigStatus) CanDeployMutatingWebhook() bool
func (*ClusterPodPlacementConfigStatus) DeepCopy ¶
func (in *ClusterPodPlacementConfigStatus) DeepCopy() *ClusterPodPlacementConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodPlacementConfigStatus.
func (*ClusterPodPlacementConfigStatus) DeepCopyInto ¶
func (in *ClusterPodPlacementConfigStatus) DeepCopyInto(out *ClusterPodPlacementConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodPlacementConfigStatus) IsDegraded ¶
func (s *ClusterPodPlacementConfigStatus) IsDegraded() bool
func (*ClusterPodPlacementConfigStatus) IsDeprovisioning ¶
func (s *ClusterPodPlacementConfigStatus) IsDeprovisioning() bool
func (*ClusterPodPlacementConfigStatus) IsMutatingWebhookConfigurationNotAvailable ¶
func (s *ClusterPodPlacementConfigStatus) IsMutatingWebhookConfigurationNotAvailable() bool
func (*ClusterPodPlacementConfigStatus) IsPodPlacementControllerNotReady ¶
func (s *ClusterPodPlacementConfigStatus) IsPodPlacementControllerNotReady() bool
func (*ClusterPodPlacementConfigStatus) IsPodPlacementWebhookNotReady ¶
func (s *ClusterPodPlacementConfigStatus) IsPodPlacementWebhookNotReady() bool
func (*ClusterPodPlacementConfigStatus) IsProgressing ¶
func (s *ClusterPodPlacementConfigStatus) IsProgressing() bool
func (*ClusterPodPlacementConfigStatus) IsReady ¶
func (s *ClusterPodPlacementConfigStatus) IsReady() bool
type ClusterPodPlacementConfigValidator ¶
ClusterPodPlacementConfigValidator validates ClusterPodPlacementConfig resources +kubebuilder:object:generate=false
func (*ClusterPodPlacementConfigValidator) ValidateCreate ¶
func (*ClusterPodPlacementConfigValidator) ValidateDelete ¶
func (*ClusterPodPlacementConfigValidator) ValidateUpdate ¶
type ENoExecEvent ¶
type ENoExecEvent struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ENoExecEventSpec `json:"spec,omitempty"`
Status ENoExecEventStatus `json:"status,omitempty"`
}
ENoExecEvent is the Schema for the enoexecevents API +kubebuilder:printcolumn:name=NodeName,JSONPath=.status.nodeName,type=string +kubebuilder:printcolumn:name=PodName,JSONPath=.status.podName,type=string +kubebuilder:printcolumn:name=PodNamespace,JSONPath=.status.podNamespace,type=string +kubebuilder:printcolumn:name=ContainerID,JSONPath=.status.containerID,type=string
func (*ENoExecEvent) DeepCopy ¶
func (in *ENoExecEvent) DeepCopy() *ENoExecEvent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENoExecEvent.
func (*ENoExecEvent) DeepCopyInto ¶
func (in *ENoExecEvent) DeepCopyInto(out *ENoExecEvent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ENoExecEvent) DeepCopyObject ¶
func (in *ENoExecEvent) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ENoExecEventList ¶
type ENoExecEventList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ENoExecEvent `json:"items"`
}
ENoExecEventList contains a list of ENoExecEvent
func (*ENoExecEventList) DeepCopy ¶
func (in *ENoExecEventList) DeepCopy() *ENoExecEventList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENoExecEventList.
func (*ENoExecEventList) DeepCopyInto ¶
func (in *ENoExecEventList) DeepCopyInto(out *ENoExecEventList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ENoExecEventList) DeepCopyObject ¶
func (in *ENoExecEventList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ENoExecEventSpec ¶
type ENoExecEventSpec struct {
}
ENoExecEventSpec defines the desired state of ENoExecEvent
func (*ENoExecEventSpec) DeepCopy ¶
func (in *ENoExecEventSpec) DeepCopy() *ENoExecEventSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENoExecEventSpec.
func (*ENoExecEventSpec) DeepCopyInto ¶
func (in *ENoExecEventSpec) DeepCopyInto(out *ENoExecEventSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ENoExecEventStatus ¶
type ENoExecEventStatus struct {
// NodeName must follow the RFC 1123 DNS subdomain format.
// - Max length: 253 characters
// - Consists of lowercase letters, digits, hyphens (`-`), and dots (`.`)
// - Must start and end with an alphanumeric character
// Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names
// https://github.com/kubernetes/kubernetes/blob/b4de8bc1b1095d8f465995521a6986e201812342/pkg/apis/core/validation/validation.go#L273
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
NodeName string `json:"nodeName,omitempty"`
// PodName must follow the RFC 1123 DNS subdomain format:
// - Max length: 253 characters
// - Characters: lowercase letters, digits, hyphens (`-`), and dots (`.`)
// - Must start and end with an alphanumeric character
// Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names
// https://github.com/kubernetes/kubernetes/blob/b4de8bc1b1095d8f465995521a6986e201812342/pkg/apis/core/validation/validation.go#L257
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
PodName string `json:"podName,omitempty"`
// PodNamespace must follow the RFC 1123 DNS label format.
// - Max length: 63 characters
// - Characters: lowercase letters, digits, and hyphens ('-')
// - Must start and end with an alphanumeric character
// Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names
// https://github.com/kubernetes/kubernetes/blob/5be5fd022920e0aa77e29792fffbb5f3690547b3/staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go#L63
// +kubebuilder:validation:MaxLength=63
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
PodNamespace string `json:"podNamespace,omitempty"`
// ContainerID must be a runtime-prefixed 64-character hexadecimal string.
// Example: containerd://<64-hex-chars>
// Ref: https://github.com/kubernetes/kubernetes/blob/02eb7d424ad5ccf4f00863fe861f165be0d491da/pkg/apis/core/types.go#L2875
// https://github.com/elastic/apm/blob/c7655441bb5f15db5ddbd7f4b60cb0735758d44d/specs/agents/metadata.md?plain=1#L111
// +kubebuilder:validation:Pattern=`^.+://[a-f0-9]{64}$`
ContainerID string `json:"containerID,omitempty"`
}
ENoExecEventStatus defines the observed state of ENoExecEvent
func (*ENoExecEventStatus) DeepCopy ¶
func (in *ENoExecEventStatus) DeepCopy() *ENoExecEventStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ENoExecEventStatus.
func (*ENoExecEventStatus) DeepCopyInto ¶
func (in *ENoExecEventStatus) DeepCopyInto(out *ENoExecEventStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodPlacementConfig ¶ added in v1.3.0
type PodPlacementConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PodPlacementConfigSpec `json:"spec"`
Status PodPlacementConfigStatus `json:"status,omitempty"`
}
PodPlacementConfig defines the configuration for the architecture aware pod placement operand in a given namespace for a subset of its pods based on the provided labelSelector. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:path=podplacementconfigs,scope=Namespaced
func (*PodPlacementConfig) DeepCopy ¶ added in v1.3.0
func (in *PodPlacementConfig) DeepCopy() *PodPlacementConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPlacementConfig.
func (*PodPlacementConfig) DeepCopyInto ¶ added in v1.3.0
func (in *PodPlacementConfig) DeepCopyInto(out *PodPlacementConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPlacementConfig) DeepCopyObject ¶ added in v1.3.0
func (in *PodPlacementConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodPlacementConfig) PluginsEnabled ¶ added in v1.3.0
func (p *PodPlacementConfig) PluginsEnabled(plugin common.Plugin) bool
PluginsEnabled checks if a specific plugin is enabled.
func (*PodPlacementConfig) ValidatePriorityNew ¶ added in v1.3.0
func (p *PodPlacementConfig) ValidatePriorityNew(list runtime.Object) (bool, error)
ValidatePriorityNew checks whether the Priority value for a new object is valid
func (*PodPlacementConfig) ValidatePriorityUpdate ¶ added in v1.3.0
func (p *PodPlacementConfig) ValidatePriorityUpdate(old *PodPlacementConfig, list runtime.Object) (bool, error)
ValidatePriorityUpdate checks whether the updated Priority value is valid
type PodPlacementConfigList ¶ added in v1.3.0
type PodPlacementConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PodPlacementConfig `json:"items"`
}
PodPlacementConfigList contains a list of PodPlacementConfig
func (*PodPlacementConfigList) DeepCopy ¶ added in v1.3.0
func (in *PodPlacementConfigList) DeepCopy() *PodPlacementConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPlacementConfigList.
func (*PodPlacementConfigList) DeepCopyInto ¶ added in v1.3.0
func (in *PodPlacementConfigList) DeepCopyInto(out *PodPlacementConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPlacementConfigList) DeepCopyObject ¶ added in v1.3.0
func (in *PodPlacementConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodPlacementConfigSpec ¶ added in v1.3.0
type PodPlacementConfigSpec struct {
// labelSelector selects the pods that the pod placement operand should process according to the other specs provided in the PodPlacementConfig object.
// of the pods. If left empty, all the pods are considered.
// +optional
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
// Plugins defines the configurable plugins for this component.
// This field is required.
// +kubebuilder:validation:Required
Plugins *plugins.LocalPlugins `json:"plugins"`
// Priority defines the priority of the PodPlacementConfig and only accepts values in the range 0-255.
// This field is optional and will default to 0 if not set.
// +optional
// +kubebuilder:default:=0
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=255
Priority uint8 `json:"priority"`
}
PodPlacementConfigSpec defines the desired state of PodPlacementConfig
func (*PodPlacementConfigSpec) DeepCopy ¶ added in v1.3.0
func (in *PodPlacementConfigSpec) DeepCopy() *PodPlacementConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPlacementConfigSpec.
func (*PodPlacementConfigSpec) DeepCopyInto ¶ added in v1.3.0
func (in *PodPlacementConfigSpec) DeepCopyInto(out *PodPlacementConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodPlacementConfigStatus ¶ added in v1.3.0
type PodPlacementConfigStatus struct {
}
PodPlacementConfigStatus defines the observed state of PodPlacementConfig
func (*PodPlacementConfigStatus) DeepCopy ¶ added in v1.3.0
func (in *PodPlacementConfigStatus) DeepCopy() *PodPlacementConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPlacementConfigStatus.
func (*PodPlacementConfigStatus) DeepCopyInto ¶ added in v1.3.0
func (in *PodPlacementConfigStatus) DeepCopyInto(out *PodPlacementConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.