mirror of
https://github.com/rancher/types.git
synced 2025-09-16 23:08:25 +00:00
local changes for prometheus-operator update
This commit is contained in:
committed by
Alena Prokharchyk
parent
ca76e0359d
commit
e224aa2b01
@@ -3,7 +3,7 @@ package schema
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
monitoringv1 "github.com/coreos/prometheus-operator/pkg/client/monitoring/v1"
|
||||
monitoringv1 "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1"
|
||||
istiov1alpha3 "github.com/knative/pkg/apis/istio/v1alpha3"
|
||||
"github.com/rancher/norman/types"
|
||||
m "github.com/rancher/norman/types/mapper"
|
||||
@@ -944,11 +944,6 @@ func pipelineTypes(schema *types.Schemas) *types.Schemas {
|
||||
|
||||
func monitoringTypes(schemas *types.Schemas) *types.Schemas {
|
||||
return schemas.
|
||||
AddMapperForType(&Version, monitoringv1.StorageSpec{},
|
||||
&m.Drop{Field: "class"},
|
||||
&m.Drop{Field: "selector"},
|
||||
&m.Drop{Field: "resources"},
|
||||
).
|
||||
AddMapperForType(&Version, monitoringv1.Prometheus{},
|
||||
&m.Drop{Field: "status"},
|
||||
&m.AnnotationField{Field: "description"},
|
||||
|
Reference in New Issue
Block a user