Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e6fbb593
Commit
e6fbb593
authored
May 01, 2019
by
Han Kang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move framework files to subdirectory for isolation
parent
7f997064
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
73 additions
and
35 deletions
+73
-35
BUILD
pkg/util/metrics/BUILD
+6
-26
BUILD
pkg/util/metrics/framework/BUILD
+58
-0
counter.go
pkg/util/metrics/framework/counter.go
+1
-1
counter_test.go
pkg/util/metrics/framework/counter_test.go
+1
-1
metric.go
pkg/util/metrics/framework/metric.go
+1
-1
opts.go
pkg/util/metrics/framework/opts.go
+1
-1
registry.go
pkg/util/metrics/framework/registry.go
+1
-1
registry_test.go
pkg/util/metrics/framework/registry_test.go
+1
-1
version_parser.go
pkg/util/metrics/framework/version_parser.go
+1
-1
version_parser_test.go
pkg/util/metrics/framework/version_parser_test.go
+1
-1
wrappers.go
pkg/util/metrics/framework/wrappers.go
+1
-1
No files found.
pkg/util/metrics/BUILD
View file @
e6fbb593
...
@@ -8,43 +8,20 @@ load(
...
@@ -8,43 +8,20 @@ load(
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = [
srcs = ["util.go"],
"counter.go",
"metric.go",
"opts.go",
"registry.go",
"util.go",
"version_parser.go",
"wrappers.go",
],
importpath = "k8s.io/kubernetes/pkg/util/metrics",
importpath = "k8s.io/kubernetes/pkg/util/metrics",
deps = [
deps = [
"//pkg/version:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
"//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
"//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
],
)
)
go_test(
go_test(
name = "go_default_test",
name = "go_default_test",
srcs = [
srcs = ["util_test.go"],
"counter_test.go",
"registry_test.go",
"util_test.go",
"version_parser_test.go",
],
embed = [":go_default_library"],
embed = [":go_default_library"],
deps = [
deps = [
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
"//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
"//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
],
)
)
...
@@ -57,6 +34,9 @@ filegroup(
...
@@ -57,6 +34,9 @@ filegroup(
filegroup(
filegroup(
name = "all-srcs",
name = "all-srcs",
srcs = [":package-srcs"],
srcs = [
":package-srcs",
"//pkg/util/metrics/framework:all-srcs",
],
tags = ["automanaged"],
tags = ["automanaged"],
)
)
pkg/util/metrics/framework/BUILD
0 → 100644
View file @
e6fbb593
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_library(
name = "go_default_library",
srcs = [
"counter.go",
"metric.go",
"opts.go",
"registry.go",
"version_parser.go",
"wrappers.go",
],
importpath = "k8s.io/kubernetes/pkg/util/metrics/framework",
deps = [
"//pkg/version:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/k8s.io/klog:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"counter_test.go",
"registry_test.go",
"version_parser_test.go",
],
embed = [":go_default_library"],
deps = [
"//staging/src/k8s.io/apimachinery/pkg/version:go_default_library",
"//vendor/github.com/blang/semver:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
pkg/util/metrics/counter.go
→
pkg/util/metrics/
framework/
counter.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"github.com/blang/semver"
"github.com/blang/semver"
...
...
pkg/util/metrics/counter_test.go
→
pkg/util/metrics/
framework/
counter_test.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"bytes"
"bytes"
...
...
pkg/util/metrics/metric.go
→
pkg/util/metrics/
framework/
metric.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"github.com/blang/semver"
"github.com/blang/semver"
...
...
pkg/util/metrics/opts.go
→
pkg/util/metrics/
framework/
opts.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"fmt"
"fmt"
...
...
pkg/util/metrics/registry.go
→
pkg/util/metrics/
framework/
registry.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"github.com/blang/semver"
"github.com/blang/semver"
...
...
pkg/util/metrics/registry_test.go
→
pkg/util/metrics/
framework/
registry_test.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"github.com/blang/semver"
"github.com/blang/semver"
...
...
pkg/util/metrics/version_parser.go
→
pkg/util/metrics/
framework/
version_parser.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"fmt"
"fmt"
...
...
pkg/util/metrics/version_parser_test.go
→
pkg/util/metrics/
framework/
version_parser_test.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
apimachineryversion
"k8s.io/apimachinery/pkg/version"
apimachineryversion
"k8s.io/apimachinery/pkg/version"
...
...
pkg/util/metrics/wrappers.go
→
pkg/util/metrics/
framework/
wrappers.go
View file @
e6fbb593
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
metrics
package
framework
import
(
import
(
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment