mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
make update
This commit is contained in:
parent
ae185e9118
commit
294f5c9a42
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -7766,6 +7766,10 @@
|
|||||||
"io.k8s.api.core.v1.PersistentVolumeStatus": {
|
"io.k8s.api.core.v1.PersistentVolumeStatus": {
|
||||||
"description": "PersistentVolumeStatus is the current status of a persistent volume.",
|
"description": "PersistentVolumeStatus is the current status of a persistent volume.",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"lastPhaseTransitionTime": {
|
||||||
|
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
|
||||||
|
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature."
|
||||||
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"description": "message is a human-readable message indicating details about why the volume is in this state.",
|
"description": "message is a human-readable message indicating details about why the volume is in this state.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -4621,6 +4621,14 @@
|
|||||||
"io.k8s.api.core.v1.PersistentVolumeStatus": {
|
"io.k8s.api.core.v1.PersistentVolumeStatus": {
|
||||||
"description": "PersistentVolumeStatus is the current status of a persistent volume.",
|
"description": "PersistentVolumeStatus is the current status of a persistent volume.",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"lastPhaseTransitionTime": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature."
|
||||||
|
},
|
||||||
"message": {
|
"message": {
|
||||||
"description": "message is a human-readable message indicating details about why the volume is in this state.",
|
"description": "message is a human-readable message indicating details about why the volume is in this state.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -5574,6 +5574,7 @@ func autoConvert_v1_PersistentVolumeStatus_To_core_PersistentVolumeStatus(in *v1
|
|||||||
out.Phase = core.PersistentVolumePhase(in.Phase)
|
out.Phase = core.PersistentVolumePhase(in.Phase)
|
||||||
out.Message = in.Message
|
out.Message = in.Message
|
||||||
out.Reason = in.Reason
|
out.Reason = in.Reason
|
||||||
|
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5586,6 +5587,7 @@ func autoConvert_core_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in *co
|
|||||||
out.Phase = v1.PersistentVolumePhase(in.Phase)
|
out.Phase = v1.PersistentVolumePhase(in.Phase)
|
||||||
out.Message = in.Message
|
out.Message = in.Message
|
||||||
out.Reason = in.Reason
|
out.Reason = in.Reason
|
||||||
|
out.LastPhaseTransitionTime = (*metav1.Time)(unsafe.Pointer(in.LastPhaseTransitionTime))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
pkg/apis/core/zz_generated.deepcopy.go
generated
6
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -2928,7 +2928,7 @@ func (in *PersistentVolume) DeepCopyInto(out *PersistentVolume) {
|
|||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
in.Spec.DeepCopyInto(&out.Spec)
|
||||||
out.Status = in.Status
|
in.Status.DeepCopyInto(&out.Status)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3370,6 +3370,10 @@ func (in *PersistentVolumeSpec) DeepCopy() *PersistentVolumeSpec {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *PersistentVolumeStatus) DeepCopyInto(out *PersistentVolumeStatus) {
|
func (in *PersistentVolumeStatus) DeepCopyInto(out *PersistentVolumeStatus) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.LastPhaseTransitionTime != nil {
|
||||||
|
in, out := &in.LastPhaseTransitionTime, &out.LastPhaseTransitionTime
|
||||||
|
*out = (*in).DeepCopy()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
pkg/generated/openapi/zz_generated.openapi.go
generated
8
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -23079,9 +23079,17 @@ func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallbac
|
|||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"lastPhaseTransitionTime": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.",
|
||||||
|
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dependencies: []string{
|
||||||
|
"k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1795
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
1795
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -3187,6 +3187,13 @@ message PersistentVolumeStatus {
|
|||||||
// for machine parsing and tidy display in the CLI.
|
// for machine parsing and tidy display in the CLI.
|
||||||
// +optional
|
// +optional
|
||||||
optional string reason = 3;
|
optional string reason = 3;
|
||||||
|
|
||||||
|
// lastPhaseTransitionTime is the time the phase transitioned from one to another
|
||||||
|
// and automatically resets to current time everytime a volume phase transitions.
|
||||||
|
// This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.
|
||||||
|
// +featureGate=PersistentVolumeLastPhaseTransitionTime
|
||||||
|
// +optional
|
||||||
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastPhaseTransitionTime = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents a Photon Controller persistent disk resource.
|
// Represents a Photon Controller persistent disk resource.
|
||||||
|
@ -1450,6 +1450,7 @@ var map_PersistentVolumeStatus = map[string]string{
|
|||||||
"phase": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase",
|
"phase": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase",
|
||||||
"message": "message is a human-readable message indicating details about why the volume is in this state.",
|
"message": "message is a human-readable message indicating details about why the volume is in this state.",
|
||||||
"reason": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.",
|
"reason": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.",
|
||||||
|
"lastPhaseTransitionTime": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is an alpha field and requires enabling PersistentVolumeLastPhaseTransitionTime feature.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (PersistentVolumeStatus) SwaggerDoc() map[string]string {
|
func (PersistentVolumeStatus) SwaggerDoc() map[string]string {
|
||||||
|
@ -2926,7 +2926,7 @@ func (in *PersistentVolume) DeepCopyInto(out *PersistentVolume) {
|
|||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
in.Spec.DeepCopyInto(&out.Spec)
|
||||||
out.Status = in.Status
|
in.Status.DeepCopyInto(&out.Status)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3368,6 +3368,10 @@ func (in *PersistentVolumeSpec) DeepCopy() *PersistentVolumeSpec {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *PersistentVolumeStatus) DeepCopyInto(out *PersistentVolumeStatus) {
|
func (in *PersistentVolumeStatus) DeepCopyInto(out *PersistentVolumeStatus) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.LastPhaseTransitionTime != nil {
|
||||||
|
in, out := &in.LastPhaseTransitionTime, &out.LastPhaseTransitionTime
|
||||||
|
*out = (*in).DeepCopy()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,6 +304,7 @@
|
|||||||
"status": {
|
"status": {
|
||||||
"phase": "phaseValue",
|
"phase": "phaseValue",
|
||||||
"message": "messageValue",
|
"message": "messageValue",
|
||||||
"reason": "reasonValue"
|
"reason": "reasonValue",
|
||||||
|
"lastPhaseTransitionTime": "2004-01-01T01:01:01Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
@ -232,6 +232,7 @@ spec:
|
|||||||
storagePolicyName: storagePolicyNameValue
|
storagePolicyName: storagePolicyNameValue
|
||||||
volumePath: volumePathValue
|
volumePath: volumePathValue
|
||||||
status:
|
status:
|
||||||
|
lastPhaseTransitionTime: "2004-01-01T01:01:01Z"
|
||||||
message: messageValue
|
message: messageValue
|
||||||
phase: phaseValue
|
phase: phaseValue
|
||||||
reason: reasonValue
|
reason: reasonValue
|
||||||
|
@ -20,6 +20,7 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PersistentVolumeStatusApplyConfiguration represents an declarative configuration of the PersistentVolumeStatus type for use
|
// PersistentVolumeStatusApplyConfiguration represents an declarative configuration of the PersistentVolumeStatus type for use
|
||||||
@ -28,6 +29,7 @@ type PersistentVolumeStatusApplyConfiguration struct {
|
|||||||
Phase *v1.PersistentVolumePhase `json:"phase,omitempty"`
|
Phase *v1.PersistentVolumePhase `json:"phase,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
|
LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PersistentVolumeStatusApplyConfiguration constructs an declarative configuration of the PersistentVolumeStatus type for use with
|
// PersistentVolumeStatusApplyConfiguration constructs an declarative configuration of the PersistentVolumeStatus type for use with
|
||||||
@ -59,3 +61,11 @@ func (b *PersistentVolumeStatusApplyConfiguration) WithReason(value string) *Per
|
|||||||
b.Reason = &value
|
b.Reason = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithLastPhaseTransitionTime sets the LastPhaseTransitionTime 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 LastPhaseTransitionTime field is set to the value of the last call.
|
||||||
|
func (b *PersistentVolumeStatusApplyConfiguration) WithLastPhaseTransitionTime(value metav1.Time) *PersistentVolumeStatusApplyConfiguration {
|
||||||
|
b.LastPhaseTransitionTime = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -5979,6 +5979,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.core.v1.PersistentVolumeStatus
|
- name: io.k8s.api.core.v1.PersistentVolumeStatus
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: lastPhaseTransitionTime
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
- name: message
|
- name: message
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
Loading…
Reference in New Issue
Block a user