mirror of https://github.com/k3s-io/k3s
176 lines
8.6 KiB
Python
176 lines
8.6 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"auth.go",
|
|
"init_others.go",
|
|
"init_windows.go",
|
|
"plugins.go",
|
|
"plugins_providers.go",
|
|
"server.go",
|
|
"server_linux.go",
|
|
"server_unsupported.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/cmd/kubelet/app",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//cmd/kubelet/app/options:go_default_library",
|
|
"//pkg/api/legacyscheme:go_default_library",
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/capabilities:go_default_library",
|
|
"//pkg/cloudprovider/providers:go_default_library",
|
|
"//pkg/credentialprovider:go_default_library",
|
|
"//pkg/credentialprovider/aws:go_default_library",
|
|
"//pkg/credentialprovider/azure:go_default_library",
|
|
"//pkg/credentialprovider/gcp:go_default_library",
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/kubelet:go_default_library",
|
|
"//pkg/kubelet/apis/config:go_default_library",
|
|
"//pkg/kubelet/apis/config/scheme:go_default_library",
|
|
"//pkg/kubelet/apis/config/validation:go_default_library",
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
"//pkg/kubelet/certificate:go_default_library",
|
|
"//pkg/kubelet/certificate/bootstrap:go_default_library",
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//pkg/kubelet/cm/cpuset:go_default_library",
|
|
"//pkg/kubelet/config:go_default_library",
|
|
"//pkg/kubelet/container:go_default_library",
|
|
"//pkg/kubelet/eviction:go_default_library",
|
|
"//pkg/kubelet/eviction/api:go_default_library",
|
|
"//pkg/kubelet/kubeletconfig:go_default_library",
|
|
"//pkg/kubelet/kubeletconfig/configfiles:go_default_library",
|
|
"//pkg/kubelet/metrics:go_default_library",
|
|
"//pkg/kubelet/server:go_default_library",
|
|
"//pkg/kubelet/stats/pidlimit:go_default_library",
|
|
"//pkg/kubelet/types:go_default_library",
|
|
"//pkg/util/filesystem:go_default_library",
|
|
"//pkg/util/flock:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//pkg/util/oom:go_default_library",
|
|
"//pkg/util/rlimit:go_default_library",
|
|
"//pkg/volume:go_default_library",
|
|
"//pkg/volume/awsebs:go_default_library",
|
|
"//pkg/volume/azure_dd:go_default_library",
|
|
"//pkg/volume/azure_file:go_default_library",
|
|
"//pkg/volume/cephfs:go_default_library",
|
|
"//pkg/volume/cinder:go_default_library",
|
|
"//pkg/volume/configmap:go_default_library",
|
|
"//pkg/volume/csi:go_default_library",
|
|
"//pkg/volume/csimigration:go_default_library",
|
|
"//pkg/volume/downwardapi:go_default_library",
|
|
"//pkg/volume/emptydir:go_default_library",
|
|
"//pkg/volume/fc:go_default_library",
|
|
"//pkg/volume/flexvolume:go_default_library",
|
|
"//pkg/volume/flocker:go_default_library",
|
|
"//pkg/volume/gcepd:go_default_library",
|
|
"//pkg/volume/git_repo:go_default_library",
|
|
"//pkg/volume/glusterfs:go_default_library",
|
|
"//pkg/volume/hostpath:go_default_library",
|
|
"//pkg/volume/iscsi:go_default_library",
|
|
"//pkg/volume/local:go_default_library",
|
|
"//pkg/volume/nfs:go_default_library",
|
|
"//pkg/volume/portworx:go_default_library",
|
|
"//pkg/volume/projected:go_default_library",
|
|
"//pkg/volume/quobyte:go_default_library",
|
|
"//pkg/volume/rbd:go_default_library",
|
|
"//pkg/volume/scaleio:go_default_library",
|
|
"//pkg/volume/secret:go_default_library",
|
|
"//pkg/volume/storageos:go_default_library",
|
|
"//pkg/volume/util/hostutil:go_default_library",
|
|
"//pkg/volume/util/subpath:go_default_library",
|
|
"//pkg/volume/vsphere_volume:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types: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/wait:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticator:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/authorization/authorizer:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server/healthz:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/authentication/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1: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/tools/clientcmd:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
"//staging/src/k8s.io/client-go/util/cert:go_default_library",
|
|
"//staging/src/k8s.io/client-go/util/certificate:go_default_library",
|
|
"//staging/src/k8s.io/client-go/util/connrotation:go_default_library",
|
|
"//staging/src/k8s.io/client-go/util/keyutil:go_default_library",
|
|
"//staging/src/k8s.io/cloud-provider:go_default_library",
|
|
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
|
|
"//staging/src/k8s.io/component-base/configz:go_default_library",
|
|
"//staging/src/k8s.io/component-base/featuregate:go_default_library",
|
|
"//staging/src/k8s.io/component-base/logs:go_default_library",
|
|
"//staging/src/k8s.io/component-base/metrics:go_default_library",
|
|
"//staging/src/k8s.io/component-base/metrics/legacyregistry:go_default_library",
|
|
"//staging/src/k8s.io/component-base/version:go_default_library",
|
|
"//staging/src/k8s.io/component-base/version/verflag:go_default_library",
|
|
"//staging/src/k8s.io/csi-translation-lib/plugins:go_default_library",
|
|
"//staging/src/k8s.io/kubelet/config/v1beta1:go_default_library",
|
|
"//vendor/github.com/coreos/go-systemd/daemon:go_default_library",
|
|
"//vendor/github.com/spf13/cobra:go_default_library",
|
|
"//vendor/github.com/spf13/pflag:go_default_library",
|
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//vendor/k8s.io/utils/inotify:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//vendor/k8s.io/utils/inotify:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"//pkg/windows/service:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"server_bootstrap_test.go",
|
|
"server_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/apis/certificates/v1:go_default_library",
|
|
"//pkg/controller/certificates/authority:go_default_library",
|
|
"//staging/src/k8s.io/api/certificates/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/client-go/rest:go_default_library",
|
|
"//staging/src/k8s.io/client-go/util/cert:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//cmd/kubelet/app/options:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|