From def0db6a16b4bce8b53e5cd847309de75d9cf9bb Mon Sep 17 00:00:00 2001 From: "Rostislav M. Georgiev" Date: Fri, 22 May 2020 17:10:27 +0300 Subject: [PATCH] kubeadm: Remove unused constants Signed-off-by: Rostislav M. Georgiev --- cmd/kubeadm/app/constants/constants.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index a3372a4e605..8da1399f43e 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -245,10 +245,6 @@ const ( // This file should exist under KubeletRunDirectory KubeletConfigurationFileName = "config.yaml" - // DynamicKubeletConfigurationDirectoryName specifies the directory which stores the dynamic configuration checkpoints for the kubelet - // This directory should exist under KubeletRunDirectory - DynamicKubeletConfigurationDirectoryName = "dynamic-config" - // KubeletEnvFileName is a file "kubeadm init" writes at runtime. Using that interface, kubeadm can customize certain // kubelet flags conditionally based on the environment at runtime. Also, parameters given to the configuration file // might be passed through this file. "kubeadm init" writes one variable, with the name ${KubeletEnvFileVariableName}. @@ -325,18 +321,6 @@ const ( // KubeDNSDnsMasqNannyImageName specifies the name of the image for the dnsmasq container in the kube-dns add-on KubeDNSDnsMasqNannyImageName = "k8s-dns-dnsmasq-nanny" - // AuditPolicyDir is the directory that will contain the audit policy - AuditPolicyDir = "audit" - // AuditPolicyFile is the name of the audit policy file itself - AuditPolicyFile = "audit.yaml" - // StaticPodAuditPolicyLogDir is the name of the directory in the static pod that will have the audit logs - StaticPodAuditPolicyLogDir = "/var/log/kubernetes/audit" - - // LeaseEndpointReconcilerType will select a storage based reconciler - // Copied from pkg/master/reconcilers to avoid pulling extra dependencies - // TODO: Import this constant from a consts only package, that does not pull any further dependencies. - LeaseEndpointReconcilerType = "lease" - // KubeDNSVersion is the version of kube-dns to be deployed if it is used KubeDNSVersion = "1.14.13" @@ -625,11 +609,6 @@ func GetAPIServerVirtualIP(svcSubnetList string, isDualStack bool) (net.IP, erro return internalAPIServerVirtualIP, nil } -// GetStaticPodAuditPolicyFile returns the path to the audit policy file within a static pod -func GetStaticPodAuditPolicyFile() string { - return filepath.Join(KubernetesDir, AuditPolicyDir, AuditPolicyFile) -} - // GetDNSVersion is a handy function that returns the DNS version by DNS type func GetDNSVersion(dnsType kubeadmapi.DNSAddOnType) string { switch dnsType {