From 0260d4f2878c490fb618eab82f561b60797eac10 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Wed, 31 Jul 2019 12:00:16 +0200 Subject: [PATCH] Setup directories for Metrics validation and verification KEP KEP link: https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/20190605-metrics-validation-and-verification.md --- test/BUILD | 1 + test/instrumentation/BUILD | 28 ++++++++++++++++++++++++++++ test/instrumentation/OWNERS | 12 ++++++++++++ test/instrumentation/README.md | 3 +++ test/instrumentation/main.go | 21 +++++++++++++++++++++ test/instrumentation/testdata/OWNERS | 11 +++++++++++ 6 files changed, 76 insertions(+) create mode 100644 test/instrumentation/BUILD create mode 100644 test/instrumentation/OWNERS create mode 100644 test/instrumentation/README.md create mode 100644 test/instrumentation/main.go create mode 100644 test/instrumentation/testdata/OWNERS diff --git a/test/BUILD b/test/BUILD index 3ff833f6a3d..722d962ec54 100644 --- a/test/BUILD +++ b/test/BUILD @@ -18,6 +18,7 @@ filegroup( "//test/e2e_node:all-srcs", "//test/fixtures:all-srcs", "//test/images:all-srcs", + "//test/instrumentation:all-srcs", "//test/integration:all-srcs", "//test/kubemark:all-srcs", "//test/list:all-srcs", diff --git a/test/instrumentation/BUILD b/test/instrumentation/BUILD new file mode 100644 index 00000000000..06b96716acd --- /dev/null +++ b/test/instrumentation/BUILD @@ -0,0 +1,28 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "go_default_library", + srcs = ["main.go"], + importpath = "k8s.io/kubernetes/test/instrumentation", + visibility = ["//visibility:private"], +) + +go_binary( + name = "instrumentation", + embed = [":go_default_library"], + visibility = ["//visibility:public"], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/test/instrumentation/OWNERS b/test/instrumentation/OWNERS new file mode 100644 index 00000000000..6d2418a175c --- /dev/null +++ b/test/instrumentation/OWNERS @@ -0,0 +1,12 @@ +# See the OWNERS docs at https://go.k8s.io/owners + +approvers: +- piosz +- brancz +- logicalhan +reviewers: +- piosz +- brancz +- logicalhan +labels: +- sig/instrumentation diff --git a/test/instrumentation/README.md b/test/instrumentation/README.md new file mode 100644 index 00000000000..62b0336e4bb --- /dev/null +++ b/test/instrumentation/README.md @@ -0,0 +1,3 @@ +This is a WIP directory for ensuring stability rules around kubernetes metrics. + +Design [Metrics validation and verification](https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/20190605-metrics-validation-and-verification.md) diff --git a/test/instrumentation/main.go b/test/instrumentation/main.go new file mode 100644 index 00000000000..0aa277281b8 --- /dev/null +++ b/test/instrumentation/main.go @@ -0,0 +1,21 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package main + +func main() { + +} diff --git a/test/instrumentation/testdata/OWNERS b/test/instrumentation/testdata/OWNERS new file mode 100644 index 00000000000..87464e9b72d --- /dev/null +++ b/test/instrumentation/testdata/OWNERS @@ -0,0 +1,11 @@ +# See the OWNERS docs at https://go.k8s.io/owners + +approvers: +- piosz +- brancz +reviewers: +- piosz +- brancz +- logicalhan +labels: +- sig/instrumentation