This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Description
To check k8s version on deploying time and set valid configuration.
For example, k8s 1.6 and 1.7 supports different admission controls.
So we should set admission controls correctly for each versions.
defaultv16AdmissionControl = "NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,ResourceQuota"
defaultv17AdmissionControl = "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,ResourceQuota"