mirror of
https://github.com/kubernetes/client-go.git
synced 2026-06-25 11:14:27 +00:00
Compare commits
1 Commits
v0.37.0-al
...
v0.36.0-al
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea4816f0eb |
5
OWNERS
5
OWNERS
@@ -2,6 +2,7 @@
|
||||
|
||||
approvers:
|
||||
- aojea
|
||||
- caesarxuchao
|
||||
- deads2k
|
||||
- liggitt
|
||||
- smarterclayton
|
||||
@@ -11,6 +12,8 @@ approvers:
|
||||
- enj
|
||||
reviewers:
|
||||
- aojea
|
||||
- apelisse
|
||||
- caesarxuchao
|
||||
- deads2k
|
||||
- jpbetz
|
||||
- liggitt
|
||||
@@ -24,6 +27,4 @@ reviewers:
|
||||
labels:
|
||||
- sig/api-machinery
|
||||
emeritus_approvers:
|
||||
- apelisse
|
||||
- caesarxuchao
|
||||
- lavalamp
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# See the OWNERS docs at https://go.k8s.io/owners
|
||||
|
||||
approvers:
|
||||
- apelisse
|
||||
- jpbetz
|
||||
- api-approvers
|
||||
emeritus_approvers:
|
||||
- apelisse
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
||||
type MutatingAdmissionPolicyApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type MutatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
|
||||
type MutatingWebhookConfigurationApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// webhooks is a list of webhooks and the affected resources and operations.
|
||||
|
||||
@@ -30,7 +30,7 @@ type NamedRuleWithOperationsApplyConfiguration struct {
|
||||
// resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||
// RuleWithOperations is a tuple of Operations and Resources.
|
||||
RuleWithOperationsApplyConfiguration `json:""`
|
||||
RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||
}
|
||||
|
||||
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||
|
||||
@@ -35,7 +35,7 @@ type RuleWithOperationsApplyConfiguration struct {
|
||||
Operations []admissionregistrationv1.OperationType `json:"operations,omitempty"`
|
||||
// Rule is embedded, it describes other criteria of the rule, like
|
||||
// APIGroups, APIVersions, Resources, etc.
|
||||
RuleApplyConfiguration `json:""`
|
||||
RuleApplyConfiguration `json:",inline"`
|
||||
}
|
||||
|
||||
// RuleWithOperationsApplyConfiguration constructs a declarative configuration of the RuleWithOperations type for use with
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
|
||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
|
||||
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// webhooks is a list of webhooks and the affected resources and operations.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
||||
type MutatingAdmissionPolicyApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type MutatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -31,7 +31,7 @@ type NamedRuleWithOperationsApplyConfiguration struct {
|
||||
// resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||
// RuleWithOperations is a tuple of Operations and Resources.
|
||||
v1.RuleWithOperationsApplyConfiguration `json:""`
|
||||
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||
}
|
||||
|
||||
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
|
||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
||||
type MutatingAdmissionPolicyApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type MutatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
|
||||
// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.
|
||||
type MutatingWebhookConfigurationApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// webhooks is a list of webhooks and the affected resources and operations.
|
||||
|
||||
@@ -31,7 +31,7 @@ type NamedRuleWithOperationsApplyConfiguration struct {
|
||||
// resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||
// RuleWithOperations is a tuple of Operations and Resources.
|
||||
v1.RuleWithOperationsApplyConfiguration `json:""`
|
||||
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||
}
|
||||
|
||||
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
|
||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicy.
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
// Adding/removing policies, bindings, or params can not affect whether a
|
||||
// given (policy, binding, param) combination is within its own CEL budget.
|
||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
|
||||
// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.
|
||||
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// webhooks is a list of webhooks and the affected resources and operations.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Storage version of a specific resource.
|
||||
type StorageVersionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata.
|
||||
// The name is <group>.<resource>.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -41,7 +41,7 @@ import (
|
||||
// it may be subject to name and representation changes in future releases, and clients should not
|
||||
// depend on its stability. It is primarily for internal use by controllers.
|
||||
type ControllerRevisionApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// DaemonSet represents the configuration of a daemon set.
|
||||
type DaemonSetApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Deployment enables declarative updates for Pods and ReplicaSets.
|
||||
type DeploymentApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ReplicaSet ensures that a specified number of pod replicas are running at any given time.
|
||||
type ReplicaSetApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// If the Labels of a ReplicaSet are empty, they are defaulted to
|
||||
// be the same as the Pod(s) that the ReplicaSet manages.
|
||||
// Standard object's metadata.
|
||||
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
// The StatefulSet guarantees that a given network identity will always
|
||||
// map to the same storage identity.
|
||||
type StatefulSetApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -43,7 +43,7 @@ import (
|
||||
// it may be subject to name and representation changes in future releases, and clients should not
|
||||
// depend on its stability. It is primarily for internal use by controllers.
|
||||
type ControllerRevisionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// more information.
|
||||
// Deployment enables declarative updates for Pods and ReplicaSets.
|
||||
type DeploymentApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// Specification of the desired behavior of the Deployment.
|
||||
|
||||
@@ -40,7 +40,7 @@ import (
|
||||
// The StatefulSet guarantees that a given network identity will always
|
||||
// map to the same storage identity.
|
||||
type StatefulSetApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// Spec defines the desired identities of pods in this set.
|
||||
Spec *StatefulSetSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
|
||||
@@ -36,7 +36,7 @@ type StatefulSetSpecApplyConfiguration struct {
|
||||
// TODO: Consider a rename of this field.
|
||||
Replicas *int32 `json:"replicas,omitempty"`
|
||||
// selector is a label query over pods that should match the replica count.
|
||||
// It must match the pod template's labels.
|
||||
// If empty, defaulted to labels on the pod template.
|
||||
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||
// template is the object that describes the pod that will be created if
|
||||
|
||||
@@ -43,7 +43,7 @@ import (
|
||||
// it may be subject to name and representation changes in future releases, and clients should not
|
||||
// depend on its stability. It is primarily for internal use by controllers.
|
||||
type ControllerRevisionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// more information.
|
||||
// DaemonSet represents the configuration of a daemon set.
|
||||
type DaemonSetApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// more information.
|
||||
// Deployment enables declarative updates for Pods and ReplicaSets.
|
||||
type DeploymentApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// Specification of the desired behavior of the Deployment.
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// more information.
|
||||
// ReplicaSet ensures that a specified number of pod replicas are running at any given time.
|
||||
type ReplicaSetApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// If the Labels of a ReplicaSet are empty, they are defaulted to
|
||||
// be the same as the Pod(s) that the ReplicaSet manages.
|
||||
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
//
|
||||
// Scale represents a scaling request for a resource.
|
||||
type ScaleApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
||||
|
||||
@@ -40,7 +40,7 @@ import (
|
||||
// The StatefulSet guarantees that a given network identity will always
|
||||
// map to the same storage identity.
|
||||
type StatefulSetApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// Spec defines the desired identities of pods in this set.
|
||||
Spec *StatefulSetSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
|
||||
@@ -32,8 +32,8 @@ import (
|
||||
//
|
||||
// configuration of a horizontal pod autoscaler.
|
||||
type HorizontalPodAutoscalerApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
||||
Spec *HorizontalPodAutoscalerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1
|
||||
//
|
||||
// specification of a horizontal pod autoscaler.
|
||||
type HorizontalPodAutoscalerSpecApplyConfiguration struct {
|
||||
// scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
|
||||
// reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
|
||||
// and will set the desired number of pods by using its Scale subresource.
|
||||
ScaleTargetRef *CrossVersionObjectReferenceApplyConfiguration `json:"scaleTargetRef,omitempty"`
|
||||
// minReplicas is the lower limit for the number of replicas to which the autoscaler
|
||||
|
||||
@@ -29,8 +29,8 @@ import (
|
||||
//
|
||||
// Scale represents a scaling request for a resource.
|
||||
type ScaleApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
|
||||
Spec *ScaleSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// autoscaler, which automatically manages the replica count of any resource
|
||||
// implementing the scale subresource based on the metrics specified.
|
||||
type HorizontalPodAutoscalerApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata is the standard object metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -42,10 +42,6 @@ type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
||||
// message is a human-readable explanation containing details about
|
||||
// the transition
|
||||
Message *string `json:"message,omitempty"`
|
||||
// observedGeneration represents the .metadata.generation that the condition was set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the instance.
|
||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
||||
@@ -93,11 +89,3 @@ func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithMessage(value s
|
||||
b.Message = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call.
|
||||
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithObservedGeneration(value int64) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
||||
b.ObservedGeneration = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ type MetricStatusApplyConfiguration struct {
|
||||
// Kubernetes, and have special scaling options on top of those available
|
||||
// to normal per-pod metrics using the "pods" source.
|
||||
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
||||
// containerResource refers to a resource metric (such as those specified in
|
||||
// container resource refers to a resource metric (such as those specified in
|
||||
// requests and limits) known to Kubernetes describing a single container in each pod in the
|
||||
// current scale target (e.g. CPU or memory). Such metrics are built in to
|
||||
// Kubernetes, and have special scaling options on top of those available
|
||||
|
||||
@@ -32,7 +32,7 @@ type MetricValueStatusApplyConfiguration struct {
|
||||
// averageValue is the current value of the average of the
|
||||
// metric across all relevant pods (as a quantity)
|
||||
AverageValue *resource.Quantity `json:"averageValue,omitempty"`
|
||||
// averageUtilization is the current value of the average of the
|
||||
// currentAverageUtilization is the current value of the average of the
|
||||
// resource metric across all relevant pods, represented as a percentage of
|
||||
// the requested value of the resource for the pods.
|
||||
AverageUtilization *int32 `json:"averageUtilization,omitempty"`
|
||||
|
||||
@@ -28,7 +28,7 @@ type ObjectMetricStatusApplyConfiguration struct {
|
||||
Metric *MetricIdentifierApplyConfiguration `json:"metric,omitempty"`
|
||||
// current contains the current value for the given metric
|
||||
Current *MetricValueStatusApplyConfiguration `json:"current,omitempty"`
|
||||
// describedObject specifies the descriptions of a object,such as kind,name apiVersion
|
||||
// DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
|
||||
DescribedObject *CrossVersionObjectReferenceApplyConfiguration `json:"describedObject,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// CronJob represents the configuration of a single cron job.
|
||||
type CronJobApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Job represents the configuration of a single job.
|
||||
type JobApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -69,6 +69,9 @@ type JobStatusApplyConfiguration struct {
|
||||
Failed *int32 `json:"failed,omitempty"`
|
||||
// The number of pods which are terminating (in phase Pending or Running
|
||||
// and have a deletionTimestamp).
|
||||
//
|
||||
// This field is beta-level. The job controller populates the field when
|
||||
// the feature gate JobPodReplacementPolicy is enabled (enabled by default).
|
||||
Terminating *int32 `json:"terminating,omitempty"`
|
||||
// completedIndexes holds the completed indexes when .spec.completionMode =
|
||||
// "Indexed" in a text format. The indexes are represented as decimal integers
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// CronJob represents the configuration of a single cron job.
|
||||
type CronJobApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -41,7 +41,7 @@ import (
|
||||
// (with the "kubernetes.io/kube-apiserver-client" signerName),
|
||||
// or to obtain certificates from custom non-Kubernetes signers.
|
||||
type CertificateSigningRequestApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the certificate request, and is immutable after creation.
|
||||
// Only the request, signerName, expirationSeconds, and usages fields can be set on creation.
|
||||
|
||||
@@ -46,7 +46,7 @@ import (
|
||||
// anchors for that signer. Admission control is used to enforce that only users
|
||||
// with permissions on the signer can create or modify the corresponding bundle.
|
||||
type ClusterTrustBundleApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata contains the object metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the signer (if any) and trust anchors.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Describes a certificate signing request
|
||||
type CertificateSigningRequestApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the certificate request, and is immutable after creation.
|
||||
// Only the request, signerName, expirationSeconds, and usages fields can be set on creation.
|
||||
|
||||
@@ -46,7 +46,7 @@ import (
|
||||
// anchors for that signer. Admission control is used to enforce that only users
|
||||
// with permissions on the signer can create or modify the corresponding bundle.
|
||||
type ClusterTrustBundleApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata contains the object metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the signer (if any) and trust anchors.
|
||||
|
||||
@@ -35,7 +35,7 @@ import (
|
||||
//
|
||||
// Kubelets use this API to implement podCertificate projected volumes
|
||||
type PodCertificateRequestApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// metadata contains the object metadata.
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the details about the certificate being requested.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Lease defines a lease concept.
|
||||
type LeaseApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// LeaseCandidate defines a candidate for a Lease object.
|
||||
// Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
|
||||
type LeaseCandidateApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// Lease defines a lease concept.
|
||||
type LeaseApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// LeaseCandidate defines a candidate for a Lease object.
|
||||
// Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
|
||||
type LeaseCandidateApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
||||
// Deprecated: This API is deprecated in v1.19+
|
||||
type ComponentStatusApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ConfigMap holds configuration data for pods to consume.
|
||||
type ConfigMapApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
@@ -54,8 +54,6 @@ type ConfigMapApplyConfiguration struct {
|
||||
// the Data field, this is enforced during validation process.
|
||||
// Using this field will require 1.10+ apiserver and
|
||||
// kubelet.
|
||||
// Note: BinaryData keys are not currently propagated to container env vars
|
||||
// via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used.
|
||||
BinaryData map[string][]byte `json:"binaryData,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -26,10 +26,9 @@ package v1
|
||||
//
|
||||
// The contents of the target ConfigMap's Data field will represent the
|
||||
// key-value pairs as environment variables.
|
||||
// Keys in the BinaryData field are not currently propagated to container env vars.
|
||||
type ConfigMapEnvSourceApplyConfiguration struct {
|
||||
// The ConfigMap to select from.
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// Specify whether the ConfigMap must be defined
|
||||
Optional *bool `json:"optional,omitempty"`
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ package v1
|
||||
// Selects a key from a ConfigMap.
|
||||
type ConfigMapKeySelectorApplyConfiguration struct {
|
||||
// The ConfigMap to select from.
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
// The key to select from the ConfigMap's Data field.
|
||||
// Keys in the BinaryData field are not currently propagated to container env vars.
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// The key to select.
|
||||
Key *string `json:"key,omitempty"`
|
||||
// Specify whether the ConfigMap or its key must be defined
|
||||
Optional *bool `json:"optional,omitempty"`
|
||||
|
||||
@@ -29,7 +29,7 @@ package v1
|
||||
// Note that this is identical to a configmap volume source without the default
|
||||
// mode.
|
||||
type ConfigMapProjectionApplyConfiguration struct {
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// items if unspecified, each key-value pair in the Data field of the referenced
|
||||
// ConfigMap will be projected into the volume as a file whose name is the
|
||||
// key and content is the value. If specified, the listed keys will be
|
||||
|
||||
@@ -28,7 +28,7 @@ package v1
|
||||
// the items element is populated with specific mappings of keys to paths.
|
||||
// ConfigMap volumes support ownership management and SELinux relabeling.
|
||||
type ConfigMapVolumeSourceApplyConfiguration struct {
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// items if unspecified, each key-value pair in the Data field of the referenced
|
||||
// ConfigMap will be projected into the volume as a file whose name is the
|
||||
// key and content is the value. If specified, the listed keys will be
|
||||
|
||||
@@ -49,7 +49,7 @@ import (
|
||||
//
|
||||
// Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.
|
||||
type EndpointsApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -38,7 +38,7 @@ type EphemeralContainerApplyConfiguration struct {
|
||||
// specific to ephemeral containers. Fields in common with Container are in the
|
||||
// following inlined struct so than an EphemeralContainer may easily be converted
|
||||
// to a Container.
|
||||
EphemeralContainerCommonApplyConfiguration `json:""`
|
||||
EphemeralContainerCommonApplyConfiguration `json:",inline"`
|
||||
// If set, the name of the container from PodSpec that this ephemeral container targets.
|
||||
// The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
|
||||
// If not set then the ephemeral container uses the namespaces configured in the Pod spec.
|
||||
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
// continued existence of events with that Reason. Events should be
|
||||
// treated as informative, best-effort, supplemental data.
|
||||
type EventApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// LimitRange sets resource usage limits for each kind of resource in a Namespace.
|
||||
type LimitRangeApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// Namespace provides a scope for Names.
|
||||
// Use of multiple namespaces is optional.
|
||||
type NamespaceApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// Node is a worker node in Kubernetes.
|
||||
// Each node will have a unique identifier in the cache (i.e. in etcd).
|
||||
type NodeApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
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 v1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
resource "k8s.io/apimachinery/pkg/api/resource"
|
||||
)
|
||||
|
||||
// NodeAllocatableResourceClaimStatusApplyConfiguration represents a declarative configuration of the NodeAllocatableResourceClaimStatus type for use
|
||||
// with apply.
|
||||
//
|
||||
// NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.
|
||||
type NodeAllocatableResourceClaimStatusApplyConfiguration struct {
|
||||
// ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
|
||||
ResourceClaimName *string `json:"resourceClaimName,omitempty"`
|
||||
// Containers lists the names of all containers in this pod that reference the claim.
|
||||
Containers []string `json:"containers,omitempty"`
|
||||
// Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
|
||||
Resources map[corev1.ResourceName]resource.Quantity `json:"resources,omitempty"`
|
||||
}
|
||||
|
||||
// NodeAllocatableResourceClaimStatusApplyConfiguration constructs a declarative configuration of the NodeAllocatableResourceClaimStatus type for use with
|
||||
// apply.
|
||||
func NodeAllocatableResourceClaimStatus() *NodeAllocatableResourceClaimStatusApplyConfiguration {
|
||||
return &NodeAllocatableResourceClaimStatusApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithResourceClaimName sets the ResourceClaimName 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 ResourceClaimName field is set to the value of the last call.
|
||||
func (b *NodeAllocatableResourceClaimStatusApplyConfiguration) WithResourceClaimName(value string) *NodeAllocatableResourceClaimStatusApplyConfiguration {
|
||||
b.ResourceClaimName = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithContainers adds the given value to the Containers 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 Containers field.
|
||||
func (b *NodeAllocatableResourceClaimStatusApplyConfiguration) WithContainers(values ...string) *NodeAllocatableResourceClaimStatusApplyConfiguration {
|
||||
for i := range values {
|
||||
b.Containers = append(b.Containers, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithResources puts the entries into the Resources field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, the entries provided by each call will be put on the Resources field,
|
||||
// overwriting an existing map entries in Resources field with the same key.
|
||||
func (b *NodeAllocatableResourceClaimStatusApplyConfiguration) WithResources(entries map[corev1.ResourceName]resource.Quantity) *NodeAllocatableResourceClaimStatusApplyConfiguration {
|
||||
if b.Resources == nil && len(entries) > 0 {
|
||||
b.Resources = make(map[corev1.ResourceName]resource.Quantity, len(entries))
|
||||
}
|
||||
for k, v := range entries {
|
||||
b.Resources[k] = v
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// It is analogous to a node.
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
|
||||
type PersistentVolumeApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// PersistentVolumeClaim is a user's request for and claim to a persistent volume
|
||||
type PersistentVolumeClaimApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -53,8 +53,8 @@ type PersistentVolumeClaimSpecApplyConfiguration struct {
|
||||
// * An existing PVC (PersistentVolumeClaim)
|
||||
// If the provisioner or an external controller can support the specified data source,
|
||||
// it will create a new volume based on the contents of the specified data source.
|
||||
// dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be
|
||||
// copied to dataSource when dataSourceRef.namespace is not specified.
|
||||
// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
|
||||
// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
|
||||
// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
|
||||
DataSource *TypedLocalObjectReferenceApplyConfiguration `json:"dataSource,omitempty"`
|
||||
// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
|
||||
@@ -78,6 +78,7 @@ type PersistentVolumeClaimSpecApplyConfiguration struct {
|
||||
// specified.
|
||||
// * While dataSource only allows local objects, dataSourceRef allows objects
|
||||
// in any namespaces.
|
||||
// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
|
||||
// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
|
||||
DataSourceRef *TypedObjectReferenceApplyConfiguration `json:"dataSourceRef,omitempty"`
|
||||
// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
|
||||
|
||||
@@ -31,7 +31,7 @@ type PersistentVolumeSpecApplyConfiguration struct {
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
|
||||
Capacity *corev1.ResourceList `json:"capacity,omitempty"`
|
||||
// persistentVolumeSource is the actual volume backing the persistent volume.
|
||||
PersistentVolumeSourceApplyConfiguration `json:""`
|
||||
PersistentVolumeSourceApplyConfiguration `json:",inline"`
|
||||
// accessModes contains all ways the volume can be mounted.
|
||||
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
|
||||
AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// Pod is a collection of containers that can run on a host. This resource is created
|
||||
// by clients and scheduled onto hosts.
|
||||
type PodApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -27,14 +27,6 @@ package v1
|
||||
//
|
||||
// It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
|
||||
// Containers that need access to the ResourceClaim reference it with this name.
|
||||
//
|
||||
// When the DRAWorkloadResourceClaims feature gate is enabled and this Pod
|
||||
// belongs to a PodGroup, a PodResourceClaim is matched to a
|
||||
// PodGroupResourceClaim if all of their fields are equal (Name,
|
||||
// ResourceClaimName, and ResourceClaimTemplateName). A matched claim references
|
||||
// a single ResourceClaim shared across all Pods in the PodGroup, reserved for
|
||||
// the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual
|
||||
// Pods.
|
||||
type PodResourceClaimApplyConfiguration struct {
|
||||
// Name uniquely identifies this resource claim inside the pod.
|
||||
// This must be a DNS_LABEL.
|
||||
@@ -54,16 +46,6 @@ type PodResourceClaimApplyConfiguration struct {
|
||||
// generated component, will be used to form a unique name for the
|
||||
// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
|
||||
//
|
||||
// When the DRAWorkloadResourceClaims feature gate is enabled and the pod
|
||||
// belongs to a PodGroup that defines a PodGroupResourceClaim with the same
|
||||
// Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the
|
||||
// ResourceClaim generated for the PodGroup. All pods in the group that
|
||||
// define an equivalent PodResourceClaim matching the
|
||||
// PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same
|
||||
// generated ResourceClaim. ResourceClaims generated for a PodGroup are
|
||||
// owned by the PodGroup and their lifecycles are tied to the PodGroup
|
||||
// instead of any individual pod.
|
||||
//
|
||||
// This field is immutable and no changes will be made to the
|
||||
// corresponding ResourceClaim by the control plane after creating the
|
||||
// ResourceClaim.
|
||||
|
||||
@@ -30,16 +30,9 @@ type PodResourceClaimStatusApplyConfiguration struct {
|
||||
// which implies that the string must be a DNS_LABEL.
|
||||
Name *string `json:"name,omitempty"`
|
||||
// ResourceClaimName is the name of the ResourceClaim that was
|
||||
// generated for the Pod in the namespace of the Pod.
|
||||
//
|
||||
// When the DRAWorkloadResourceClaims feature is enabled and the
|
||||
// corresponding PodResourceClaim matches a PodGroupResourceClaim
|
||||
// made by the Pod's PodGroup, then this is the name of the
|
||||
// ResourceClaim generated and reserved for the PodGroup.
|
||||
//
|
||||
// If this is unset, then generating a ResourceClaim was not
|
||||
// necessary. The pod.spec.resourceClaims entry can be ignored in
|
||||
// this case.
|
||||
// generated for the Pod in the namespace of the Pod. If this is
|
||||
// unset, then generating a ResourceClaim was not necessary. The
|
||||
// pod.spec.resourceClaims entry can be ignored in this case.
|
||||
ResourceClaimName *string `json:"resourceClaimName,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
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 v1
|
||||
|
||||
// PodSchedulingGroupApplyConfiguration represents a declarative configuration of the PodSchedulingGroup type for use
|
||||
// with apply.
|
||||
//
|
||||
// PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to.
|
||||
// The scheduler uses this information to apply workload-aware scheduling semantics.
|
||||
// Exactly one field must be specified.
|
||||
type PodSchedulingGroupApplyConfiguration struct {
|
||||
// PodGroupName specifies the name of the standalone PodGroup object
|
||||
// that represents the runtime instance of this group.
|
||||
// Must be a DNS subdomain.
|
||||
PodGroupName *string `json:"podGroupName,omitempty"`
|
||||
}
|
||||
|
||||
// PodSchedulingGroupApplyConfiguration constructs a declarative configuration of the PodSchedulingGroup type for use with
|
||||
// apply.
|
||||
func PodSchedulingGroup() *PodSchedulingGroupApplyConfiguration {
|
||||
return &PodSchedulingGroupApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithPodGroupName sets the PodGroupName 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 PodGroupName field is set to the value of the last call.
|
||||
func (b *PodSchedulingGroupApplyConfiguration) WithPodGroupName(value string) *PodSchedulingGroupApplyConfiguration {
|
||||
b.PodGroupName = &value
|
||||
return b
|
||||
}
|
||||
@@ -172,8 +172,6 @@ type PodSpecApplyConfiguration struct {
|
||||
EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"`
|
||||
// PreemptionPolicy is the Policy for preempting pods with lower priority.
|
||||
// One of Never, PreemptLowerPriority.
|
||||
// When Priority Admission Controller is enabled, it prevents users from setting
|
||||
// this field. The admission controller populates this field from PriorityClassName.
|
||||
// Defaults to PreemptLowerPriority if unset.
|
||||
PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"`
|
||||
// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
|
||||
@@ -235,6 +233,7 @@ type PodSpecApplyConfiguration struct {
|
||||
// When set to false, a new userns is created for the pod. Setting false is useful for
|
||||
// mitigating container breakout vulnerabilities even allowing users to run their
|
||||
// containers as root without actually having root privileges on the host.
|
||||
// This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
|
||||
HostUsers *bool `json:"hostUsers,omitempty"`
|
||||
// SchedulingGates is an opaque list of values that if specified will block scheduling the pod.
|
||||
// If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the
|
||||
@@ -274,19 +273,14 @@ type PodSpecApplyConfiguration struct {
|
||||
// This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.
|
||||
// Requires the HostnameOverride feature gate to be enabled.
|
||||
HostnameOverride *string `json:"hostnameOverride,omitempty"`
|
||||
// SchedulingGroup provides a reference to the immediate scheduling runtime
|
||||
// grouping object that this Pod belongs to.
|
||||
// This field is used by the scheduler to identify the group and apply the
|
||||
// correct group scheduling policies. The association with a group also
|
||||
// impacts other lifecycle aspects of a Pod that are relevant in a wider context
|
||||
// of scheduling like preemption, resource attachment, etc. If not specified,
|
||||
// the Pod is treated as a single unit in all of these aspects.
|
||||
// The group object referenced by this field may not exist at the time the
|
||||
// Pod is created.
|
||||
// This field is immutable, but a group object with the same name may be
|
||||
// recreated with different policies. Doing this during pod scheduling
|
||||
// WorkloadRef provides a reference to the Workload object that this Pod belongs to.
|
||||
// This field is used by the scheduler to identify the PodGroup and apply the
|
||||
// correct group scheduling policies. The Workload object referenced
|
||||
// by this field may not exist at the time the Pod is created.
|
||||
// This field is immutable, but a Workload object with the same name
|
||||
// may be recreated with different policies. Doing this during pod scheduling
|
||||
// may result in the placement not conforming to the expected policies.
|
||||
SchedulingGroup *PodSchedulingGroupApplyConfiguration `json:"schedulingGroup,omitempty"`
|
||||
WorkloadRef *WorkloadReferenceApplyConfiguration `json:"workloadRef,omitempty"`
|
||||
}
|
||||
|
||||
// PodSpecApplyConfiguration constructs a declarative configuration of the PodSpec type for use with
|
||||
@@ -684,10 +678,10 @@ func (b *PodSpecApplyConfiguration) WithHostnameOverride(value string) *PodSpecA
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSchedulingGroup sets the SchedulingGroup field in the declarative configuration to the given value
|
||||
// WithWorkloadRef sets the WorkloadRef 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 SchedulingGroup field is set to the value of the last call.
|
||||
func (b *PodSpecApplyConfiguration) WithSchedulingGroup(value *PodSchedulingGroupApplyConfiguration) *PodSpecApplyConfiguration {
|
||||
b.SchedulingGroup = value
|
||||
// If called multiple times, the WorkloadRef field is set to the value of the last call.
|
||||
func (b *PodSpecApplyConfiguration) WithWorkloadRef(value *WorkloadReferenceApplyConfiguration) *PodSpecApplyConfiguration {
|
||||
b.WorkloadRef = value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -139,12 +139,6 @@ type PodStatusApplyConfiguration struct {
|
||||
// applied at the pod level if pod-level requests or limits are set in
|
||||
// PodSpec.Resources
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
// NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
|
||||
// that were allocated for this pod through DRA claims. This includes resources currently
|
||||
// reported in v1.Node `status.allocatable` that are not extended resources
|
||||
// (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
|
||||
// Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
|
||||
NodeAllocatableResourceClaimStatuses []NodeAllocatableResourceClaimStatusApplyConfiguration `json:"nodeAllocatableResourceClaimStatuses,omitempty"`
|
||||
}
|
||||
|
||||
// PodStatusApplyConfiguration constructs a declarative configuration of the PodStatus type for use with
|
||||
@@ -347,16 +341,3 @@ func (b *PodStatusApplyConfiguration) WithResources(value *ResourceRequirementsA
|
||||
b.Resources = value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithNodeAllocatableResourceClaimStatuses adds the given value to the NodeAllocatableResourceClaimStatuses 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 NodeAllocatableResourceClaimStatuses field.
|
||||
func (b *PodStatusApplyConfiguration) WithNodeAllocatableResourceClaimStatuses(values ...*NodeAllocatableResourceClaimStatusApplyConfiguration) *PodStatusApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithNodeAllocatableResourceClaimStatuses")
|
||||
}
|
||||
b.NodeAllocatableResourceClaimStatuses = append(b.NodeAllocatableResourceClaimStatuses, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// PodTemplate describes a template for creating copies of a predefined pod.
|
||||
type PodTemplateApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -25,7 +25,7 @@ package v1
|
||||
// alive or ready to receive traffic.
|
||||
type ProbeApplyConfiguration struct {
|
||||
// The action taken to determine the health of a container
|
||||
ProbeHandlerApplyConfiguration `json:""`
|
||||
ProbeHandlerApplyConfiguration `json:",inline"`
|
||||
// Number of seconds after the container has started before liveness probes are initiated.
|
||||
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
||||
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ReplicationController represents the configuration of a replication controller.
|
||||
type ReplicationControllerApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// If the Labels of a ReplicationController are empty, they are defaulted to
|
||||
// be the same as the Pod(s) that the replication controller manages.
|
||||
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
|
||||
@@ -41,9 +41,6 @@ type ResourceHealthApplyConfiguration struct {
|
||||
//
|
||||
// In future we may want to introduce the PermanentlyUnhealthy Status.
|
||||
Health *corev1.ResourceHealthStatus `json:"health,omitempty"`
|
||||
// Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
|
||||
// This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
|
||||
Message *string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// ResourceHealthApplyConfiguration constructs a declarative configuration of the ResourceHealth type for use with
|
||||
@@ -67,11 +64,3 @@ func (b *ResourceHealthApplyConfiguration) WithHealth(value corev1.ResourceHealt
|
||||
b.Health = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithMessage sets the Message 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 Message field is set to the value of the last call.
|
||||
func (b *ResourceHealthApplyConfiguration) WithMessage(value string) *ResourceHealthApplyConfiguration {
|
||||
b.Message = &value
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
//
|
||||
// ResourceQuota sets aggregate quota restrictions enforced per namespace
|
||||
type ResourceQuotaApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
// Secret holds secret data of a certain type. The total bytes of the values in
|
||||
// the Data field must be less than MaxSecretSize bytes.
|
||||
type SecretApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -28,7 +28,7 @@ package v1
|
||||
// key-value pairs as environment variables.
|
||||
type SecretEnvSourceApplyConfiguration struct {
|
||||
// The Secret to select from.
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// Specify whether the Secret must be defined
|
||||
Optional *bool `json:"optional,omitempty"`
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ package v1
|
||||
// SecretKeySelector selects a key of a Secret.
|
||||
type SecretKeySelectorApplyConfiguration struct {
|
||||
// The name of the secret in the pod's namespace to select from.
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// The key of the secret to select from. Must be a valid secret key.
|
||||
Key *string `json:"key,omitempty"`
|
||||
// Specify whether the Secret or its key must be defined
|
||||
|
||||
@@ -28,7 +28,7 @@ package v1
|
||||
// Note that this is identical to a secret volume source without the default
|
||||
// mode.
|
||||
type SecretProjectionApplyConfiguration struct {
|
||||
LocalObjectReferenceApplyConfiguration `json:""`
|
||||
LocalObjectReferenceApplyConfiguration `json:",inline"`
|
||||
// items if unspecified, each key-value pair in the Data field of the referenced
|
||||
// Secret will be projected into the volume as a file whose name is the
|
||||
// key and content is the value. If specified, the listed keys will be
|
||||
|
||||
@@ -83,6 +83,7 @@ type SecurityContextApplyConfiguration struct {
|
||||
// procMount denotes the type of proc mount to use for the containers.
|
||||
// The default value is Default which uses the container runtime defaults for
|
||||
// readonly paths and masked paths.
|
||||
// This requires the ProcMountType feature flag to be enabled.
|
||||
// Note that this field cannot be set when spec.os.name is windows.
|
||||
ProcMount *corev1.ProcMountType `json:"procMount,omitempty"`
|
||||
// The seccomp options to use by this container. If seccomp options are
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
// (for example 3306) that the proxy listens on, and the selector that determines which pods
|
||||
// will answer requests sent through the proxy.
|
||||
type ServiceApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -35,7 +35,7 @@ import (
|
||||
// * a principal that can be authenticated and authorized
|
||||
// * a set of secrets
|
||||
type ServiceAccountApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
|
||||
@@ -30,7 +30,7 @@ type VolumeApplyConfiguration struct {
|
||||
// volumeSource represents the location and type of the mounted volume.
|
||||
// If not specified, the Volume is implied to be an EmptyDir.
|
||||
// This implied behavior is deprecated and will be removed in a future version.
|
||||
VolumeSourceApplyConfiguration `json:""`
|
||||
VolumeSourceApplyConfiguration `json:",inline"`
|
||||
}
|
||||
|
||||
// VolumeApplyConfiguration constructs a declarative configuration of the Volume type for use with
|
||||
|
||||
@@ -49,7 +49,8 @@ type VolumeMountApplyConfiguration struct {
|
||||
//
|
||||
// If this field is not specified, it is treated as an equivalent of Disabled.
|
||||
RecursiveReadOnly *corev1.RecursiveReadOnlyMode `json:"recursiveReadOnly,omitempty"`
|
||||
// Path within the container at which the volume should be mounted.
|
||||
// Path within the container at which the volume should be mounted. Must
|
||||
// not contain ':'.
|
||||
MountPath *string `json:"mountPath,omitempty"`
|
||||
// Path within the volume from which the container's volume should be mounted.
|
||||
// Defaults to "" (volume's root).
|
||||
|
||||
@@ -39,7 +39,7 @@ type VolumeMountStatusApplyConfiguration struct {
|
||||
RecursiveReadOnly *corev1.RecursiveReadOnlyMode `json:"recursiveReadOnly,omitempty"`
|
||||
// volumeStatus represents volume-type-specific status about the mounted
|
||||
// volume.
|
||||
VolumeStatus *VolumeStatusApplyConfiguration `json:"volumeStatus,omitempty"`
|
||||
*VolumeStatusApplyConfiguration `json:"volumeStatus,omitempty"`
|
||||
}
|
||||
|
||||
// VolumeMountStatusApplyConfiguration constructs a declarative configuration of the VolumeMountStatus type for use with
|
||||
@@ -80,10 +80,17 @@ func (b *VolumeMountStatusApplyConfiguration) WithRecursiveReadOnly(value corev1
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeStatus sets the VolumeStatus field in the declarative configuration to the given value
|
||||
// WithImage sets the Image 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 VolumeStatus field is set to the value of the last call.
|
||||
func (b *VolumeMountStatusApplyConfiguration) WithVolumeStatus(value *VolumeStatusApplyConfiguration) *VolumeMountStatusApplyConfiguration {
|
||||
b.VolumeStatus = value
|
||||
// If called multiple times, the Image field is set to the value of the last call.
|
||||
func (b *VolumeMountStatusApplyConfiguration) WithImage(value *ImageVolumeStatusApplyConfiguration) *VolumeMountStatusApplyConfiguration {
|
||||
b.ensureVolumeStatusApplyConfigurationExists()
|
||||
b.VolumeStatusApplyConfiguration.Image = value
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *VolumeMountStatusApplyConfiguration) ensureVolumeStatusApplyConfigurationExists() {
|
||||
if b.VolumeStatusApplyConfiguration == nil {
|
||||
b.VolumeStatusApplyConfiguration = &VolumeStatusApplyConfiguration{}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ type VolumeSourceApplyConfiguration struct {
|
||||
// A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
|
||||
// The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
|
||||
// The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
|
||||
// The volume will be mounted read-only (ro).
|
||||
// The volume will be mounted read-only (ro) and non-executable files (noexec).
|
||||
// Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33.
|
||||
// The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
|
||||
Image *ImageVolumeSourceApplyConfiguration `json:"image,omitempty"`
|
||||
|
||||
74
applyconfigurations/core/v1/workloadreference.go
Normal file
74
applyconfigurations/core/v1/workloadreference.go
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
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 v1
|
||||
|
||||
// WorkloadReferenceApplyConfiguration represents a declarative configuration of the WorkloadReference type for use
|
||||
// with apply.
|
||||
//
|
||||
// WorkloadReference identifies the Workload object and PodGroup membership
|
||||
// that a Pod belongs to. The scheduler uses this information to apply
|
||||
// workload-aware scheduling semantics.
|
||||
type WorkloadReferenceApplyConfiguration struct {
|
||||
// Name defines the name of the Workload object this Pod belongs to.
|
||||
// Workload must be in the same namespace as the Pod.
|
||||
// If it doesn't match any existing Workload, the Pod will remain unschedulable
|
||||
// until a Workload object is created and observed by the kube-scheduler.
|
||||
// It must be a DNS subdomain.
|
||||
Name *string `json:"name,omitempty"`
|
||||
// PodGroup is the name of the PodGroup within the Workload that this Pod
|
||||
// belongs to. If it doesn't match any existing PodGroup within the Workload,
|
||||
// the Pod will remain unschedulable until the Workload object is recreated
|
||||
// and observed by the kube-scheduler. It must be a DNS label.
|
||||
PodGroup *string `json:"podGroup,omitempty"`
|
||||
// PodGroupReplicaKey specifies the replica key of the PodGroup to which this
|
||||
// Pod belongs. It is used to distinguish pods belonging to different replicas
|
||||
// of the same pod group. The pod group policy is applied separately to each replica.
|
||||
// When set, it must be a DNS label.
|
||||
PodGroupReplicaKey *string `json:"podGroupReplicaKey,omitempty"`
|
||||
}
|
||||
|
||||
// WorkloadReferenceApplyConfiguration constructs a declarative configuration of the WorkloadReference type for use with
|
||||
// apply.
|
||||
func WorkloadReference() *WorkloadReferenceApplyConfiguration {
|
||||
return &WorkloadReferenceApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithName sets the Name 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 Name field is set to the value of the last call.
|
||||
func (b *WorkloadReferenceApplyConfiguration) WithName(value string) *WorkloadReferenceApplyConfiguration {
|
||||
b.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPodGroup sets the PodGroup 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 PodGroup field is set to the value of the last call.
|
||||
func (b *WorkloadReferenceApplyConfiguration) WithPodGroup(value string) *WorkloadReferenceApplyConfiguration {
|
||||
b.PodGroup = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPodGroupReplicaKey sets the PodGroupReplicaKey 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 PodGroupReplicaKey field is set to the value of the last call.
|
||||
func (b *WorkloadReferenceApplyConfiguration) WithPodGroupReplicaKey(value string) *WorkloadReferenceApplyConfiguration {
|
||||
b.PodGroupReplicaKey = &value
|
||||
return b
|
||||
}
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
// by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name`
|
||||
// label contains the service's name.
|
||||
type EndpointSliceApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
// Standard object's metadata.
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// addressType specifies the type of address carried by this EndpointSlice.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user