1
0
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:
kinarashah
2019-09-26 18:45:46 -07:00
committed by Alena Prokharchyk
parent ca76e0359d
commit e224aa2b01
3 changed files with 6 additions and 8 deletions

View File

@@ -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"},