mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-27 19:40:29 +00:00
DeprecatedMightBeMasterNode() has been marked as deprecated and we need to find alternative way for callers of the function. In NewResourceUsageGatherer(), the function was called for distinguishing the specified pods are running on master nodes, and the gatherer gathers those pods' resource usage. This adds nodeHasControlPlanePods() to gistinguish the specified pods are running on nodes which are operating control plane pods (kube-scheduler and kube-controller-manager) and replace callers of DeprecatedMightBeMasterNode() with this new function as better way.
146 lines
6.7 KiB
Python
146 lines
6.7 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"cleanup.go",
|
|
"exec_util.go",
|
|
"expect.go",
|
|
"flake_reporting_util.go",
|
|
"framework.go",
|
|
"log.go",
|
|
"log_size_monitoring.go",
|
|
"nodes_util.go",
|
|
"pods.go",
|
|
"ports.go",
|
|
"provider.go",
|
|
"psp.go",
|
|
"resource_usage_gatherer.go",
|
|
"size.go",
|
|
"test_context.go",
|
|
"util.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/test/e2e/framework",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/kubelet/apis/config:go_default_library",
|
|
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/policy/v1beta1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/fields:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/uuid:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
"//staging/src/k8s.io/client-go/discovery:go_default_library",
|
|
"//staging/src/k8s.io/client-go/discovery/cached/memory:go_default_library",
|
|
"//staging/src/k8s.io/client-go/dynamic:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/scheme:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/rest:go_default_library",
|
|
"//staging/src/k8s.io/client-go/restmapper:go_default_library",
|
|
"//staging/src/k8s.io/client-go/scale:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/clientcmd/api:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/remotecommand:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/watch:go_default_library",
|
|
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
|
|
"//staging/src/k8s.io/component-base/featuregate:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/util/podutils:go_default_library",
|
|
"//test/e2e/framework/auth:go_default_library",
|
|
"//test/e2e/framework/ginkgowrapper:go_default_library",
|
|
"//test/e2e/framework/kubectl:go_default_library",
|
|
"//test/e2e/framework/metrics:go_default_library",
|
|
"//test/e2e/framework/node:go_default_library",
|
|
"//test/e2e/framework/pod:go_default_library",
|
|
"//test/e2e/framework/ssh:go_default_library",
|
|
"//test/utils:go_default_library",
|
|
"//test/utils/image:go_default_library",
|
|
"//vendor/github.com/onsi/ginkgo:go_default_library",
|
|
"//vendor/github.com/onsi/ginkgo/config:go_default_library",
|
|
"//vendor/github.com/onsi/gomega:go_default_library",
|
|
"//vendor/github.com/onsi/gomega/types:go_default_library",
|
|
"//vendor/github.com/pkg/errors:go_default_library",
|
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["log_test.go"],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//vendor/github.com/onsi/ginkgo:go_default_library",
|
|
"//vendor/github.com/onsi/ginkgo/config:go_default_library",
|
|
"//vendor/github.com/onsi/ginkgo/reporters:go_default_library",
|
|
"//vendor/github.com/onsi/gomega:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//test/e2e/framework/auth:all-srcs",
|
|
"//test/e2e/framework/autoscaling:all-srcs",
|
|
"//test/e2e/framework/config:all-srcs",
|
|
"//test/e2e/framework/deployment:all-srcs",
|
|
"//test/e2e/framework/endpoints:all-srcs",
|
|
"//test/e2e/framework/events:all-srcs",
|
|
"//test/e2e/framework/ginkgowrapper:all-srcs",
|
|
"//test/e2e/framework/gpu:all-srcs",
|
|
"//test/e2e/framework/ingress:all-srcs",
|
|
"//test/e2e/framework/job:all-srcs",
|
|
"//test/e2e/framework/kubectl:all-srcs",
|
|
"//test/e2e/framework/kubelet:all-srcs",
|
|
"//test/e2e/framework/kubesystem:all-srcs",
|
|
"//test/e2e/framework/log:all-srcs",
|
|
"//test/e2e/framework/manifest:all-srcs",
|
|
"//test/e2e/framework/metrics:all-srcs",
|
|
"//test/e2e/framework/network:all-srcs",
|
|
"//test/e2e/framework/node:all-srcs",
|
|
"//test/e2e/framework/perf:all-srcs",
|
|
"//test/e2e/framework/pod:all-srcs",
|
|
"//test/e2e/framework/providers/aws:all-srcs",
|
|
"//test/e2e/framework/providers/azure:all-srcs",
|
|
"//test/e2e/framework/providers/gce:all-srcs",
|
|
"//test/e2e/framework/providers/kubemark:all-srcs",
|
|
"//test/e2e/framework/providers/openstack:all-srcs",
|
|
"//test/e2e/framework/providers/vsphere:all-srcs",
|
|
"//test/e2e/framework/pv:all-srcs",
|
|
"//test/e2e/framework/rc:all-srcs",
|
|
"//test/e2e/framework/replicaset:all-srcs",
|
|
"//test/e2e/framework/resource:all-srcs",
|
|
"//test/e2e/framework/security:all-srcs",
|
|
"//test/e2e/framework/service:all-srcs",
|
|
"//test/e2e/framework/skipper:all-srcs",
|
|
"//test/e2e/framework/ssh:all-srcs",
|
|
"//test/e2e/framework/statefulset:all-srcs",
|
|
"//test/e2e/framework/testfiles:all-srcs",
|
|
"//test/e2e/framework/timer:all-srcs",
|
|
"//test/e2e/framework/volume:all-srcs",
|
|
"//test/e2e/framework/websocket:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|