From 3afaa9fa86f3f93eced6524a74f323c8ddcb1c4a Mon Sep 17 00:00:00 2001 From: Spencer Amann Date: Tue, 10 May 2022 16:15:03 -0400 Subject: [PATCH] update vendoring regenerate bindate after adding new line --- go.mod | 2 +- go.sum | 1 - .../controllers/machinehealthcheck/bindata.go | 2 +- .../v1alpha1/alertmanager_config_types.go | 724 ------------------ .../pkg/apis/monitoring/v1alpha1/doc.go | 18 - .../pkg/apis/monitoring/v1alpha1/register.go | 55 -- .../v1alpha1/zz_generated.deepcopy.go | 677 ---------------- .../prometheus-operator/pkg/client/LICENSE | 202 ----- .../pkg/client/versioned/scheme/doc.go | 18 - .../pkg/client/versioned/scheme/register.go | 56 -- vendor/modules.txt | 3 +- 11 files changed, 3 insertions(+), 1755 deletions(-) delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/alertmanager_config_types.go delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/doc.go delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/register.go delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/zz_generated.deepcopy.go delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/LICENSE delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/doc.go delete mode 100644 vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/register.go diff --git a/go.mod b/go.mod index 95cea9c02ac..268f9bedb03 100644 --- a/go.mod +++ b/go.mod @@ -83,7 +83,7 @@ require ( github.com/pires/go-proxyproto v0.6.1 github.com/pkg/errors v0.9.1 github.com/pquerna/cachecontrol v0.1.0 // indirect - github.com/prometheus-operator/prometheus-operator/pkg/client v0.48.1 + github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.48.1 github.com/prometheus/client_golang v1.12.0 github.com/prometheus/common v0.32.1 github.com/sirupsen/logrus v1.8.1 diff --git a/go.sum b/go.sum index 8c276db3b1f..18b0207449f 100644 --- a/go.sum +++ b/go.sum @@ -2146,7 +2146,6 @@ github.com/prometheus-operator/prometheus-operator v0.48.1/go.mod h1:lXJz0R74Xkh github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.44.1/go.mod h1:3WYi4xqXxGGXWDdQIITnLNmuDzO5n6wYva9spVhR4fg= github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.48.1 h1:OGC7+ktZ6h8xI99VB6i8iuiXecdhUmwto9vbGzoVMac= github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.48.1/go.mod h1:3WYi4xqXxGGXWDdQIITnLNmuDzO5n6wYva9spVhR4fg= -github.com/prometheus-operator/prometheus-operator/pkg/client v0.48.1 h1:i3bwALeHBJaLRw+z/8IPujQpAAVwqXpyLrftdhysFrk= github.com/prometheus-operator/prometheus-operator/pkg/client v0.48.1/go.mod h1:k4BrWlVQQsvBiTcDnKEMgyh/euRxyxgrHdur/ZX/sdA= github.com/prometheus/alertmanager v0.20.0/go.mod h1:9g2i48FAyZW6BtbsnvHtMHQXl2aVtrORKwKVCQ+nbrg= github.com/prometheus/alertmanager v0.21.0/go.mod h1:h7tJ81NA0VLWvWEayi1QltevFkLF3KxmC/malTcT8Go= diff --git a/pkg/operator/controllers/machinehealthcheck/bindata.go b/pkg/operator/controllers/machinehealthcheck/bindata.go index 57a629aadf7..97c6b4d4f6e 100644 --- a/pkg/operator/controllers/machinehealthcheck/bindata.go +++ b/pkg/operator/controllers/machinehealthcheck/bindata.go @@ -98,7 +98,7 @@ func machinehealthcheckYaml() (*asset, error) { return a, nil } -var _mhcremediationalertYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x8e\x41\x8b\x14\x31\x10\x85\xef\xf3\x2b\xea\xa8\x87\x5e\x95\x05\x0f\x01\x05\xf1\xb2\x97\x05\x99\x83\x17\x91\xa1\x36\xfd\xec\x14\x9b\xa4\x42\x55\xf5\xa8\xff\x5e\xba\x6d\x71\x6e\x9b\x53\x48\xde\xf7\xbd\xc7\x43\xbe\xc2\x5c\xb4\x27\x6a\xda\x25\xd4\xa4\x2f\x77\x59\x0d\xea\x77\x59\xdb\x9b\xeb\xbb\xd3\xb3\xf4\x39\xd1\x17\xd3\x86\x28\x58\xfd\xbc\x56\x9c\x1a\x82\x67\x0e\x4e\x27\xa2\xce\x0d\x89\x5a\xc9\x93\xa1\x61\x16\x0e\xd1\x3e\x71\x85\xc5\xf1\xeb\x83\x33\x12\xe9\x40\xf7\x22\x3f\x62\x6a\x9c\x8b\x74\x4c\x3c\xe4\xe4\x03\x79\xd3\x2c\xa6\xeb\xf0\xed\x36\xbd\xa0\x24\xb2\xb5\x62\x8f\x6e\xe1\xfd\x39\xd1\xe3\x5f\xe7\x03\xb8\x46\xf9\x5c\x90\x9f\xcf\xff\xd9\x33\x07\x1e\x64\x29\x3b\x42\x84\x5f\xc3\x12\x49\xcf\x06\x76\xbc\x6a\x3c\xe4\x72\x6c\x2a\x3b\x9f\x37\xfe\x72\x53\x7e\xf1\x35\x67\xb8\x5f\x42\x83\x2b\x7d\x7b\xff\xb6\x7d\x7f\x4d\x1f\x3f\xd0\xfd\xa1\xfc\xd4\xbb\xc6\x1e\x3d\x86\x6d\xe7\x11\xee\xbc\x20\x11\xe5\xba\x7a\xc0\xa8\xeb\x0c\xa7\xc2\x57\xd0\x13\xd0\xe9\x5f\x05\x66\xba\x27\x35\x6a\x6a\xa0\x90\x06\x27\xe9\x14\x05\x54\xd9\x83\x8a\xae\x76\x58\x2b\x3f\xa1\xde\x74\x38\xae\x30\x89\xdf\x89\x7e\xb2\x75\xe9\xcb\x9f\x00\x00\x00\xff\xff\x39\x52\xf0\xc7\xd6\x01\x00\x00") +var _mhcremediationalertYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x8e\x31\x8f\xd5\x30\x10\x84\xfb\xfc\x8a\x2d\xa1\xc8\x01\x3a\x89\xc2\x12\x48\x88\xe6\x9a\x93\xd0\x2b\x68\x10\x8a\xf6\x9c\x21\x5e\x9d\xed\x8d\x76\x37\x0f\xf8\xf7\x28\x21\x88\xd7\x9d\x2b\xcb\x9e\xef\x9b\xe1\x55\xbe\xc2\x5c\xb4\x27\x6a\xda\x25\xd4\xa4\x2f\x77\x59\x0d\xea\x77\x59\xdb\x9b\xeb\xbb\xe1\x59\xfa\x9c\xe8\x8b\x69\x43\x14\x6c\x7e\xd9\x2a\x86\x86\xe0\x99\x83\xd3\x40\xd4\xb9\x21\x51\x2b\x79\x34\x34\xcc\xc2\x21\xda\x47\xae\xb0\x38\x7f\x7d\xe5\x8c\x44\xba\xa2\x7b\x91\x1f\x31\x36\xce\x45\x3a\x46\x5e\x65\xf0\x15\x79\xd7\x2c\xa6\xdb\xea\xfb\x6d\x7c\x41\x49\x64\x5b\xc5\x11\xdd\xc3\xc7\x73\xa2\xc7\xbf\xce\x07\x70\x8d\xf2\xb9\x20\x3f\x5f\xfe\xb3\x17\x0e\x3c\xc8\x52\x0e\x84\x08\xbf\x56\x4b\x24\x3d\x1b\xd8\xf1\xaa\xf1\x2a\xd3\xb9\xa9\x1c\x7c\xde\xf9\xe9\xa6\x7c\xf2\x2d\x67\xb8\x4f\xa1\xc1\x95\xbe\xbd\x7f\xdb\xbe\xbf\xa6\x8f\x1f\xe8\xfe\x54\x7e\xea\x5d\xe3\x88\x9e\xc3\xf6\xf3\x08\x77\x5e\x90\x88\x72\xdd\x3c\x60\xd4\x75\x86\x53\xe1\x2b\xe8\x09\xe8\xf4\xaf\x02\x33\xdd\x93\x1a\x35\x35\x50\x48\x83\x93\x74\x8a\x02\xaa\xec\x41\x45\x37\x3b\xad\x95\x9f\x50\x6f\x3a\x1c\x57\x98\xc4\xef\x44\x3f\xd9\xba\xf4\x65\xf8\x13\x00\x00\xff\xff\xc9\x7e\x15\x6d\xd7\x01\x00\x00") func mhcremediationalertYamlBytes() ([]byte, error) { return bindataRead( diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/alertmanager_config_types.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/alertmanager_config_types.go deleted file mode 100644 index d64c7824731..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/alertmanager_config_types.go +++ /dev/null @@ -1,724 +0,0 @@ -// Copyright 2020 The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v1alpha1 - -import ( - "encoding/json" - "errors" - "fmt" - "regexp" - - monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" - - v1 "k8s.io/api/core/v1" - apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" -) - -const ( - Version = "v1alpha1" - - AlertmanagerConfigKind = "AlertmanagerConfig" - AlertmanagerConfigName = "alertmanagerconfigs" - AlertmanagerConfigKindKey = "alertmanagerconfig" -) - -var ( - opsGenieTypeRe = regexp.MustCompile("^(team|user|escalation|schedule)$") -) - -// AlertmanagerConfig defines a namespaced AlertmanagerConfig to be aggregated -// across multiple namespaces configuring one Alertmanager cluster. -// +genclient -// +k8s:openapi-gen=true -// +kubebuilder:resource:categories="prometheus-operator" -type AlertmanagerConfig struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec AlertmanagerConfigSpec `json:"spec"` -} - -// AlertmanagerConfigList is a list of AlertmanagerConfig. -// +k8s:openapi-gen=true -type AlertmanagerConfigList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ListMeta `json:"metadata,omitempty"` - // List of AlertmanagerConfig - Items []*AlertmanagerConfig `json:"items"` -} - -// AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration. -// By definition, the Alertmanager configuration only applies to alerts for which -// the `namespace` label is equal to the namespace of the AlertmanagerConfig resource. -type AlertmanagerConfigSpec struct { - // The Alertmanager route definition for alerts matching the resource’s - // namespace. If present, it will be added to the generated Alertmanager - // configuration as a first-level route. - // +optional - Route *Route `json:"route"` - // List of receivers. - // +optional - Receivers []Receiver `json:"receivers"` - // List of inhibition rules. The rules will only apply to alerts matching - // the resource’s namespace. - // +optional - InhibitRules []InhibitRule `json:"inhibitRules,omitempty"` -} - -// Route defines a node in the routing tree. -type Route struct { - // Name of the receiver for this route. If not empty, it should be listed in - // the `receivers` field. - // +optional - Receiver string `json:"receiver"` - // List of labels to group by. - // +optional - GroupBy []string `json:"groupBy,omitempty"` - // How long to wait before sending the initial notification. Must match the - // regular expression `[0-9]+(ms|s|m|h)` (milliseconds seconds minutes - // hours). - // +optional - GroupWait string `json:"groupWait,omitempty"` - // How long to wait before sending an updated notification. Must match the - // regular expression `[0-9]+(ms|s|m|h)` (milliseconds seconds minutes - // hours). - // +optional - GroupInterval string `json:"groupInterval,omitempty"` - // How long to wait before repeating the last notification. Must match the - // regular expression `[0-9]+(ms|s|m|h)` (milliseconds seconds minutes - // hours). - // +optional - RepeatInterval string `json:"repeatInterval,omitempty"` - // List of matchers that the alert’s labels should match. For the first - // level route, the operator removes any existing equality and regexp - // matcher on the `namespace` label and adds a `namespace: ` matcher. - // +optional - Matchers []Matcher `json:"matchers,omitempty"` - // Boolean indicating whether an alert should continue matching subsequent - // sibling nodes. It will always be overridden to true for the first-level - // route by the Prometheus operator. - // +optional - Continue bool `json:"continue,omitempty"` - // Child routes. - Routes []apiextensionsv1.JSON `json:"routes,omitempty"` - // Note: this comment applies to the field definition above but appears - // below otherwise it gets included in the generated manifest. - // CRD schema doesn't support self referential types for now (see - // https://github.com/kubernetes/kubernetes/issues/62872). We have to use - // an alternative type to circumvent the limitation. The downside is that - // the Kube API can't validate the data beyond the fact that it is a valid - // JSON representation. -} - -// ChildRoutes extracts the child routes. -func (r *Route) ChildRoutes() ([]Route, error) { - out := make([]Route, len(r.Routes)) - - for i, v := range r.Routes { - if err := json.Unmarshal(v.Raw, &out[i]); err != nil { - return nil, fmt.Errorf("route[%d]: %w", i, err) - } - } - - return out, nil -} - -// Receiver defines one or more notification integrations. -type Receiver struct { - // Name of the receiver. Must be unique across all items from the list. - // +kubebuilder:validation:MinLength=1 - Name string `json:"name"` - // List of OpsGenie configurations. - OpsGenieConfigs []OpsGenieConfig `json:"opsgenieConfigs,omitempty"` - // List of PagerDuty configurations. - PagerDutyConfigs []PagerDutyConfig `json:"pagerdutyConfigs,omitempty"` - // List of Slack configurations. - SlackConfigs []SlackConfig `json:"slackConfigs,omitempty"` - // List of webhook configurations. - WebhookConfigs []WebhookConfig `json:"webhookConfigs,omitempty"` - // List of WeChat configurations. - WeChatConfigs []WeChatConfig `json:"wechatConfigs,omitempty"` - // List of Email configurations. - EmailConfigs []EmailConfig `json:"emailConfigs,omitempty"` - // List of VictorOps configurations. - VictorOpsConfigs []VictorOpsConfig `json:"victoropsConfigs,omitempty"` - // List of Pushover configurations. - PushoverConfigs []PushoverConfig `json:"pushoverConfigs,omitempty"` -} - -// PagerDutyConfig configures notifications via PagerDuty. -// See https://prometheus.io/docs/alerting/latest/configuration/#pagerduty_config -type PagerDutyConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the PagerDuty integration key (when using - // Events API v2). Either this field or `serviceKey` needs to be defined. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - RoutingKey *v1.SecretKeySelector `json:"routingKey,omitempty"` - // The secret's key that contains the PagerDuty service key (when using - // integration type "Prometheus"). Either this field or `routingKey` needs to - // be defined. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - ServiceKey *v1.SecretKeySelector `json:"serviceKey,omitempty"` - // The URL to send requests to. - // +optional - URL string `json:"url,omitempty"` - // Client identification. - // +optional - Client string `json:"client,omitempty"` - // Backlink to the sender of notification. - // +optional - ClientURL string `json:"clientURL,omitempty"` - // Description of the incident. - // +optional - Description string `json:"description,omitempty"` - // Severity of the incident. - // +optional - Severity string `json:"severity,omitempty"` - // The class/type of the event. - // +optional - Class string `json:"class,omitempty"` - // A cluster or grouping of sources. - // +optional - Group string `json:"group,omitempty"` - // The part or component of the affected system that is broken. - // +optional - Component string `json:"component,omitempty"` - // Arbitrary key/value pairs that provide further detail about the incident. - // +optional - Details []KeyValue `json:"details,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// SlackConfig configures notifications via Slack. -// See https://prometheus.io/docs/alerting/latest/configuration/#slack_config -type SlackConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the Slack webhook URL. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - APIURL *v1.SecretKeySelector `json:"apiURL,omitempty"` - // The channel or user to send notifications to. - // +optional - Channel string `json:"channel,omitempty"` - // +optional - Username string `json:"username,omitempty"` - // +optional - Color string `json:"color,omitempty"` - // +optional - Title string `json:"title,omitempty"` - // +optional - TitleLink string `json:"titleLink,omitempty"` - // +optional - Pretext string `json:"pretext,omitempty"` - // +optional - Text string `json:"text,omitempty"` - // A list of Slack fields that are sent with each notification. - // +optional - Fields []SlackField `json:"fields,omitempty"` - // +optional - ShortFields bool `json:"shortFields,omitempty"` - // +optional - Footer string `json:"footer,omitempty"` - // +optional - Fallback string `json:"fallback,omitempty"` - // +optional - CallbackID string `json:"callbackId,omitempty"` - // +optional - IconEmoji string `json:"iconEmoji,omitempty"` - // +optional - IconURL string `json:"iconURL,omitempty"` - // +optional - ImageURL string `json:"imageURL,omitempty"` - // +optional - ThumbURL string `json:"thumbURL,omitempty"` - // +optional - LinkNames bool `json:"linkNames,omitempty"` - // +optional - MrkdwnIn []string `json:"mrkdwnIn,omitempty"` - // A list of Slack actions that are sent with each notification. - // +optional - Actions []SlackAction `json:"actions,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// Validate ensures SlackConfig is valid. -func (sc *SlackConfig) Validate() error { - for _, action := range sc.Actions { - if err := action.Validate(); err != nil { - return err - } - } - - for _, field := range sc.Fields { - if err := field.Validate(); err != nil { - return err - } - } - - return nil -} - -// SlackAction configures a single Slack action that is sent with each -// notification. -// See https://api.slack.com/docs/message-attachments#action_fields and -// https://api.slack.com/docs/message-buttons for more information. -type SlackAction struct { - // +kubebuilder:validation:MinLength=1 - Type string `json:"type"` - // +kubebuilder:validation:MinLength=1 - Text string `json:"text"` - // +optional - URL string `json:"url,omitempty"` - // +optional - Style string `json:"style,omitempty"` - // +optional - Name string `json:"name,omitempty"` - // +optional - Value string `json:"value,omitempty"` - // +optional - ConfirmField *SlackConfirmationField `json:"confirm,omitempty"` -} - -// Validate ensures SlackAction is valid. -func (sa *SlackAction) Validate() error { - if sa.Type == "" { - return errors.New("missing type in Slack action configuration") - } - - if sa.Text == "" { - return errors.New("missing text in Slack action configuration") - } - - if sa.URL == "" && sa.Name == "" { - return errors.New("missing name or url in Slack action configuration") - } - - if sa.ConfirmField != nil { - if err := sa.ConfirmField.Validate(); err != nil { - return err - } - } - - return nil -} - -// SlackConfirmationField protect users from destructive actions or -// particularly distinguished decisions by asking them to confirm their button -// click one more time. -// See https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields -// for more information. -type SlackConfirmationField struct { - // +kubebuilder:validation:MinLength=1 - Text string `json:"text"` - // +optional - Title string `json:"title,omitempty"` - // +optional - OkText string `json:"okText,omitempty"` - // +optional - DismissText string `json:"dismissText,omitempty"` -} - -// Validate ensures SlackConfirmationField is valid. -func (scf *SlackConfirmationField) Validate() error { - if scf.Text == "" { - return errors.New("missing text in Slack confirmation configuration") - } - return nil -} - -// SlackField configures a single Slack field that is sent with each notification. -// Each field must contain a title, value, and optionally, a boolean value to indicate if the field -// is short enough to be displayed next to other fields designated as short. -// See https://api.slack.com/docs/message-attachments#fields for more information. -type SlackField struct { - // +kubebuilder:validation:MinLength=1 - Title string `json:"title"` - // +kubebuilder:validation:MinLength=1 - Value string `json:"value"` - // +optional - Short *bool `json:"short,omitempty"` -} - -// Validate ensures SlackField is valid -func (sf *SlackField) Validate() error { - if sf.Title == "" { - return errors.New("missing title in Slack field configuration") - } - - if sf.Value == "" { - return errors.New("missing value in Slack field configuration") - } - - return nil -} - -// WebhookConfig configures notifications via a generic receiver supporting the webhook payload. -// See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config -type WebhookConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The URL to send HTTP POST requests to. `urlSecret` takes precedence over - // `url`. One of `urlSecret` and `url` should be defined. - // +optional - URL *string `json:"url,omitempty"` - // The secret's key that contains the webhook URL to send HTTP requests to. - // `urlSecret` takes precedence over `url`. One of `urlSecret` and `url` - // should be defined. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - URLSecret *v1.SecretKeySelector `json:"urlSecret,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` - // Maximum number of alerts to be sent per webhook message. When 0, all alerts are included. - // +optional - // +kubebuilder:validation:Minimum=0 - MaxAlerts int32 `json:"maxAlerts,omitempty"` -} - -// OpsGenieConfig configures notifications via OpsGenie. -// See https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config -type OpsGenieConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the OpsGenie API key. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - APIKey *v1.SecretKeySelector `json:"apiKey,omitempty"` - // The URL to send OpsGenie API requests to. - // +optional - APIURL string `json:"apiURL,omitempty"` - // Alert text limited to 130 characters. - // +optional - Message string `json:"message,omitempty"` - // Description of the incident. - // +optional - Description string `json:"description,omitempty"` - // Backlink to the sender of the notification. - // +optional - Source string `json:"source,omitempty"` - // Comma separated list of tags attached to the notifications. - // +optional - Tags string `json:"tags,omitempty"` - // Additional alert note. - // +optional - Note string `json:"note,omitempty"` - // Priority level of alert. Possible values are P1, P2, P3, P4, and P5. - // +optional - Priority string `json:"priority,omitempty"` - // A set of arbitrary key/value pairs that provide further detail about the incident. - // +optional - Details []KeyValue `json:"details,omitempty"` - // List of responders responsible for notifications. - // +optional - Responders []OpsGenieConfigResponder `json:"responders,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// Validate ensures OpsGenieConfig is valid -func (o *OpsGenieConfig) Validate() error { - for _, responder := range o.Responders { - if err := responder.Validate(); err != nil { - return err - } - } - return nil -} - -// OpsGenieConfigResponder defines a responder to an incident. -// One of `id`, `name` or `username` has to be defined. -type OpsGenieConfigResponder struct { - // ID of the responder. - // +optional - ID string `json:"id,omitempty"` - // Name of the responder. - // +optional - Name string `json:"name,omitempty"` - // Username of the responder. - // +optional - Username string `json:"username,omitempty"` - // Type of responder. - // +kubebuilder:validation:MinLength=1 - Type string `json:"type"` -} - -// Validate ensures OpsGenieConfigResponder is valid. -func (r *OpsGenieConfigResponder) Validate() error { - if r.ID == "" && r.Name == "" && r.Username == "" { - return errors.New("responder must have at least an ID, a Name or an Username defined") - } - - return nil -} - -// HTTPConfig defines a client HTTP configuration. -// See https://prometheus.io/docs/alerting/latest/configuration/#http_config -type HTTPConfig struct { - // BasicAuth for the client. - // +optional - BasicAuth *monitoringv1.BasicAuth `json:"basicAuth,omitempty"` - // The secret's key that contains the bearer token to be used by the client - // for authentication. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - BearerTokenSecret *v1.SecretKeySelector `json:"bearerTokenSecret,omitempty"` - // TLS configuration for the client. - // +optional - TLSConfig *monitoringv1.SafeTLSConfig `json:"tlsConfig,omitempty"` - // Optional proxy URL. - // +optional - ProxyURL string `json:"proxyURL,omitempty"` -} - -// WeChatConfig configures notifications via WeChat. -// See https://prometheus.io/docs/alerting/latest/configuration/#wechat_config -type WeChatConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the WeChat API key. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - APISecret *v1.SecretKeySelector `json:"apiSecret,omitempty"` - // The WeChat API URL. - // +optional - APIURL string `json:"apiURL,omitempty"` - // The corp id for authentication. - // +optional - CorpID string `json:"corpID,omitempty"` - // +optional - AgentID string `json:"agentID,omitempty"` - // +optional - ToUser string `json:"toUser,omitempty"` - // +optional - ToParty string `json:"toParty,omitempty"` - // +optional - ToTag string `json:"toTag,omitempty"` - // API request data as defined by the WeChat API. - Message string `json:"message,omitempty"` - // +optional - MessageType string `json:"messageType,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// EmailConfig configures notifications via Email. -type EmailConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The email address to send notifications to. - // +optional - To string `json:"to,omitempty"` - // The sender address. - // +optional - From string `json:"from,omitempty"` - // The hostname to identify to the SMTP server. - // +optional - Hello string `json:"hello,omitempty"` - // The SMTP host through which emails are sent. - // +optional - Smarthost string `json:"smarthost,omitempty"` - // The username to use for authentication. - // +optional - AuthUsername string `json:"authUsername,omitempty"` - // The secret's key that contains the password to use for authentication. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - AuthPassword *v1.SecretKeySelector `json:"authPassword,omitempty"` - // The secret's key that contains the CRAM-MD5 secret. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - AuthSecret *v1.SecretKeySelector `json:"authSecret,omitempty"` - // The identity to use for authentication. - // +optional - AuthIdentity string `json:"authIdentity,omitempty"` - // Further headers email header key/value pairs. Overrides any headers - // previously set by the notification implementation. - Headers []KeyValue `json:"headers,omitempty"` - // The HTML body of the email notification. - // +optional - HTML string `json:"html,omitempty"` - // The text body of the email notification. - // +optional - Text string `json:"text,omitempty"` - // The SMTP TLS requirement. - // Note that Go does not support unencrypted connections to remote SMTP endpoints. - // +optional - RequireTLS *bool `json:"requireTLS,omitempty"` - // TLS configuration - // +optional - TLSConfig *monitoringv1.SafeTLSConfig `json:"tlsConfig,omitempty"` -} - -// VictorOpsConfig configures notifications via VictorOps. -// See https://prometheus.io/docs/alerting/latest/configuration/#victorops_config -type VictorOpsConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the API key to use when talking to the VictorOps API. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - // +optional - APIKey *v1.SecretKeySelector `json:"apiKey,omitempty"` - // The VictorOps API URL. - // +optional - APIURL string `json:"apiUrl,omitempty"` - // A key used to map the alert to a team. - // +optional - RoutingKey string `json:"routingKey"` - // Describes the behavior of the alert (CRITICAL, WARNING, INFO). - // +optional - MessageType string `json:"messageType,omitempty"` - // Contains summary of the alerted problem. - // +optional - EntityDisplayName string `json:"entityDisplayName,omitempty"` - // Contains long explanation of the alerted problem. - // +optional - StateMessage string `json:"stateMessage,omitempty"` - // The monitoring tool the state message is from. - // +optional - MonitoringTool string `json:"monitoringTool,omitempty"` - // Additional custom fields for notification. - // +optional - CustomFields []KeyValue `json:"customFields,omitempty"` - // The HTTP client's configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// PushoverConfig configures notifications via Pushover. -// See https://prometheus.io/docs/alerting/latest/configuration/#pushover_config -type PushoverConfig struct { - // Whether or not to notify about resolved alerts. - // +optional - SendResolved *bool `json:"sendResolved,omitempty"` - // The secret's key that contains the recipient user’s user key. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - UserKey *v1.SecretKeySelector `json:"userKey,omitempty"` - // The secret's key that contains the registered application’s API token, see https://pushover.net/apps. - // The secret needs to be in the same namespace as the AlertmanagerConfig - // object and accessible by the Prometheus Operator. - Token *v1.SecretKeySelector `json:"token,omitempty"` - // Notification title. - // +optional - Title string `json:"title,omitempty"` - // Notification message. - // +optional - Message string `json:"message,omitempty"` - // A supplementary URL shown alongside the message. - // +optional - URL string `json:"url,omitempty"` - // A title for supplementary URL, otherwise just the URL is shown - // +optional - URLTitle string `json:"urlTitle,omitempty"` - // The name of one of the sounds supported by device clients to override the user's default sound choice - // +optional - Sound string `json:"sound,omitempty"` - // Priority, see https://pushover.net/api#priority - // +optional - Priority string `json:"priority,omitempty"` - // How often the Pushover servers will send the same notification to the user. - // Must be at least 30 seconds. - // +optional - Retry string `json:"retry,omitempty"` - // How long your notification will continue to be retried for, unless the user - // acknowledges the notification. - // +optional - Expire string `json:"expire,omitempty"` - // Whether notification message is HTML or plain text. - // +optional - HTML bool `json:"html,omitempty"` - // HTTP client configuration. - // +optional - HTTPConfig *HTTPConfig `json:"httpConfig,omitempty"` -} - -// InhibitRule defines an inhibition rule that allows to mute alerts when other -// alerts are already firing. -// See https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule -type InhibitRule struct { - // Matchers that have to be fulfilled in the alerts to be muted. The - // operator enforces that the alert matches the resource’s namespace. - TargetMatch []Matcher `json:"targetMatch,omitempty"` - // Matchers for which one or more alerts have to exist for the inhibition - // to take effect. The operator enforces that the alert matches the - // resource’s namespace. - SourceMatch []Matcher `json:"sourceMatch,omitempty"` - // Labels that must have an equal value in the source and target alert for - // the inhibition to take effect. - Equal []string `json:"equal,omitempty"` -} - -// KeyValue defines a (key, value) tuple. -type KeyValue struct { - // Key of the tuple. - // +kubebuilder:validation:MinLength=1 - Key string `json:"key"` - // Value of the tuple. - Value string `json:"value"` -} - -// Matcher defines how to match on alert's labels. -type Matcher struct { - // Label to match. - // +kubebuilder:validation:MinLength=1 - Name string `json:"name"` - // Label value to match. - // +optional - Value string `json:"value"` - // Whether to match on equality (false) or regular-expression (true). - // +optional - Regex bool `json:"regex,omitempty"` -} - -// DeepCopyObject implements the runtime.Object interface. -func (l *AlertmanagerConfig) DeepCopyObject() runtime.Object { - return l.DeepCopy() -} - -// DeepCopyObject implements the runtime.Object interface. -func (l *AlertmanagerConfigList) DeepCopyObject() runtime.Object { - return l.DeepCopy() -} diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/doc.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/doc.go deleted file mode 100644 index aca68fd1734..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2020 The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// +k8s:deepcopy-gen=package -// +groupName=monitoring.coreos.com - -package v1alpha1 diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/register.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/register.go deleted file mode 100644 index 42dfc9257d3..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/register.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v1alpha1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - - "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring" -) - -// SchemeGroupVersion is the group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: monitoring.GroupName, Version: Version} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -// Adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &AlertmanagerConfig{}, - &AlertmanagerConfigList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 48bcf807ee1..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,677 +0,0 @@ -// +build !ignore_autogenerated - -// Copyright The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" - corev1 "k8s.io/api/core/v1" - "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AlertmanagerConfig) DeepCopyInto(out *AlertmanagerConfig) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerConfig. -func (in *AlertmanagerConfig) DeepCopy() *AlertmanagerConfig { - if in == nil { - return nil - } - out := new(AlertmanagerConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AlertmanagerConfigList) DeepCopyInto(out *AlertmanagerConfigList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]*AlertmanagerConfig, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(AlertmanagerConfig) - (*in).DeepCopyInto(*out) - } - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerConfigList. -func (in *AlertmanagerConfigList) DeepCopy() *AlertmanagerConfigList { - if in == nil { - return nil - } - out := new(AlertmanagerConfigList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AlertmanagerConfigSpec) DeepCopyInto(out *AlertmanagerConfigSpec) { - *out = *in - if in.Route != nil { - in, out := &in.Route, &out.Route - *out = new(Route) - (*in).DeepCopyInto(*out) - } - if in.Receivers != nil { - in, out := &in.Receivers, &out.Receivers - *out = make([]Receiver, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InhibitRules != nil { - in, out := &in.InhibitRules, &out.InhibitRules - *out = make([]InhibitRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerConfigSpec. -func (in *AlertmanagerConfigSpec) DeepCopy() *AlertmanagerConfigSpec { - if in == nil { - return nil - } - out := new(AlertmanagerConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EmailConfig) DeepCopyInto(out *EmailConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.AuthPassword != nil { - in, out := &in.AuthPassword, &out.AuthPassword - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.AuthSecret != nil { - in, out := &in.AuthSecret, &out.AuthSecret - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.Headers != nil { - in, out := &in.Headers, &out.Headers - *out = make([]KeyValue, len(*in)) - copy(*out, *in) - } - if in.RequireTLS != nil { - in, out := &in.RequireTLS, &out.RequireTLS - *out = new(bool) - **out = **in - } - if in.TLSConfig != nil { - in, out := &in.TLSConfig, &out.TLSConfig - *out = new(monitoringv1.SafeTLSConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailConfig. -func (in *EmailConfig) DeepCopy() *EmailConfig { - if in == nil { - return nil - } - out := new(EmailConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPConfig) DeepCopyInto(out *HTTPConfig) { - *out = *in - if in.BasicAuth != nil { - in, out := &in.BasicAuth, &out.BasicAuth - *out = new(monitoringv1.BasicAuth) - (*in).DeepCopyInto(*out) - } - if in.BearerTokenSecret != nil { - in, out := &in.BearerTokenSecret, &out.BearerTokenSecret - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.TLSConfig != nil { - in, out := &in.TLSConfig, &out.TLSConfig - *out = new(monitoringv1.SafeTLSConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPConfig. -func (in *HTTPConfig) DeepCopy() *HTTPConfig { - if in == nil { - return nil - } - out := new(HTTPConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InhibitRule) DeepCopyInto(out *InhibitRule) { - *out = *in - if in.TargetMatch != nil { - in, out := &in.TargetMatch, &out.TargetMatch - *out = make([]Matcher, len(*in)) - copy(*out, *in) - } - if in.SourceMatch != nil { - in, out := &in.SourceMatch, &out.SourceMatch - *out = make([]Matcher, len(*in)) - copy(*out, *in) - } - if in.Equal != nil { - in, out := &in.Equal, &out.Equal - *out = make([]string, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InhibitRule. -func (in *InhibitRule) DeepCopy() *InhibitRule { - if in == nil { - return nil - } - out := new(InhibitRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyValue) DeepCopyInto(out *KeyValue) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyValue. -func (in *KeyValue) DeepCopy() *KeyValue { - if in == nil { - return nil - } - out := new(KeyValue) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Matcher) DeepCopyInto(out *Matcher) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matcher. -func (in *Matcher) DeepCopy() *Matcher { - if in == nil { - return nil - } - out := new(Matcher) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpsGenieConfig) DeepCopyInto(out *OpsGenieConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.APIKey != nil { - in, out := &in.APIKey, &out.APIKey - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.Details != nil { - in, out := &in.Details, &out.Details - *out = make([]KeyValue, len(*in)) - copy(*out, *in) - } - if in.Responders != nil { - in, out := &in.Responders, &out.Responders - *out = make([]OpsGenieConfigResponder, len(*in)) - copy(*out, *in) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsGenieConfig. -func (in *OpsGenieConfig) DeepCopy() *OpsGenieConfig { - if in == nil { - return nil - } - out := new(OpsGenieConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpsGenieConfigResponder) DeepCopyInto(out *OpsGenieConfigResponder) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpsGenieConfigResponder. -func (in *OpsGenieConfigResponder) DeepCopy() *OpsGenieConfigResponder { - if in == nil { - return nil - } - out := new(OpsGenieConfigResponder) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PagerDutyConfig) DeepCopyInto(out *PagerDutyConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.RoutingKey != nil { - in, out := &in.RoutingKey, &out.RoutingKey - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.ServiceKey != nil { - in, out := &in.ServiceKey, &out.ServiceKey - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.Details != nil { - in, out := &in.Details, &out.Details - *out = make([]KeyValue, len(*in)) - copy(*out, *in) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PagerDutyConfig. -func (in *PagerDutyConfig) DeepCopy() *PagerDutyConfig { - if in == nil { - return nil - } - out := new(PagerDutyConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PushoverConfig) DeepCopyInto(out *PushoverConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.UserKey != nil { - in, out := &in.UserKey, &out.UserKey - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PushoverConfig. -func (in *PushoverConfig) DeepCopy() *PushoverConfig { - if in == nil { - return nil - } - out := new(PushoverConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Receiver) DeepCopyInto(out *Receiver) { - *out = *in - if in.OpsGenieConfigs != nil { - in, out := &in.OpsGenieConfigs, &out.OpsGenieConfigs - *out = make([]OpsGenieConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PagerDutyConfigs != nil { - in, out := &in.PagerDutyConfigs, &out.PagerDutyConfigs - *out = make([]PagerDutyConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SlackConfigs != nil { - in, out := &in.SlackConfigs, &out.SlackConfigs - *out = make([]SlackConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.WebhookConfigs != nil { - in, out := &in.WebhookConfigs, &out.WebhookConfigs - *out = make([]WebhookConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.WeChatConfigs != nil { - in, out := &in.WeChatConfigs, &out.WeChatConfigs - *out = make([]WeChatConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.EmailConfigs != nil { - in, out := &in.EmailConfigs, &out.EmailConfigs - *out = make([]EmailConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VictorOpsConfigs != nil { - in, out := &in.VictorOpsConfigs, &out.VictorOpsConfigs - *out = make([]VictorOpsConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PushoverConfigs != nil { - in, out := &in.PushoverConfigs, &out.PushoverConfigs - *out = make([]PushoverConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver. -func (in *Receiver) DeepCopy() *Receiver { - if in == nil { - return nil - } - out := new(Receiver) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Route) DeepCopyInto(out *Route) { - *out = *in - if in.GroupBy != nil { - in, out := &in.GroupBy, &out.GroupBy - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Matchers != nil { - in, out := &in.Matchers, &out.Matchers - *out = make([]Matcher, len(*in)) - copy(*out, *in) - } - if in.Routes != nil { - in, out := &in.Routes, &out.Routes - *out = make([]v1.JSON, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route. -func (in *Route) DeepCopy() *Route { - if in == nil { - return nil - } - out := new(Route) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SlackAction) DeepCopyInto(out *SlackAction) { - *out = *in - if in.ConfirmField != nil { - in, out := &in.ConfirmField, &out.ConfirmField - *out = new(SlackConfirmationField) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackAction. -func (in *SlackAction) DeepCopy() *SlackAction { - if in == nil { - return nil - } - out := new(SlackAction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SlackConfig) DeepCopyInto(out *SlackConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.APIURL != nil { - in, out := &in.APIURL, &out.APIURL - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.Fields != nil { - in, out := &in.Fields, &out.Fields - *out = make([]SlackField, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.MrkdwnIn != nil { - in, out := &in.MrkdwnIn, &out.MrkdwnIn - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Actions != nil { - in, out := &in.Actions, &out.Actions - *out = make([]SlackAction, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackConfig. -func (in *SlackConfig) DeepCopy() *SlackConfig { - if in == nil { - return nil - } - out := new(SlackConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SlackConfirmationField) DeepCopyInto(out *SlackConfirmationField) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackConfirmationField. -func (in *SlackConfirmationField) DeepCopy() *SlackConfirmationField { - if in == nil { - return nil - } - out := new(SlackConfirmationField) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SlackField) DeepCopyInto(out *SlackField) { - *out = *in - if in.Short != nil { - in, out := &in.Short, &out.Short - *out = new(bool) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackField. -func (in *SlackField) DeepCopy() *SlackField { - if in == nil { - return nil - } - out := new(SlackField) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VictorOpsConfig) DeepCopyInto(out *VictorOpsConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.APIKey != nil { - in, out := &in.APIKey, &out.APIKey - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.CustomFields != nil { - in, out := &in.CustomFields, &out.CustomFields - *out = make([]KeyValue, len(*in)) - copy(*out, *in) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VictorOpsConfig. -func (in *VictorOpsConfig) DeepCopy() *VictorOpsConfig { - if in == nil { - return nil - } - out := new(VictorOpsConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WeChatConfig) DeepCopyInto(out *WeChatConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.APISecret != nil { - in, out := &in.APISecret, &out.APISecret - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeChatConfig. -func (in *WeChatConfig) DeepCopy() *WeChatConfig { - if in == nil { - return nil - } - out := new(WeChatConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WebhookConfig) DeepCopyInto(out *WebhookConfig) { - *out = *in - if in.SendResolved != nil { - in, out := &in.SendResolved, &out.SendResolved - *out = new(bool) - **out = **in - } - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } - if in.URLSecret != nil { - in, out := &in.URLSecret, &out.URLSecret - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } - if in.HTTPConfig != nil { - in, out := &in.HTTPConfig, &out.HTTPConfig - *out = new(HTTPConfig) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookConfig. -func (in *WebhookConfig) DeepCopy() *WebhookConfig { - if in == nil { - return nil - } - out := new(WebhookConfig) - in.DeepCopyInto(out) - return out -} diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/LICENSE b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/LICENSE deleted file mode 100644 index e06d2081865..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/doc.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/doc.go deleted file mode 100644 index c43a39bdce8..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by client-gen. DO NOT EDIT. - -// This package contains the scheme of the automatically generated clientset. -package scheme diff --git a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/register.go b/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/register.go deleted file mode 100644 index 841a1359055..00000000000 --- a/vendor/github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme/register.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright The prometheus-operator Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by client-gen. DO NOT EDIT. - -package scheme - -import ( - monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" - monitoringv1alpha1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - schema "k8s.io/apimachinery/pkg/runtime/schema" - serializer "k8s.io/apimachinery/pkg/runtime/serializer" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" -) - -var Scheme = runtime.NewScheme() -var Codecs = serializer.NewCodecFactory(Scheme) -var ParameterCodec = runtime.NewParameterCodec(Scheme) -var localSchemeBuilder = runtime.SchemeBuilder{ - monitoringv1.AddToScheme, - monitoringv1alpha1.AddToScheme, -} - -// AddToScheme adds all types of this clientset into the given scheme. This allows composition -// of clientsets, like in: -// -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) -// -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) -// -// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types -// correctly. -var AddToScheme = localSchemeBuilder.AddToScheme - -func init() { - v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) - utilruntime.Must(AddToScheme(Scheme)) -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 7162603012f..7cbe481f841 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1016,12 +1016,11 @@ github.com/polyfloyd/go-errorlint/errorlint github.com/pquerna/cachecontrol github.com/pquerna/cachecontrol/cacheobject # github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.48.1 +## explicit github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1 -github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1 # github.com/prometheus-operator/prometheus-operator/pkg/client v0.48.1 ## explicit -github.com/prometheus-operator/prometheus-operator/pkg/client/versioned/scheme # github.com/prometheus/client_golang v1.12.0 ## explicit github.com/prometheus/client_golang/prometheus