mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-23 11:12:52 +08:00
745637cf02
Automatic merge from submit-queue (batch tested with PRs 55004, 54957). 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>. Update kube-openapi to use validation **What this PR does / why we need it**: Moves openapi validation code to kube-openapi, so that we can move the rest of the code to apimachinery repository, so that later we can use it from both the client and the server. **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 #Nothing **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` Kubernetes-commit: 55e216f56eac0082acc6be655d9ae09cf9ba38a8
47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
"go_test",
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["patch_test.go"],
|
|
importpath = "k8s.io/apimachinery/pkg/util/strategicpatch",
|
|
library = ":go_default_library",
|
|
deps = [
|
|
"//vendor/github.com/davecgh/go-spew/spew:go_default_library",
|
|
"//vendor/github.com/ghodss/yaml:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/mergepatch:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = ["patch.go"],
|
|
importpath = "k8s.io/apimachinery/pkg/util/strategicpatch",
|
|
deps = [
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/json:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/mergepatch:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/third_party/forked/golang/json:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
)
|