82 lines
3.5 KiB
Go
82 lines
3.5 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v1alpha2
|
|
|
|
import (
|
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
|
)
|
|
|
|
// PodGroupStatusApplyConfiguration represents a declarative configuration of the PodGroupStatus type for use
|
|
// with apply.
|
|
//
|
|
// PodGroupStatus represents information about the status of a pod group.
|
|
type PodGroupStatusApplyConfiguration struct {
|
|
// Conditions represent the latest observations of the PodGroup's state.
|
|
//
|
|
// Known condition types:
|
|
// - "PodGroupScheduled": Indicates whether the scheduling requirement has been satisfied.
|
|
// - "DisruptionTarget": Indicates whether the PodGroup is about to be terminated
|
|
// due to disruption such as preemption.
|
|
//
|
|
// Known reasons for the PodGroupScheduled condition:
|
|
// - "Unschedulable": The PodGroup cannot be scheduled due to resource constraints,
|
|
// affinity/anti-affinity rules, or insufficient capacity for the gang.
|
|
// - "SchedulerError": The PodGroup cannot be scheduled due to some internal error
|
|
// that happened during scheduling, for example due to nodeAffinity parsing errors.
|
|
//
|
|
// Known reasons for the DisruptionTarget condition:
|
|
// - "PreemptionByScheduler": The PodGroup was preempted by the scheduler to make room for
|
|
// higher-priority PodGroups or Pods.
|
|
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
|
// Status of resource claims.
|
|
ResourceClaimStatuses []PodGroupResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
|
|
}
|
|
|
|
// PodGroupStatusApplyConfiguration constructs a declarative configuration of the PodGroupStatus type for use with
|
|
// apply.
|
|
func PodGroupStatus() *PodGroupStatusApplyConfiguration {
|
|
return &PodGroupStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithConditions adds the given value to the Conditions field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the Conditions field.
|
|
func (b *PodGroupStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *PodGroupStatusApplyConfiguration {
|
|
for i := range values {
|
|
if values[i] == nil {
|
|
panic("nil value passed to WithConditions")
|
|
}
|
|
b.Conditions = append(b.Conditions, *values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithResourceClaimStatuses adds the given value to the ResourceClaimStatuses field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the ResourceClaimStatuses field.
|
|
func (b *PodGroupStatusApplyConfiguration) WithResourceClaimStatuses(values ...*PodGroupResourceClaimStatusApplyConfiguration) *PodGroupStatusApplyConfiguration {
|
|
for i := range values {
|
|
if values[i] == nil {
|
|
panic("nil value passed to WithResourceClaimStatuses")
|
|
}
|
|
b.ResourceClaimStatuses = append(b.ResourceClaimStatuses, *values[i])
|
|
}
|
|
return b
|
|
}
|