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
6ce59dd1
Unverified
Commit
6ce59dd1
authored
Jan 19, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72584 from xing-yang/local_cluster
Install CRD's in local cluster
parents
3ebbbda3
36030137
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+20
-0
No files found.
hack/local-up-cluster.sh
View file @
6ce59dd1
...
@@ -961,6 +961,18 @@ function create_storage_class {
...
@@ -961,6 +961,18 @@ function create_storage_class {
fi
fi
}
}
create_csi_crd() {
echo "
create_csi_crd
$1
"
YAML_FILE=
${
KUBE_ROOT
}
/cluster/addons/storage-crds/
$1
.yaml
if [ -e
$YAML_FILE
]; then
echo "
Create
$1
crd
"
${
KUBECTL
}
--kubeconfig="
${
CERT_DIR
}
/admin.kubeconfig
" create -f
$YAML_FILE
else
echo "
No
$1
available.
"
fi
}
function print_success {
function print_success {
if [[ "
${
START_MODE
}
" != "
kubeletonly
" ]]; then
if [[ "
${
START_MODE
}
" != "
kubeletonly
" ]]; then
if [[ "
${
ENABLE_DAEMON
}
" = false ]]; then
if [[ "
${
ENABLE_DAEMON
}
" = false ]]; then
...
@@ -1105,6 +1117,14 @@ if [[ "${DEFAULT_STORAGE_CLASS}" = "true" ]]; then
...
@@ -1105,6 +1117,14 @@ if [[ "${DEFAULT_STORAGE_CLASS}" = "true" ]]; then
create_storage_class
create_storage_class
fi
fi
if [[ "
${
FEATURE_GATES
:-}
" == "
AllAlpha
=
true
" || "
${
FEATURE_GATES
:-}
" =~ "
CSIDriverRegistry
=
true
" ]]; then
create_csi_crd "
csidriver
"
fi
if [[ "
${
FEATURE_GATES
:-}
" == "
AllAlpha
=
true
" || "
${
FEATURE_GATES
:-}
" =~ "
CSINodeInfo
=
true
" ]]; then
create_csi_crd "
csinodeinfo
"
fi
print_success
print_success
if [[ "
${
ENABLE_DAEMON
}
" = false ]]; then
if [[ "
${
ENABLE_DAEMON
}
" = false ]]; then
...
...
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