mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	flag PersistentVolumeLastPhaseTransitionTime field as beta
This commit is contained in:
		
							
								
								
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							@@ -8453,7 +8453,7 @@
 | 
			
		||||
      "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."
 | 
			
		||||
          "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 a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
 | 
			
		||||
        },
 | 
			
		||||
        "message": {
 | 
			
		||||
          "description": "message is a human-readable message indicating details about why the volume is in this state.",
 | 
			
		||||
 
 | 
			
		||||
@@ -4722,7 +4722,7 @@
 | 
			
		||||
                "$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."
 | 
			
		||||
            "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 a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
 | 
			
		||||
          },
 | 
			
		||||
          "message": {
 | 
			
		||||
            "description": "message is a human-readable message indicating details about why the volume is in this state.",
 | 
			
		||||
 
 | 
			
		||||
@@ -392,7 +392,7 @@ type PersistentVolumeStatus struct {
 | 
			
		||||
	Reason string
 | 
			
		||||
	// 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.
 | 
			
		||||
	// This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).
 | 
			
		||||
	// +featureGate=PersistentVolumeLastPhaseTransitionTime
 | 
			
		||||
	// +optional
 | 
			
		||||
	LastPhaseTransitionTime *metav1.Time
 | 
			
		||||
 
 | 
			
		||||
@@ -544,6 +544,7 @@ const (
 | 
			
		||||
	// owner: @RomanBednar
 | 
			
		||||
	// kep: https://kep.k8s.io/3762
 | 
			
		||||
	// alpha: v1.28
 | 
			
		||||
	// beta: v1.29
 | 
			
		||||
	//
 | 
			
		||||
	// Adds a new field to persistent volumes which holds a timestamp of when the volume last transitioned its phase.
 | 
			
		||||
	PersistentVolumeLastPhaseTransitionTime featuregate.Feature = "PersistentVolumeLastPhaseTransitionTime"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -24581,7 +24581,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallbac
 | 
			
		||||
					},
 | 
			
		||||
					"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.",
 | 
			
		||||
							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 a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).",
 | 
			
		||||
							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
 
 | 
			
		||||
@@ -3352,7 +3352,7 @@ message PersistentVolumeStatus {
 | 
			
		||||
 | 
			
		||||
  // 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.
 | 
			
		||||
  // This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).
 | 
			
		||||
  // +featureGate=PersistentVolumeLastPhaseTransitionTime
 | 
			
		||||
  // +optional
 | 
			
		||||
  optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastPhaseTransitionTime = 4;
 | 
			
		||||
 
 | 
			
		||||
@@ -425,7 +425,7 @@ type PersistentVolumeStatus struct {
 | 
			
		||||
	Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"`
 | 
			
		||||
	// 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.
 | 
			
		||||
	// This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).
 | 
			
		||||
	// +featureGate=PersistentVolumeLastPhaseTransitionTime
 | 
			
		||||
	// +optional
 | 
			
		||||
	LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastPhaseTransitionTime"`
 | 
			
		||||
 
 | 
			
		||||
@@ -1478,7 +1478,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",
 | 
			
		||||
	"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.",
 | 
			
		||||
	"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.",
 | 
			
		||||
	"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 a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (PersistentVolumeStatus) SwaggerDoc() map[string]string {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user