From 5f6c8b8d00f7c3ac62b9c206d989dfd13122cf93 Mon Sep 17 00:00:00 2001 From: "Frank A. Zdarsky" Date: Tue, 26 Oct 2021 10:10:37 +0200 Subject: [PATCH] Clean up kube-controller-manager config Signed-off-by: Frank A. Zdarsky --- pkg/config/kube-controller-manager.go | 73 --------------------------- 1 file changed, 73 deletions(-) delete mode 100644 pkg/config/kube-controller-manager.go diff --git a/pkg/config/kube-controller-manager.go b/pkg/config/kube-controller-manager.go deleted file mode 100644 index eb3c5586b6..0000000000 --- a/pkg/config/kube-controller-manager.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -Copyright © 2021 Microshift Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package config - -/* -import ( - "io/ioutil" - "os" - "path/filepath" -) - -// KubeControllerManagerConfig creates a config for kube-controller-manager in option --openshift-config -func KubeControllerManagerConfig(cfg *MicroshiftConfig) error { - data := []byte(` -apiVersion: kubecontrolplane.config.openshift.io/v1 -kind: KubeControllerManagerConfig -extendedArguments: - enable-dynamic-provisioning: - - "true" - allocate-node-cidrs: - - "false" - configure-cloud-routes: - - "false" - use-service-account-credentials: - - "true" - flex-volume-plugin-dir: - - "` + cfg.DataDir + `/kubelet-plugins/volume/exec" # created by machine-config-operator, owned by storage team/hekumar@redhat.com - pv-recycler-pod-template-filepath-nfs: # owned by storage team/fbertina@redhat.com - - "` + cfg.DataDir + `/resources/configmaps/recycler-config/recycler-pod.yaml" - pv-recycler-pod-template-filepath-hostpath: # owned by storage team/fbertina@redhat.com - - "` + cfg.DataDir + `/resources/configmaps/recycler-config/recycler-pod.yaml" - leader-elect: - - "true" - leader-elect-retry-period: - - "3s" - leader-elect-resource-lock: - - "configmaps" - controllers: - - "*" - - "-ttl" # TODO: this is excluded in kube-core, but not in #21092 - - "-bootstrapsigner" - - "-tokencleaner" - experimental-cluster-signing-duration: - - "720h" - secure-port: - - "10257" - port: - - "0" - cert-dir: - - "/var/run/kubernetes" - kube-api-qps: - - "150" # this is a historical values - kube-api-burst: - - "300" # this is a historical values - `) - path := cfg.DataDir + "/resources/kube-controller-manager/config/config.yaml" - os.MkdirAll(filepath.Dir(path), os.FileMode(0755)) - return ioutil.WriteFile(path, data, 0644) -} -*/