Promote StatefulSet Replica scaling

This commit is contained in:
Caleb Woodbine 2019-07-15 02:02:39 +00:00
parent 932487c744
commit a062367251
2 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,7 @@ test/e2e/apps/statefulset.go: "should perform canary updates and phased rolling
test/e2e/apps/statefulset.go: "Scaling should happen in predictable order and halt if any stateful pod is unhealthy" test/e2e/apps/statefulset.go: "Scaling should happen in predictable order and halt if any stateful pod is unhealthy"
test/e2e/apps/statefulset.go: "Burst scaling should run to completion even with unhealthy pods" test/e2e/apps/statefulset.go: "Burst scaling should run to completion even with unhealthy pods"
test/e2e/apps/statefulset.go: "Should recreate evicted statefulset" test/e2e/apps/statefulset.go: "Should recreate evicted statefulset"
test/e2e/apps/statefulset.go: "should have a working scale subresource"
test/e2e/auth/service_accounts.go: "should mount an API token into pods" test/e2e/auth/service_accounts.go: "should mount an API token into pods"
test/e2e/auth/service_accounts.go: "should allow opting out of API token automount" test/e2e/auth/service_accounts.go: "should allow opting out of API token automount"
test/e2e/common/configmap.go: "should be consumable via environment variable" test/e2e/common/configmap.go: "should be consumable via environment variable"

View File

@ -25,7 +25,7 @@ import (
"github.com/onsi/ginkgo" "github.com/onsi/ginkgo"
"github.com/onsi/gomega" "github.com/onsi/gomega"
appsv1 "k8s.io/api/apps/v1" appsv1 "k8s.io/api/apps/v1"
"k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
klabels "k8s.io/apimachinery/pkg/labels" klabels "k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/types"
@ -762,7 +762,14 @@ var _ = SIGDescribe("StatefulSet", func() {
}, e2esset.StatefulPodTimeout, 2*time.Second).Should(gomega.BeNil()) }, e2esset.StatefulPodTimeout, 2*time.Second).Should(gomega.BeNil())
}) })
ginkgo.It("should have a working scale subresource", func() { /*
Release : v1.16
Testname: StatefulSet resource Replica scaling
Description: Create a StatefulSet resource.
Newly created StatefulSet resource MUST have a scale of one.
Bring the scale of the StatefulSet resource up to two. StatefulSet scale MUST be at two replicas.
*/
framework.ConformanceIt("should have a working scale subresource", func() {
ginkgo.By("Creating statefulset " + ssName + " in namespace " + ns) ginkgo.By("Creating statefulset " + ssName + " in namespace " + ns)
ss := e2esset.NewStatefulSet(ssName, ns, headlessSvcName, 1, nil, nil, labels) ss := e2esset.NewStatefulSet(ssName, ns, headlessSvcName, 1, nil, nil, labels)
e2esset.SetHTTPProbe(ss) e2esset.SetHTTPProbe(ss)