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
e0734425
Commit
e0734425
authored
Oct 13, 2023
by
Brad Davidson
Committed by
Brad Davidson
Oct 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add etcd-only/control-plane-only server test
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
548f8a29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
test-helpers
scripts/test-helpers
+1
-1
test-run-etcd
scripts/test-run-etcd
+11
-0
No files found.
scripts/test-helpers
View file @
e0734425
...
...
@@ -430,7 +430,7 @@ provision-cluster() {
provision-server
timeout
--foreground
120s bash
-c
"wait-for-kubeconfig
$i
"
done
export
KUBECONFIG
=
$TEST_DIR
/servers/
1
/kubeconfig.yaml
export
KUBECONFIG
=
$TEST_DIR
/servers/
${
KUBECONFIG_SERVER
:-
1
}
/kubeconfig.yaml
if
[
$NUM_AGENTS
-gt
0
]
;
then
for
_
in
$(
seq
1
$NUM_AGENTS
)
;
do
...
...
scripts/test-run-etcd
View file @
e0734425
...
...
@@ -38,6 +38,17 @@ LABEL="ETCD-JOIN-BASIC" SERVER_ARGS="" run-test
# --- create a basic cluster to test joining a managed etcd cluster with --agent-token set
LABEL
=
"ETCD-JOIN-AGENTTOKEN"
SERVER_ARGS
=
"--agent-token
${
RANDOM
}${
RANDOM
}${
RANDOM
}
"
run-test
# --- create a cluster with one etcd-only server, one control-plane-only server, and one agent
server-post-hook
()
{
if
[
$1
-eq
1
]
;
then
local
url
=
$(
cat
$TEST_DIR
/servers/1/metadata/url
)
export
SERVER_ARGS
=
"
${
SERVER_ARGS
}
--server
$url
"
fi
}
export
-f
server-post-hook
LABEL
=
"ETCD-SPLIT-ROLE"
NUM_AGENTS
=
1
KUBECONFIG_SERVER
=
2
SERVER_1_ARGS
=
"--cluster-init --disable-apiserver --disable-controller-manager --disable-scheduler"
SERVER_2_ARGS
=
"--disable-etcd"
run-test
# The following tests deploy clusters of mixed versions. The traefik helm chart may not deploy
# correctly until all servers have been upgraded to the same release, so don't wait for it.
all_services
=(
...
...
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