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
db52b4eb
Unverified
Commit
db52b4eb
authored
Mar 22, 2017
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make kubectl replace unconditional
parent
321acf00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
test-cmd-util.sh
hack/make-rules/test-cmd-util.sh
+6
-3
No files found.
hack/make-rules/test-cmd-util.sh
View file @
db52b4eb
...
@@ -666,14 +666,17 @@ run_pod_tests() {
...
@@ -666,14 +666,17 @@ run_pod_tests() {
}
}
}
}
__EOF__
__EOF__
kubectl-with-retry replace
"
${
kube_flags
[@]
}
"
-f
<
(
echo
'{
kubectl replace
-f
-
"
${
kube_flags
[@]
}
"
<<
__EOF__
{
"kind": "Node",
"kind": "Node",
"apiVersion": "v1",
"apiVersion": "v1",
"metadata": {
"metadata": {
"name": "node-v1-test",
"name": "node-v1-test",
"annotations": {"a":"b"}
"annotations": {"a":"b"},
"resourceVersion": "0"
}
}
}'
)
}
__EOF__
# Post-condition: the node command succeeds
# Post-condition: the node command succeeds
kube::test::get_object_assert
"node node-v1-test"
"{{.metadata.annotations.a}}"
'b'
kube::test::get_object_assert
"node node-v1-test"
"{{.metadata.annotations.a}}"
'b'
...
...
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