mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 16:07:29 +00:00
generated
Kubernetes-commit: 3e3912467a0d7b00ec8a5231da3603b3aa31337d
This commit is contained in:
parent
acc9fa7e04
commit
f1c80d7a4f
@ -10610,6 +10610,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: selector
|
- name: selector
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
||||||
|
- name: unhealthyPodEvictionPolicy
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
- name: io.k8s.api.policy.v1.PodDisruptionBudgetStatus
|
- name: io.k8s.api.policy.v1.PodDisruptionBudgetStatus
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -10751,6 +10754,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: selector
|
- name: selector
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
||||||
|
- name: unhealthyPodEvictionPolicy
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
- name: io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus
|
- name: io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
policyv1 "k8s.io/api/policy/v1"
|
||||||
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
@ -26,9 +27,10 @@ import (
|
|||||||
// PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use
|
// PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodDisruptionBudgetSpecApplyConfiguration struct {
|
type PodDisruptionBudgetSpecApplyConfiguration struct {
|
||||||
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
|
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
|
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
|
||||||
|
UnhealthyPodEvictionPolicy *policyv1.UnhealthyPodEvictionPolicyType `json:"unhealthyPodEvictionPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodDisruptionBudgetSpecApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetSpec type for use with
|
// PodDisruptionBudgetSpecApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetSpec type for use with
|
||||||
@ -60,3 +62,11 @@ func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable(value int
|
|||||||
b.MaxUnavailable = &value
|
b.MaxUnavailable = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithUnhealthyPodEvictionPolicy sets the UnhealthyPodEvictionPolicy field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the UnhealthyPodEvictionPolicy field is set to the value of the last call.
|
||||||
|
func (b *PodDisruptionBudgetSpecApplyConfiguration) WithUnhealthyPodEvictionPolicy(value policyv1.UnhealthyPodEvictionPolicyType) *PodDisruptionBudgetSpecApplyConfiguration {
|
||||||
|
b.UnhealthyPodEvictionPolicy = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
v1beta1 "k8s.io/api/policy/v1beta1"
|
||||||
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
@ -26,9 +27,10 @@ import (
|
|||||||
// PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use
|
// PodDisruptionBudgetSpecApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodDisruptionBudgetSpecApplyConfiguration struct {
|
type PodDisruptionBudgetSpecApplyConfiguration struct {
|
||||||
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
|
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
|
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
|
||||||
|
UnhealthyPodEvictionPolicy *v1beta1.UnhealthyPodEvictionPolicyType `json:"unhealthyPodEvictionPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodDisruptionBudgetSpecApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetSpec type for use with
|
// PodDisruptionBudgetSpecApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetSpec type for use with
|
||||||
@ -60,3 +62,11 @@ func (b *PodDisruptionBudgetSpecApplyConfiguration) WithMaxUnavailable(value int
|
|||||||
b.MaxUnavailable = &value
|
b.MaxUnavailable = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithUnhealthyPodEvictionPolicy sets the UnhealthyPodEvictionPolicy field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the UnhealthyPodEvictionPolicy field is set to the value of the last call.
|
||||||
|
func (b *PodDisruptionBudgetSpecApplyConfiguration) WithUnhealthyPodEvictionPolicy(value v1beta1.UnhealthyPodEvictionPolicyType) *PodDisruptionBudgetSpecApplyConfiguration {
|
||||||
|
b.UnhealthyPodEvictionPolicy = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user