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
b5a41e77
Commit
b5a41e77
authored
May 05, 2017
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary call to metrics install package
remove init and reference to client-go/api from metrcis install package
parent
074affca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
14 deletions
+0
-14
autoscaling.go
cmd/kube-controller-manager/app/autoscaling.go
+0
-4
install.go
...k8s.io/metrics/pkg/apis/custom_metrics/install/install.go
+0
-5
install.go
...ng/src/k8s.io/metrics/pkg/apis/metrics/install/install.go
+0
-5
No files found.
cmd/kube-controller-manager/app/autoscaling.go
View file @
b5a41e77
...
@@ -26,10 +26,6 @@ import (
...
@@ -26,10 +26,6 @@ import (
"k8s.io/kubernetes/pkg/controller/podautoscaler/metrics"
"k8s.io/kubernetes/pkg/controller/podautoscaler/metrics"
resourceclient
"k8s.io/metrics/pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1"
resourceclient
"k8s.io/metrics/pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1"
"k8s.io/metrics/pkg/client/custom_metrics"
"k8s.io/metrics/pkg/client/custom_metrics"
// install the APIs so that they're registered with the scheme for the clients
_
"k8s.io/metrics/pkg/apis/custom_metrics/install"
_
"k8s.io/metrics/pkg/apis/metrics/install"
)
)
func
startHPAController
(
ctx
ControllerContext
)
(
bool
,
error
)
{
func
startHPAController
(
ctx
ControllerContext
)
(
bool
,
error
)
{
...
...
staging/src/k8s.io/metrics/pkg/apis/custom_metrics/install/install.go
View file @
b5a41e77
...
@@ -22,15 +22,10 @@ import (
...
@@ -22,15 +22,10 @@ import (
"k8s.io/apimachinery/pkg/apimachinery/announced"
"k8s.io/apimachinery/pkg/apimachinery/announced"
"k8s.io/apimachinery/pkg/apimachinery/registered"
"k8s.io/apimachinery/pkg/apimachinery/registered"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/pkg/api"
"k8s.io/metrics/pkg/apis/custom_metrics"
"k8s.io/metrics/pkg/apis/custom_metrics"
"k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1"
"k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1"
)
)
func
init
()
{
Install
(
api
.
GroupFactoryRegistry
,
api
.
Registry
,
api
.
Scheme
)
}
// Install registers the API group and adds types to a scheme
// Install registers the API group and adds types to a scheme
func
Install
(
groupFactoryRegistry
announced
.
APIGroupFactoryRegistry
,
registry
*
registered
.
APIRegistrationManager
,
scheme
*
runtime
.
Scheme
)
{
func
Install
(
groupFactoryRegistry
announced
.
APIGroupFactoryRegistry
,
registry
*
registered
.
APIRegistrationManager
,
scheme
*
runtime
.
Scheme
)
{
if
err
:=
announced
.
NewGroupMetaFactory
(
if
err
:=
announced
.
NewGroupMetaFactory
(
...
...
staging/src/k8s.io/metrics/pkg/apis/metrics/install/install.go
View file @
b5a41e77
...
@@ -23,15 +23,10 @@ import (
...
@@ -23,15 +23,10 @@ import (
"k8s.io/apimachinery/pkg/apimachinery/registered"
"k8s.io/apimachinery/pkg/apimachinery/registered"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/client-go/pkg/api"
"k8s.io/metrics/pkg/apis/metrics"
"k8s.io/metrics/pkg/apis/metrics"
"k8s.io/metrics/pkg/apis/metrics/v1alpha1"
"k8s.io/metrics/pkg/apis/metrics/v1alpha1"
)
)
func
init
()
{
Install
(
api
.
GroupFactoryRegistry
,
api
.
Registry
,
api
.
Scheme
)
}
// Install registers the API group and adds types to a scheme
// Install registers the API group and adds types to a scheme
func
Install
(
groupFactoryRegistry
announced
.
APIGroupFactoryRegistry
,
registry
*
registered
.
APIRegistrationManager
,
scheme
*
runtime
.
Scheme
)
{
func
Install
(
groupFactoryRegistry
announced
.
APIGroupFactoryRegistry
,
registry
*
registered
.
APIRegistrationManager
,
scheme
*
runtime
.
Scheme
)
{
if
err
:=
announced
.
NewGroupMetaFactory
(
if
err
:=
announced
.
NewGroupMetaFactory
(
...
...
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