mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #52299 from ericchiang/revert-csr-signing-duration
Revert "Add cluster up configuration for certificate signing duration."
This commit is contained in:
		@@ -865,11 +865,6 @@ EOF
 | 
			
		||||
    if [ -n "${ETCD_QUORUM_READ:-}" ]; then
 | 
			
		||||
      cat >>$file <<EOF
 | 
			
		||||
ETCD_QUORUM_READ: $(yaml-quote ${ETCD_QUORUM_READ})
 | 
			
		||||
EOF
 | 
			
		||||
    fi
 | 
			
		||||
    if [ -n "${CLUSTER_SIGNING_DURATION:-}" ]; then
 | 
			
		||||
      cat >>$file <<EOF
 | 
			
		||||
CLUSTER_SIGNING_DURATION: $(yaml-quote ${CLUSTER_SIGNING_DURATION})
 | 
			
		||||
EOF
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -314,9 +314,6 @@ ENABLE_PROMETHEUS_TO_SD="${ENABLE_PROMETHEUS_TO_SD:-false}"
 | 
			
		||||
# Optional: Run kube-proxy as a DaemonSet if set to true, run as static pods otherwise.
 | 
			
		||||
KUBE_PROXY_DAEMONSET="${KUBE_PROXY_DAEMONSET:-false}" # true, false
 | 
			
		||||
 | 
			
		||||
# Optional: duration of cluster signed certificates.
 | 
			
		||||
CLUSTER_SIGNING_DURATION="${CLUSTER_SIGNING_DURATION:-}"
 | 
			
		||||
 | 
			
		||||
# Optional: enable pod priority
 | 
			
		||||
ENABLE_POD_PRIORITY="${ENABLE_POD_PRIORITY:-}"
 | 
			
		||||
if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then
 | 
			
		||||
 
 | 
			
		||||
@@ -372,9 +372,6 @@ ENABLE_PROMETHEUS_TO_SD="${ENABLE_PROMETHEUS_TO_SD:-true}"
 | 
			
		||||
# Optional: Run kube-proxy as a DaemonSet if set to true, run as static pods otherwise.
 | 
			
		||||
KUBE_PROXY_DAEMONSET="${KUBE_PROXY_DAEMONSET:-false}" # true, false
 | 
			
		||||
 | 
			
		||||
# Optional: duration of cluster signed certificates.
 | 
			
		||||
CLUSTER_SIGNING_DURATION="${CLUSTER_SIGNING_DURATION:-30m}"
 | 
			
		||||
 | 
			
		||||
# Optional: enable pod priority
 | 
			
		||||
ENABLE_POD_PRIORITY="${ENABLE_POD_PRIORITY:-}"
 | 
			
		||||
if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then
 | 
			
		||||
 
 | 
			
		||||
@@ -1535,10 +1535,6 @@ function start-kube-controller-manager {
 | 
			
		||||
  if [[ -n "${VOLUME_PLUGIN_DIR:-}" ]]; then
 | 
			
		||||
    params+=" --flex-volume-plugin-dir=${VOLUME_PLUGIN_DIR}"
 | 
			
		||||
  fi
 | 
			
		||||
  if [[ -n "${CLUSTER_SIGNING_DURATION:-}" ]]; then
 | 
			
		||||
    params+=" --experimental-cluster-signing-duration=$CLUSTER_SIGNING_DURATION"
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  local -r kube_rc_docker_tag=$(cat /home/kubernetes/kube-docker-files/kube-controller-manager.docker_tag)
 | 
			
		||||
  local container_env=""
 | 
			
		||||
  if [[ -n "${ENABLE_CACHE_MUTATION_DETECTOR:-}" ]]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user