mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
fix(test): delete unused unused var or const
This commit is contained in:
parent
db1f8da036
commit
321b690f62
@ -35,9 +35,6 @@ const (
|
||||
// considered acceptable. Once per hour is fine for now, as long as it
|
||||
// doesn't loose too much logs.
|
||||
maxAllowedRestartsPerHour = 1.0
|
||||
// lastPodIngestionSlack is the amount of time to wait for the last pod's
|
||||
// logs to be ingested by the logging agent.
|
||||
lastPodIngestionSlack = 5 * time.Minute
|
||||
)
|
||||
|
||||
var _ = instrumentation.SIGDescribe("Cluster level logging implemented by Stackdriver [Feature:StackdriverLogging] [Soak]", func() {
|
||||
|
@ -43,8 +43,6 @@ const (
|
||||
monitoringTime = 20 * time.Minute
|
||||
// The periodic reporting period.
|
||||
reportingPeriod = 5 * time.Minute
|
||||
// Timeout for waiting for the image prepulling to complete.
|
||||
imagePrePullingLongTimeout = time.Minute * 8
|
||||
)
|
||||
|
||||
type resourceTest struct {
|
||||
|
@ -56,8 +56,6 @@ import (
|
||||
const (
|
||||
// Plugin name of the external provisioner
|
||||
externalPluginName = "example.com/nfs"
|
||||
// Number of PVCs for multi PVC tests
|
||||
multiPVCcount = 3
|
||||
)
|
||||
|
||||
func checkZoneFromLabelAndAffinity(pv *v1.PersistentVolume, zone string, matchZone bool) {
|
||||
|
@ -42,7 +42,6 @@ var _ = SIGDescribe("Kubernetes Dashboard [Feature:Dashboard]", func() {
|
||||
uiServiceName = "kubernetes-dashboard"
|
||||
uiAppName = uiServiceName
|
||||
uiNamespace = metav1.NamespaceSystem
|
||||
uiRedirect = "/ui"
|
||||
|
||||
serverStartTimeout = 1 * time.Minute
|
||||
)
|
||||
|
@ -64,7 +64,6 @@ var kubeletAddress = flag.String("kubelet-address", "http://127.0.0.1:10255", "H
|
||||
var startServices = flag.Bool("start-services", true, "If true, start local node services")
|
||||
var stopServices = flag.Bool("stop-services", true, "If true, stop local node services after running tests")
|
||||
var busyboxImage = imageutils.GetE2EImage(imageutils.BusyBox)
|
||||
var perlImage = imageutils.GetE2EImage(imageutils.Perl)
|
||||
|
||||
const (
|
||||
// Kubelet internal cgroup name for node allocatable cgroup.
|
||||
|
@ -26,13 +26,6 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
const (
|
||||
// When these values are updated, also update cmd/kubelet/app/options/container_runtime.go
|
||||
// A copy of these values exist in test/utils/image/manifest.go
|
||||
currentPodInfraContainerImageName = "k8s.gcr.io/pause"
|
||||
currentPodInfraContainerImageVersion = "3.1"
|
||||
)
|
||||
|
||||
// CreateTestingNamespace creates a namespace for testing.
|
||||
func CreateTestingNamespace(baseName string, apiserver *httptest.Server, t *testing.T) *v1.Namespace {
|
||||
// TODO: Create a namespace with a given basename.
|
||||
|
@ -379,33 +379,6 @@ var hpaV1 = `
|
||||
}
|
||||
`
|
||||
|
||||
var deploymentExtensions = `
|
||||
{
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"kind": "Deployment",
|
||||
"metadata": {
|
||||
"name": "test-deployment1",
|
||||
"namespace": "default"
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 1,
|
||||
"template": {
|
||||
"metadata": {
|
||||
"labels": {
|
||||
"app": "nginx0"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [{
|
||||
"name": "nginx",
|
||||
"image": "k8s.gcr.io/nginx:1.7.9"
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
var deploymentApps = `
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
|
@ -38,10 +38,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
warning3K = 100
|
||||
threshold3K = 30
|
||||
threshold30K = 30
|
||||
threshold60K = 30
|
||||
warning3K = 100
|
||||
threshold3K = 30
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user