Add bash test for kubectl scale --selector and --all

This commit is contained in:
zhengjiajin
2017-08-27 15:42:20 +08:00
parent a24be450b2
commit f441de6be8
4 changed files with 94 additions and 0 deletions

25
hack/testdata/scale-deploy-1.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: hello
name: scale-1
spec:
replicas: 1
selector:
matchLabels:
run: hello
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: hello
spec:
containers:
- image: aronchick/hello-node:2.0
imagePullPolicy: IfNotPresent
name: hello

25
hack/testdata/scale-deploy-2.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: hello
name: scale-2
spec:
replicas: 1
selector:
matchLabels:
run: hello
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: hello
spec:
containers:
- image: aronchick/hello-node:2.0
imagePullPolicy: IfNotPresent
name: hello

25
hack/testdata/scale-deploy-3.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
foo: boo
name: scale-3
spec:
replicas: 1
selector:
matchLabels:
run: hello
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: hello
spec:
containers:
- image: aronchick/hello-node:2.0
imagePullPolicy: IfNotPresent
name: hello