Merge pull request #124969 from RomanBednar/pv-phase-transition-time-ga

graduate PersistentVolumeLastPhaseTransitionTime to GA in 1.31
This commit is contained in:
Kubernetes Prow Robot
2024-07-11 15:29:19 -07:00
committed by GitHub
14 changed files with 27 additions and 204 deletions

View File

@@ -237,9 +237,6 @@ var (
// Marks a single test that tests pod-to-pod connectivity between every pair of nodes.
NoSNAT = framework.WithFeature(framework.ValidFeatures.Add("NoSNAT"))
// TODO: document the feature (owning SIG, when to use this feature for a test)
PersistentVolumeLastPhaseTransitionTime = framework.WithFeature(framework.ValidFeatures.Add("PersistentVolumeLastPhaseTransitionTime"))
// Owner: sig-network
// Marks a single test that tests cluster DNS performance with many services.
PerformanceDNS = framework.WithFeature(framework.ValidFeatures.Add("PerformanceDNS"))

View File

@@ -34,7 +34,6 @@ import (
"k8s.io/apimachinery/pkg/util/uuid"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/client-go/util/retry"
"k8s.io/kubernetes/test/e2e/feature"
"k8s.io/kubernetes/test/e2e/framework"
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
e2epv "k8s.io/kubernetes/test/e2e/framework/pv"
@@ -213,7 +212,7 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
})
// Create new PV without claim, verify it's in Available state and LastPhaseTransitionTime is set.
f.It("create a PV: test phase transition timestamp is set and phase is Available", feature.PersistentVolumeLastPhaseTransitionTime, func(ctx context.Context) {
f.It("create a PV: test phase transition timestamp is set and phase is Available", func(ctx context.Context) {
pvObj := e2epv.MakePersistentVolume(pvConfig)
pv, err = e2epv.CreatePV(ctx, c, f.Timeouts, pvObj)
framework.ExpectNoError(err)
@@ -232,7 +231,7 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
// Create PV and pre-bound PVC that matches the PV, verify that when PV and PVC bind
// the LastPhaseTransitionTime filed of the PV is updated.
f.It("create a PV and a pre-bound PVC: test phase transition timestamp is set", feature.PersistentVolumeLastPhaseTransitionTime, func(ctx context.Context) {
f.It("create a PV and a pre-bound PVC: test phase transition timestamp is set", func(ctx context.Context) {
pv, pvc, err = e2epv.CreatePVPVC(ctx, c, f.Timeouts, pvConfig, pvcConfig, ns, true)
framework.ExpectNoError(err)
@@ -252,7 +251,7 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
// Create PV and pre-bound PVC that matches the PV, verify that when PV and PVC bind
// the LastPhaseTransitionTime field of the PV is set, then delete the PVC to change PV phase to
// released and validate PV LastPhaseTransitionTime correctly updated timestamp.
f.It("create a PV and a pre-bound PVC: test phase transition timestamp multiple updates", feature.PersistentVolumeLastPhaseTransitionTime, func(ctx context.Context) {
f.It("create a PV and a pre-bound PVC: test phase transition timestamp multiple updates", func(ctx context.Context) {
pv, pvc, err = e2epv.CreatePVPVC(ctx, c, f.Timeouts, pvConfig, pvcConfig, ns, true)
framework.ExpectNoError(err)