mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Merge pull request #51021 from zjj2wry/scale-selector-all
Automatic merge from submit-queue (batch tested with PRs 51021, 53225, 53094, 53219). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. "fix issue(#49965)kubectl scale also says that it can work based on a label selector or all" **What this PR does / why we need it**: Fixes #49965 #44800 **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
25
hack/testdata/scale-deploy-1.yaml
vendored
Normal file
25
hack/testdata/scale-deploy-1.yaml
vendored
Normal 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
25
hack/testdata/scale-deploy-2.yaml
vendored
Normal 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
25
hack/testdata/scale-deploy-3.yaml
vendored
Normal 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
|
Reference in New Issue
Block a user