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
40907930
Commit
40907930
authored
Dec 15, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the kubemark fix
parent
10b39d9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
common.sh
test/kubemark/common.sh
+4
-4
start-kubemark.sh
test/kubemark/start-kubemark.sh
+3
-2
No files found.
test/kubemark/common.sh
View file @
40907930
...
@@ -22,12 +22,12 @@ source "${KUBE_ROOT}/cluster/lib/util.sh"
...
@@ -22,12 +22,12 @@ source "${KUBE_ROOT}/cluster/lib/util.sh"
# what what is default in hack/lib/etcd.sh
# what what is default in hack/lib/etcd.sh
# To avoid it, if it is empty, we set it to 'avoid-overwrite' and
# To avoid it, if it is empty, we set it to 'avoid-overwrite' and
# clean it after that.
# clean it after that.
if
[
-z
"
${
ETCD_
IMAGE
}
"
]
;
then
if
[
-z
"
${
ETCD_
VERSION
:-
}
"
]
;
then
ETCD_
IMAGE
=
"avoid-overwrite"
ETCD_
VERSION
=
"avoid-overwrite"
fi
fi
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
if
[
"
${
ETCD_
IMAGE
}
"
==
"avoid-overwrite"
]
;
then
if
[
"
${
ETCD_
VERSION
:-
}
"
==
"avoid-overwrite"
]
;
then
ETCD_
IMAGE
=
""
ETCD_
VERSION
=
""
fi
fi
detect-project &> /dev/null
detect-project &> /dev/null
...
...
test/kubemark/start-kubemark.sh
View file @
40907930
...
@@ -29,7 +29,7 @@ INSTANCE_PREFIX="${INSTANCE_PREFIX:-}"
...
@@ -29,7 +29,7 @@ INSTANCE_PREFIX="${INSTANCE_PREFIX:-}"
SERVICE_CLUSTER_IP_RANGE="
${
SERVICE_CLUSTER_IP_RANGE
:-}
"
SERVICE_CLUSTER_IP_RANGE="
${
SERVICE_CLUSTER_IP_RANGE
:-}
"
# Etcd related variables.
# Etcd related variables.
ETCD_IMAGE="
${
ETCD_IMAGE
:-}
"
ETCD_IMAGE="
${
ETCD_IMAGE
:-
2
.2.1
}
"
ETCD_VERSION="
${
ETCD_VERSION
:-}
"
ETCD_VERSION="
${
ETCD_VERSION
:-}
"
# Controller-manager related variables.
# Controller-manager related variables.
...
@@ -49,6 +49,8 @@ CUSTOM_ADMISSION_PLUGINS="${CUSTOM_ADMISSION_PLUGINS:-NamespaceLifecycle,LimitRa
...
@@ -49,6 +49,8 @@ CUSTOM_ADMISSION_PLUGINS="${CUSTOM_ADMISSION_PLUGINS:-NamespaceLifecycle,LimitRa
EOF
EOF
}
}
writeEnvironmentFile
MAKE_DIR
=
"
${
KUBE_ROOT
}
/cluster/images/kubemark"
MAKE_DIR
=
"
${
KUBE_ROOT
}
/cluster/images/kubemark"
KUBEMARK_BIN
=
"
$(
kube::util::find-binary-for-platform kubemark linux/amd64
)
"
KUBEMARK_BIN
=
"
$(
kube::util::find-binary-for-platform kubemark linux/amd64
)
"
...
@@ -154,7 +156,6 @@ gcloud compute ssh --zone="${ZONE}" --project="${PROJECT}" "${MASTER_NAME}" \
...
@@ -154,7 +156,6 @@ gcloud compute ssh --zone="${ZONE}" --project="${PROJECT}" "${MASTER_NAME}" \
sudo bash -c
\"
echo
\"
${
KUBE_PROXY_TOKEN
}
,kube_proxy,kube_proxy
\"
>> /srv/kubernetes/known_tokens.csv
\"
&&
\
sudo bash -c
\"
echo
\"
${
KUBE_PROXY_TOKEN
}
,kube_proxy,kube_proxy
\"
>> /srv/kubernetes/known_tokens.csv
\"
&&
\
sudo bash -c
\"
echo
${
password
}
,admin,admin > /srv/kubernetes/basic_auth.csv
\"
"
sudo bash -c
\"
echo
${
password
}
,admin,admin > /srv/kubernetes/basic_auth.csv
\"
"
writeEnvironmentFile
gcloud compute copy-files
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
gcloud compute copy-files
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
"
${
SERVER_BINARY_TAR
}
"
\
"
${
SERVER_BINARY_TAR
}
"
\
...
...
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