Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
aad6831a
Commit
aad6831a
authored
Nov 18, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test-cmd.sh
parent
8ef32564
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test-cmd.sh
hack/make-rules/test-cmd.sh
+3
-2
No files found.
hack/make-rules/test-cmd.sh
View file @
aad6831a
...
...
@@ -2313,8 +2313,9 @@ __EOF__
kubectl-with-retry rollout resume deployment nginx
"
${
kube_flags
[@]
}
"
# The resumed deployment can now be rolled back
kubectl rollout undo deployment nginx
"
${
kube_flags
[@]
}
"
# Check that the new replica set (nginx-618515232) has all old revisions stored in an annotation
kubectl get rs nginx-618515232
-o
yaml |
grep
"deployment.kubernetes.io/revision-history: 1,3"
# Check that the new replica set has all old revisions stored in an annotation
newrs
=
"
$(
kubectl describe deployment nginx |
grep
NewReplicaSet |
awk
'{print $2}'
)
"
kubectl get rs
"
${
newrs
}
"
-o
yaml |
grep
"deployment.kubernetes.io/revision-history: 1,3"
# Check that trying to watch the status of a superseded revision returns an error
!
kubectl rollout status deployment/nginx
--revision
=
3
cat
hack/testdata/deployment-revision1.yaml |
$SED
"s/name: nginx
$/
name: nginx2/"
| kubectl create
-f
-
"
${
kube_flags
[@]
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment