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
816c56b6
Commit
816c56b6
authored
Sep 28, 2018
by
Jean-Francois Chevrette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set default admission plugins on local-up-cluster.sh
parent
7be79684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
local-up-cluster.sh
hack/local-up-cluster.sh
+7
-6
No files found.
hack/local-up-cluster.sh
View file @
816c56b6
...
...
@@ -103,7 +103,11 @@ export KUBE_CACHE_MUTATION_DETECTOR
KUBE_PANIC_WATCH_DECODE_ERROR
=
"
${
KUBE_PANIC_WATCH_DECODE_ERROR
:-
true
}
"
export
KUBE_PANIC_WATCH_DECODE_ERROR
ENABLE_ADMISSION_PLUGINS
=
${
ENABLE_ADMISSION_PLUGINS
:-
""
}
# Default list of admission Controllers to invoke prior to persisting objects in cluster
# The order defined here does not matter.
DEFAULT_ENABLE_ADMISSION_PLUGINS
=
"LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,StorageObjectInUseProtection"
ENABLE_ADMISSION_PLUGINS
=
${
ENABLE_ADMISSION_PLUGINS
:-
"
${
DEFAULT_ENABLE_ADMISSION_PLUGINS
}
"
}
DISABLE_ADMISSION_PLUGINS
=
${
DISABLE_ADMISSION_PLUGINS
:-
""
}
ADMISSION_CONTROL_CONFIG_FILE
=
${
ADMISSION_CONTROL_CONFIG_FILE
:-
""
}
...
...
@@ -507,11 +511,8 @@ function start_apiserver {
RUNTIME_CONFIG+="scheduling.k8s.io/v1alpha1=true"
fi
# Admission Controllers to invoke prior to persisting objects in cluster
#
# The order defined here dose not matter.
ENABLE_ADMISSION_PLUGINS=LimitRanger,ServiceAccount${security_admission},DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,StorageObjectInUseProtection
# Append security_admission plugin
ENABLE_ADMISSION_PLUGINS="${ENABLE_ADMISSION_PLUGINS}${security_admission}"
swagger_arg=""
if [[ "${ENABLE_SWAGGER_UI}" = true ]]; 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