mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 17:57:51 +00:00
Update custom-metrics-apiserver and metrics-server
This commit is contained in:
parent
4c673534f2
commit
b480e45a67
915 changed files with 63694 additions and 106514 deletions
5
vendor/github.com/kubernetes-incubator/custom-metrics-apiserver/pkg/cmd/builder.go
generated
vendored
5
vendor/github.com/kubernetes-incubator/custom-metrics-apiserver/pkg/cmd/builder.go
generated
vendored
|
|
@ -29,6 +29,7 @@ import (
|
|||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/tools/clientcmd"
|
||||
openapicommon "k8s.io/kube-openapi/pkg/common"
|
||||
|
||||
"github.com/kubernetes-incubator/custom-metrics-apiserver/pkg/apiserver"
|
||||
"github.com/kubernetes-incubator/custom-metrics-apiserver/pkg/cmd/server"
|
||||
|
|
@ -66,6 +67,9 @@ type AdapterBase struct {
|
|||
// if not explicitly set.
|
||||
FlagSet *pflag.FlagSet
|
||||
|
||||
// OpenAPIConfig
|
||||
OpenAPIConfig *openapicommon.Config
|
||||
|
||||
// flagOnce controls initialization of the flags.
|
||||
flagOnce sync.Once
|
||||
|
||||
|
|
@ -88,6 +92,7 @@ func (b *AdapterBase) InstallFlags() {
|
|||
b.flagOnce.Do(func() {
|
||||
if b.CustomMetricsAdapterServerOptions == nil {
|
||||
b.CustomMetricsAdapterServerOptions = server.NewCustomMetricsAdapterServerOptions()
|
||||
b.CustomMetricsAdapterServerOptions.OpenAPIConfig = b.OpenAPIConfig
|
||||
}
|
||||
|
||||
b.SecureServing.AddFlags(b.FlagSet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue