mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Automatic merge from submit-queue (batch tested with PRs 60011, 59256, 59293, 60328, 60367). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix todo: add validate method for &schedulerapi.Policy in examples_test.go **What this PR does / why we need it**: fix todo: add validate method for &schedulerapi.Policy in examples_test.go **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
		
			
				
	
	
		
			71 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
package(default_visibility = ["//visibility:public"])
 | 
						|
 | 
						|
load(
 | 
						|
    "@io_bazel_rules_go//go:def.bzl",
 | 
						|
    "go_library",
 | 
						|
    "go_test",
 | 
						|
)
 | 
						|
 | 
						|
filegroup(
 | 
						|
    name = "config",
 | 
						|
    srcs = glob([
 | 
						|
        "**/*.yaml",
 | 
						|
        "**/*.yml",
 | 
						|
        "**/*.json",
 | 
						|
    ]) + [
 | 
						|
        "pod",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
go_library(
 | 
						|
    name = "go_default_library",
 | 
						|
    srcs = ["doc.go"],
 | 
						|
    importpath = "k8s.io/kubernetes/examples",
 | 
						|
)
 | 
						|
 | 
						|
go_test(
 | 
						|
    name = "go_default_xtest",
 | 
						|
    srcs = ["examples_test.go"],
 | 
						|
    tags = ["manual"],  # this test is broken and examples in-tree is deprecated
 | 
						|
    deps = [
 | 
						|
        "//pkg/api/testapi:go_default_library",
 | 
						|
        "//pkg/apis/apps:go_default_library",
 | 
						|
        "//pkg/apis/apps/validation:go_default_library",
 | 
						|
        "//pkg/apis/batch:go_default_library",
 | 
						|
        "//pkg/apis/core:go_default_library",
 | 
						|
        "//pkg/apis/core/validation:go_default_library",
 | 
						|
        "//pkg/apis/extensions:go_default_library",
 | 
						|
        "//pkg/apis/extensions/validation:go_default_library",
 | 
						|
        "//pkg/capabilities:go_default_library",
 | 
						|
        "//pkg/registry/batch/job:go_default_library",
 | 
						|
        "//pkg/scheduler/api:go_default_library",
 | 
						|
        "//pkg/scheduler/api/latest:go_default_library",
 | 
						|
        "//pkg/scheduler/api/validation:go_default_library",
 | 
						|
        "//vendor/github.com/golang/glog:go_default_library",
 | 
						|
        "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
						|
        "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
 | 
						|
        "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
						|
        "//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library",
 | 
						|
        "//vendor/k8s.io/apimachinery/pkg/util/yaml:go_default_library",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
filegroup(
 | 
						|
    name = "package-srcs",
 | 
						|
    srcs = glob(["**"]),
 | 
						|
    tags = ["automanaged"],
 | 
						|
    visibility = ["//visibility:private"],
 | 
						|
)
 | 
						|
 | 
						|
filegroup(
 | 
						|
    name = "all-srcs",
 | 
						|
    srcs = [
 | 
						|
        ":package-srcs",
 | 
						|
        "//examples/explorer:all-srcs",
 | 
						|
        "//examples/guestbook-go:all-srcs",
 | 
						|
        "//examples/https-nginx:all-srcs",
 | 
						|
        "//examples/sharing-clusters:all-srcs",
 | 
						|
    ],
 | 
						|
    tags = ["automanaged"],
 | 
						|
)
 |