├── sinks ├── samplehttpsink │ ├── Dockerfile │ └── server.go ├── glogsink.go ├── stdoutsink.go ├── interfaces.go ├── eventdata.go ├── kafkasink.go ├── httpsink_test.go └── httpsink.go ├── config.json ├── OWNERS ├── Dockerfile ├── .gitignore ├── Makefile ├── README.md ├── CONTRIBUTING.md ├── yaml ├── eventrouter.yaml └── eventrouter-namespaced.yaml ├── eventrouter.go ├── go.mod ├── main.go ├── LICENSE └── go.sum /sinks/samplehttpsink/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.9-alpine 2 | 3 | RUN apk add --no-cache git 4 | COPY server.go . 5 | RUN go get -v -d ./... 6 | 7 | RUN go build -o httpsink 8 | ENTRYPOINT ./httpsink 9 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "kubeconfig": "/var/run/kubernetes/admin.kubeconfig", 3 | "sink": "glog", 4 | "httpSinkUrl": "http://localhost:8080", 5 | "httpSinkBufferSize": 1500, 6 | "httpSinkDiscardMessages": true, 7 | "enable-http-pprof": false 8 | } 9 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md 2 | filters: 3 | ".*": 4 | approvers: 5 | - jcantrill 6 | - alanconway 7 | - xperimental 8 | reviewers: 9 | - jcantrill 10 | - alanconway 11 | - vparfonov 12 | - cahartma 13 | - Clee2691 14 | "Dockerfile(?:\\.in)?$": # matches Dockerfile, Dockerfile.in 15 | labels: 16 | - midstream/Dockerfile 17 | component: "Logging" 18 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder 2 | WORKDIR /go/src/github.com/openshift/eventrouter 3 | USER 0 4 | 5 | COPY ./go.mod ./go.sum ./ 6 | RUN go mod download 7 | COPY Makefile *.go ./ 8 | COPY sinks ./sinks 9 | 10 | RUN make build 11 | 12 | FROM registry.access.redhat.com/ubi9/ubi-minimal 13 | 14 | ARG BUILD_VERSION=0.5.0 15 | USER 1000 16 | COPY --from=builder /go/src/github.com/openshift/eventrouter/eventrouter /bin/eventrouter 17 | CMD ["/bin/eventrouter", "-v", "3", "-logtostderr"] 18 | LABEL version="v${BUILD_VERSION}" 19 | -------------------------------------------------------------------------------- /sinks/samplehttpsink/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "io" 5 | "log" 6 | "net/http" 7 | 8 | "github.com/crewjam/rfc5424" 9 | ) 10 | 11 | func handler(w http.ResponseWriter, r *http.Request) { 12 | log.Printf("request method=%s from=%s", r.Method, r.RemoteAddr) 13 | if r.Body == nil { 14 | return 15 | } 16 | defer r.Body.Close() 17 | 18 | m := new(rfc5424.Message) 19 | discardBuf := make([]byte, 1) 20 | for { 21 | _, err := m.ReadFrom(r.Body) 22 | if err == io.EOF { 23 | break 24 | } else if err != nil { 25 | log.Fatalf("Parsing rfc5424 message failed: %+v", err) 26 | } 27 | log.Printf("%s", m.Message) 28 | 29 | // read the extraneous \n at the end of the message and discard 30 | _, _ = io.ReadFull(r.Body, discardBuf) 31 | } 32 | } 33 | 34 | func main() { 35 | log.Println("starting httpsink server") 36 | http.HandleFunc("/", handler) 37 | log.Fatal(http.ListenAndServe(":8080", nil)) 38 | } 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Go ### 2 | # Binaries for programs and plugins 3 | *.o 4 | *.a 5 | *.exe 6 | *.exe~ 7 | *.dll 8 | *.so 9 | *.dylib 10 | *.test 11 | *.prof 12 | cmd/manager/__debug_bin 13 | 14 | # Folders 15 | _obj 16 | _test 17 | 18 | # Architecture specific extensions/prefixes 19 | *.[568vq] 20 | [568vq].out 21 | 22 | *.cgo1.go 23 | *.cgo2.c 24 | _cgo_defun.c 25 | _cgo_gotypes.go 26 | _cgo_export.* 27 | 28 | _testmain.go 29 | 30 | # Idea 31 | .idea/ 32 | 33 | ### Emacs ### 34 | # -*- mode: gitignore; -*- 35 | *~ 36 | \#*\# 37 | /.emacs.desktop 38 | /.emacs.desktop.lock 39 | *.elc 40 | auto-save-list 41 | tramp 42 | .\#* 43 | 44 | ### Vim ### 45 | # swap 46 | .sw[a-p] 47 | .*.sw[a-p] 48 | # session 49 | Session.vim 50 | # temporary 51 | .netrwhist 52 | # auto-generated tag files 53 | tags 54 | 55 | ### VisualStudioCode ### 56 | .vscode/* 57 | !.vscode/settings.json 58 | !.vscode/tasks.json 59 | !.vscode/launch.json 60 | !.vscode/extensions.json 61 | .history 62 | 63 | /eventrouter 64 | 65 | .git 66 | -------------------------------------------------------------------------------- /sinks/glogsink.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "encoding/json" 21 | 22 | "github.com/golang/glog" 23 | "k8s.io/api/core/v1" 24 | ) 25 | 26 | // GlogSink is the most basic sink 27 | // Useful when you already have ELK/EFK Stack 28 | type GlogSink struct { 29 | // TODO: create a channel and buffer for scaling 30 | } 31 | 32 | // NewGlogSink will create a new 33 | func NewGlogSink() EventSinkInterface { 34 | return &GlogSink{} 35 | } 36 | 37 | // UpdateEvents implements the EventSinkInterface 38 | func (gs *GlogSink) UpdateEvents(eNew *v1.Event, eOld *v1.Event) { 39 | eData := NewEventData(eNew, eOld) 40 | 41 | if eJSONBytes, err := json.Marshal(eData); err == nil { 42 | glog.Info(string(eJSONBytes)) 43 | } else { 44 | glog.Warningf("Failed to json serialize event: %v", err) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2017 Heptio Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | TARGET = eventrouter 16 | GOTARGET = github.com/openshift/$(TARGET) 17 | BUILD_VERSION?=0.5.0 18 | CONTAINER_BUILD_ARGS ?= 19 | IMAGE_REPOSITORY_NAME ?= quay.io/openshift/logging-eventrouter:v${BUILD_VERSION} 20 | 21 | ifneq ($(VERBOSE),) 22 | VERBOSE_FLAG = -v 23 | endif 24 | TESTARGS ?= $(VERBOSE_FLAG) -timeout 60s 25 | TEST_PKGS ?= $(GOTARGET)/sinks/... 26 | TEST = go test $(TEST_PKGS) $(TESTARGS) 27 | 28 | build: fmt 29 | go build -mod=mod -o $(TARGET) 30 | .PHONY: build 31 | 32 | fmt: 33 | @echo gofmt 34 | 35 | image: 36 | podman build $(CONTAINER_BUILD_ARGS) --build-arg BUILD_VERSION=$(BUILD_VERSION) -f Dockerfile . 37 | podman tag localhost/eventrouter $(IMAGE_REPOSITORY_NAME) 38 | 39 | image-push: image 40 | podman manifest push --all $(IMAGE_REPOSITORY_NAME) docker://$(IMAGE_REPOSITORY_NAME) 41 | 42 | .PHONY: image 43 | 44 | test: 45 | go test -mod=mod $(TEST_PKGS) $(TESTARGS) 46 | .PHONY: test 47 | -------------------------------------------------------------------------------- /sinks/stdoutsink.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "encoding/json" 21 | "fmt" 22 | "os" 23 | 24 | "k8s.io/api/core/v1" 25 | ) 26 | 27 | // StdoutSink is the other basic sink 28 | // By default, Fluentd/ElasticSearch won't index glog formatted lines 29 | // By logging raw JSON to stdout, we will get automated indexing which 30 | // can be queried in Kibana. 31 | type StdoutSink struct { 32 | // TODO: create a channel and buffer for scaling 33 | } 34 | 35 | // NewStdoutSink will create a new StdoutSink with default options, returned as 36 | // an EventSinkInterface 37 | func NewStdoutSink() EventSinkInterface { 38 | return &StdoutSink{} 39 | } 40 | 41 | // UpdateEvents implements the EventSinkInterface 42 | func (gs *StdoutSink) UpdateEvents(eNew *v1.Event, eOld *v1.Event) { 43 | eData := NewEventData(eNew, eOld) 44 | 45 | if eJSONBytes, err := json.Marshal(eData); err == nil { 46 | fmt.Println(string(eJSONBytes)) 47 | } else { 48 | fmt.Fprintf(os.Stderr, "Failed to json serialize event: %v", err) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Eventrouter 2 | 3 | This repository contains a simple event router for the [Kubernetes][kubernetes] project. The event router serves as an active watcher of _event_ resource in the kubernetes system, which takes those events and _pushes_ them to a user specified _sink_. This is useful for a number of different purposes, but most notably long term behavioral analysis of your 4 | workloads running on your kubernetes cluster. 5 | 6 | ## Goals 7 | 8 | This project has several objectives, which include: 9 | 10 | * Persist events for longer period of time to allow for system debugging 11 | * Allows operators to forward events to other system(s) for archiving/ML/introspection/etc. 12 | * It should be relatively low overhead 13 | * Support for multiple _sinks_ should be configurable 14 | 15 | ### NOTE: 16 | 17 | By default, eventrouter is configured to leverage existing EFK stacks by outputting wrapped json object which are easy to index in elastic search. 18 | 19 | ## Non-Goals: 20 | 21 | * This service does not provide a querable extension, that is a responsibility of the 22 | _sink_ 23 | * This service does not serve as a storage layer, that is also the responsibility of the _sink_ 24 | 25 | ## Running Eventrouter 26 | Standup: 27 | ``` 28 | $ kubectl create -f https://raw.githubusercontent.com/openshift/eventrouter/master/yaml/eventrouter.yaml 29 | ``` 30 | Teardown: 31 | ``` 32 | $ kubectl delete -f https://raw.githubusercontent.com/openshift/eventrouter/master/yaml/eventrouter.yaml 33 | ``` 34 | 35 | ### Inspecting the output 36 | ``` 37 | $ kubectl logs -f deployment/eventrouter -n kube-system 38 | ``` 39 | 40 | Watch events roll through the system and hopefully stream into your ES cluster for mining, Hooray! 41 | 42 | [kubernetes]: https://github.com/kubernetes/kubernetes/ "Kubernetes" 43 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## DCO Sign off 2 | 3 | All authors to the project retain copyright to their work. However, to ensure 4 | that they are only submitting work that they have rights to, we are requiring 5 | everyone to acknowldge this by signing their work. 6 | 7 | Any copyright notices in this repos should specify the authors as "the contributors". 8 | 9 | To sign your work, just add a line like this at the end of your commit message: 10 | 11 | ``` 12 | Signed-off-by: Joe Beda 13 | ``` 14 | 15 | This can easily be done with the `--signoff` option to `git commit`. 16 | 17 | By doing this you state that you can certify the following (from https://developercertificate.org/): 18 | 19 | ``` 20 | Developer Certificate of Origin 21 | Version 1.1 22 | 23 | Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 24 | 1 Letterman Drive 25 | Suite D4700 26 | San Francisco, CA, 94129 27 | 28 | Everyone is permitted to copy and distribute verbatim copies of this 29 | license document, but changing it is not allowed. 30 | 31 | 32 | Developer's Certificate of Origin 1.1 33 | 34 | By making a contribution to this project, I certify that: 35 | 36 | (a) The contribution was created in whole or in part by me and I 37 | have the right to submit it under the open source license 38 | indicated in the file; or 39 | 40 | (b) The contribution is based upon previous work that, to the best 41 | of my knowledge, is covered under an appropriate open source 42 | license and I have the right under that license to submit that 43 | work with modifications, whether created in whole or in part 44 | by me, under the same open source license (unless I am 45 | permitted to submit under a different license), as indicated 46 | in the file; or 47 | 48 | (c) The contribution was provided directly to me by some other 49 | person who certified (a), (b) or (c) and I have not modified 50 | it. 51 | 52 | (d) I understand and agree that this project and the contribution 53 | are public and that a record of the contribution (including all 54 | personal information I submit with it, including my sign-off) is 55 | maintained indefinitely and may be redistributed consistent with 56 | this project or the open source license(s) involved. 57 | ``` -------------------------------------------------------------------------------- /yaml/eventrouter.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2017 Heptio Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | apiVersion: v1 16 | kind: ServiceAccount 17 | metadata: 18 | name: eventrouter 19 | namespace: kube-system 20 | --- 21 | apiVersion: rbac.authorization.k8s.io/v1 22 | kind: ClusterRole 23 | metadata: 24 | name: eventrouter 25 | rules: 26 | - apiGroups: [""] 27 | resources: ["events"] 28 | verbs: ["get", "watch", "list"] 29 | --- 30 | apiVersion: rbac.authorization.k8s.io/v1 31 | kind: ClusterRoleBinding 32 | metadata: 33 | name: eventrouter 34 | roleRef: 35 | apiGroup: rbac.authorization.k8s.io 36 | kind: ClusterRole 37 | name: eventrouter 38 | subjects: 39 | - kind: ServiceAccount 40 | name: eventrouter 41 | namespace: kube-system 42 | --- 43 | apiVersion: v1 44 | data: 45 | config.json: |- 46 | { 47 | "sink": "stdout" 48 | } 49 | kind: ConfigMap 50 | metadata: 51 | name: eventrouter-cm 52 | namespace: kube-system 53 | --- 54 | apiVersion: apps/v1 55 | kind: Deployment 56 | metadata: 57 | name: eventrouter 58 | namespace: kube-system 59 | labels: 60 | app: eventrouter 61 | spec: 62 | replicas: 1 63 | selector: 64 | matchLabels: 65 | app: eventrouter 66 | template: 67 | metadata: 68 | labels: 69 | app: eventrouter 70 | tier: control-plane-addons 71 | spec: 72 | containers: 73 | - name: kube-eventrouter 74 | image: registry.redhat.io/openshift-logging/eventrouter-rhel8:v0.3 75 | resources: 76 | requests: 77 | cpu: 100m 78 | memory: 128Mi 79 | imagePullPolicy: IfNotPresent 80 | volumeMounts: 81 | - name: config-volume 82 | mountPath: /etc/eventrouter 83 | serviceAccountName: eventrouter 84 | volumes: 85 | - name: config-volume 86 | configMap: 87 | name: eventrouter-cm 88 | -------------------------------------------------------------------------------- /yaml/eventrouter-namespaced.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2017 Heptio Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | apiVersion: v1 16 | kind: ServiceAccount 17 | metadata: 18 | name: eventrouter 19 | namespace: kube-system 20 | --- 21 | apiVersion: rbac.authorization.k8s.io/v1 22 | kind: ClusterRole 23 | metadata: 24 | name: eventrouter 25 | rules: 26 | - apiGroups: [""] 27 | resources: ["events"] 28 | verbs: ["get", "watch", "list"] 29 | --- 30 | apiVersion: rbac.authorization.k8s.io/v1 31 | kind: ClusterRoleBinding 32 | metadata: 33 | name: eventrouter 34 | roleRef: 35 | apiGroup: rbac.authorization.k8s.io 36 | kind: ClusterRole 37 | name: eventrouter 38 | subjects: 39 | - kind: ServiceAccount 40 | name: eventrouter 41 | namespace: kube-system 42 | --- 43 | apiVersion: v1 44 | data: 45 | config.json: |- 46 | { 47 | "sink": "stdout" 48 | } 49 | kind: ConfigMap 50 | metadata: 51 | name: eventrouter-cm 52 | namespace: kube-system 53 | --- 54 | apiVersion: apps/v1 55 | kind: Deployment 56 | metadata: 57 | name: eventrouter 58 | namespace: kube-system 59 | labels: 60 | app: eventrouter 61 | spec: 62 | replicas: 1 63 | selector: 64 | matchLabels: 65 | app: eventrouter 66 | template: 67 | metadata: 68 | labels: 69 | app: eventrouter 70 | tier: control-plane-addons 71 | spec: 72 | containers: 73 | - name: kube-eventrouter 74 | image: registry.redhat.io/openshift-logging/eventrouter-rhel8:v0.3 75 | resources: 76 | requests: 77 | cpu: 100m 78 | memory: 128Mi 79 | imagePullPolicy: IfNotPresent 80 | volumeMounts: 81 | - name: config-volume 82 | mountPath: /etc/eventrouter 83 | env: 84 | - name: WATCH_NAMESPACE 85 | valueFrom: 86 | fieldRef: 87 | fieldPath: metadata.namespace 88 | serviceAccountName: eventrouter 89 | volumes: 90 | - name: config-volume 91 | configMap: 92 | name: eventrouter-cm 93 | -------------------------------------------------------------------------------- /sinks/interfaces.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "errors" 21 | 22 | "github.com/golang/glog" 23 | "github.com/spf13/viper" 24 | 25 | "k8s.io/api/core/v1" 26 | ) 27 | 28 | // EventSinkInterface is the interface used to shunt events 29 | type EventSinkInterface interface { 30 | UpdateEvents(eNew *v1.Event, eOld *v1.Event) 31 | } 32 | 33 | // ManufactureSink will manufacture a sink according to viper configs 34 | // TODO: Determine if it should return an array of sinks 35 | func ManufactureSink() (e EventSinkInterface) { 36 | s := viper.GetString("sink") 37 | glog.Infof("Sink is [%v]", s) 38 | switch s { 39 | case "glog": 40 | e = NewGlogSink() 41 | case "stdout": 42 | e = NewStdoutSink() 43 | case "http": 44 | url := viper.GetString("httpSinkUrl") 45 | if url == "" { 46 | panic("http sync specified but no httpSinkUrl") 47 | } 48 | 49 | // By default we buffer up to 1500 events, and drop messages if more than 50 | // 1500 have come in without getting consumed 51 | viper.SetDefault("httpSinkBufferSize", 1500) 52 | viper.SetDefault("httpSinkDiscardMessages", true) 53 | 54 | bufferSize := viper.GetInt("httpSinkBufferSize") 55 | overflow := viper.GetBool("httpSinkDiscardMessages") 56 | 57 | h := NewHTTPSink(url, overflow, bufferSize) 58 | go h.Run(make(chan bool)) 59 | return h 60 | case "kafka": 61 | viper.SetDefault("kafkaBrokers", []string{"kafka:9092"}) 62 | viper.SetDefault("kafkaTopic", "eventrouter") 63 | viper.SetDefault("kafkaAsync", true) 64 | viper.SetDefault("kafkaRetryMax", 5) 65 | 66 | brokers := viper.GetStringSlice("kafkaBrokers") 67 | topic := viper.GetString("kafkaTopic") 68 | async := viper.GetBool("kakfkaAsync") 69 | retryMax := viper.GetInt("kafkaRetryMax") 70 | 71 | e, err := NewKafkaSink(brokers, topic, async, retryMax) 72 | if err != nil { 73 | panic(err.Error()) 74 | } 75 | return e 76 | // case "logfile" 77 | default: 78 | err := errors.New("Invalid Sink Specified") 79 | panic(err.Error()) 80 | } 81 | return e 82 | } 83 | -------------------------------------------------------------------------------- /sinks/eventdata.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "encoding/json" 21 | "fmt" 22 | "io" 23 | 24 | "github.com/crewjam/rfc5424" 25 | "k8s.io/api/core/v1" 26 | ) 27 | 28 | // EventData encodes an eventrouter event and previous event, with a verb for 29 | // whether the event is created or updated. 30 | type EventData struct { 31 | Verb string `json:"verb"` 32 | Event *v1.Event `json:"event"` 33 | OldEvent *v1.Event `json:"old_event,omitempty"` 34 | } 35 | 36 | // NewEventData constructs an EventData struct from an old and new event, 37 | // setting the verb accordingly 38 | func NewEventData(eNew *v1.Event, eOld *v1.Event) EventData { 39 | var eData EventData 40 | if eOld == nil { 41 | eData = EventData{ 42 | Verb: "ADDED", 43 | Event: eNew, 44 | } 45 | } else { 46 | eData = EventData{ 47 | Verb: "UPDATED", 48 | Event: eNew, 49 | OldEvent: eOld, 50 | } 51 | } 52 | 53 | return eData 54 | } 55 | 56 | // WriteRFC5424 writes the current event data to the given io.Writer using 57 | // RFC5424 (syslog over TCP) syntax. 58 | func (e *EventData) WriteRFC5424(w io.Writer) (int64, error) { 59 | var eJSONBytes []byte 60 | var err error 61 | if eJSONBytes, err = json.Marshal(e); err != nil { 62 | return 0, fmt.Errorf("failed to json serialize event: %v", err) 63 | } 64 | 65 | // Each message should look like an RFC5424 syslog message: 66 | // 67 | // 68 | // Note: There are some restrictions on length and character space for 69 | // Hostname and AppName, see 70 | // https://github.com/crewjam/rfc5424/blob/master/marshal.go#L90. There's no 71 | // attempt at trying to clean them up here because hostnames and component 72 | // names already adhere to this convention in practice. 73 | msg := rfc5424.Message{ 74 | Priority: rfc5424.Daemon, 75 | Timestamp: e.Event.LastTimestamp.Time, 76 | Hostname: e.Event.Source.Host, 77 | AppName: e.Event.Source.Component, 78 | Message: eJSONBytes, 79 | } 80 | 81 | return msg.WriteTo(w) 82 | } 83 | -------------------------------------------------------------------------------- /sinks/kafkasink.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Contributors 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "encoding/json" 21 | "github.com/Shopify/sarama" 22 | "github.com/golang/glog" 23 | "k8s.io/api/core/v1" 24 | ) 25 | 26 | // KafkaSink implements the EventSinkInterface 27 | type KafkaSink struct { 28 | Topic string 29 | producer interface{} 30 | } 31 | 32 | // NewKafkaSinkSink will create a new KafkaSink with default options, returned as an EventSinkInterface 33 | func NewKafkaSink(brokers []string, topic string, async bool, retryMax int) (EventSinkInterface, error) { 34 | 35 | p, err := sinkFactory(brokers, async, retryMax) 36 | 37 | if err != nil { 38 | return nil, err 39 | } 40 | 41 | return &KafkaSink{ 42 | Topic: topic, 43 | producer: p, 44 | }, err 45 | } 46 | 47 | func sinkFactory(brokers []string, async bool, retryMax int) (interface{}, error) { 48 | config := sarama.NewConfig() 49 | config.Producer.Retry.Max = retryMax 50 | config.Producer.RequiredAcks = sarama.WaitForAll 51 | 52 | if async { 53 | return sarama.NewAsyncProducer(brokers, config) 54 | } 55 | 56 | config.Producer.Return.Successes = true 57 | return sarama.NewSyncProducer(brokers, config) 58 | 59 | } 60 | 61 | // UpdateEvents implements EventSinkInterface.UpdateEvents 62 | func (ks *KafkaSink) UpdateEvents(eNew *v1.Event, eOld *v1.Event) { 63 | 64 | eData := NewEventData(eNew, eOld) 65 | 66 | eJSONBytes, err := json.Marshal(eData) 67 | if err != nil { 68 | glog.Errorf("Failed to json serialize event: %v", err) 69 | return 70 | } 71 | msg := &sarama.ProducerMessage{ 72 | Topic: ks.Topic, 73 | Key: sarama.StringEncoder(eNew.InvolvedObject.Name), 74 | Value: sarama.ByteEncoder(eJSONBytes), 75 | } 76 | 77 | switch p := ks.producer.(type) { 78 | case sarama.SyncProducer: 79 | partition, offset, err := p.SendMessage(msg) 80 | if err != nil { 81 | glog.Errorf("Failed to send to: topic(%s)/partition(%d)/offset(%d)\n", 82 | ks.Topic, partition, offset) 83 | } 84 | 85 | case sarama.AsyncProducer: 86 | select { 87 | case p.Input() <- msg: 88 | case err := <-p.Errors(): 89 | glog.Errorf("Failed to produce message: %v", err) 90 | } 91 | 92 | default: 93 | glog.Errorf("Unhandled producer type: %s", p) 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /eventrouter.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package main 18 | 19 | import ( 20 | "fmt" 21 | 22 | "github.com/golang/glog" 23 | "github.com/openshift/eventrouter/sinks" 24 | v1 "k8s.io/api/core/v1" 25 | utilruntime "k8s.io/apimachinery/pkg/util/runtime" 26 | coreinformers "k8s.io/client-go/informers/core/v1" 27 | "k8s.io/client-go/kubernetes" 28 | corelisters "k8s.io/client-go/listers/core/v1" 29 | "k8s.io/client-go/tools/cache" 30 | ) 31 | 32 | // EventRouter is responsible for maintaining a stream of kubernetes 33 | // system Events and pushing them to another channel for storage 34 | type EventRouter struct { 35 | // kubeclient is the main kubernetes interface 36 | kubeClient kubernetes.Interface 37 | 38 | // store of events populated by the shared informer 39 | eLister corelisters.EventLister 40 | 41 | // returns true if the event store has been synced 42 | eListerSynched cache.InformerSynced 43 | 44 | // event sink 45 | // TODO: Determine if we want to support multiple sinks. 46 | eSink sinks.EventSinkInterface 47 | } 48 | 49 | // NewEventRouter will create a new event router using the input params 50 | func NewEventRouter(kubeClient kubernetes.Interface, eventsInformer coreinformers.EventInformer) *EventRouter { 51 | er := &EventRouter{ 52 | kubeClient: kubeClient, 53 | eSink: sinks.ManufactureSink(), 54 | } 55 | eventsInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ 56 | AddFunc: er.addEvent, 57 | UpdateFunc: er.updateEvent, 58 | DeleteFunc: er.deleteEvent, 59 | }) 60 | er.eLister = eventsInformer.Lister() 61 | er.eListerSynched = eventsInformer.Informer().HasSynced 62 | return er 63 | } 64 | 65 | // Run starts the EventRouter/Controller. 66 | func (er *EventRouter) Run(stopCh <-chan struct{}) { 67 | defer utilruntime.HandleCrash() 68 | defer glog.Infof("Shutting down EventRouter") 69 | 70 | glog.Infof("Starting EvenRouter") 71 | 72 | // here is where we kick the caches into gear 73 | if !cache.WaitForCacheSync(stopCh, er.eListerSynched) { 74 | utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync")) 75 | return 76 | } 77 | <-stopCh 78 | } 79 | 80 | // addEvent is called when an event is created, or during the initial list 81 | func (er *EventRouter) addEvent(obj interface{}) { 82 | e, ok := obj.(*v1.Event) 83 | if !ok { 84 | glog.Error("Given object '%v' not v1.Event", obj) 85 | return 86 | } 87 | er.eSink.UpdateEvents(e, nil) 88 | } 89 | 90 | // updateEvent is called any time there is an update to an existing event 91 | func (er *EventRouter) updateEvent(objOld interface{}, objNew interface{}) { 92 | eOld, ok := objOld.(*v1.Event) 93 | if !ok { 94 | glog.Error("Given object '%v' not v1.Event", objOld) 95 | return 96 | } 97 | eNew, ok := objNew.(*v1.Event) 98 | if !ok { 99 | glog.Error("Given object '%v' not v1.Event", objNew) 100 | return 101 | } 102 | if eOld.ResourceVersion == eNew.ResourceVersion { 103 | // change nothing so we can skip it 104 | return 105 | } 106 | er.eSink.UpdateEvents(eNew, eOld) 107 | } 108 | 109 | // deleteEvent should only occur when the system garbage collects events via TTL expiration 110 | func (er *EventRouter) deleteEvent(obj interface{}) { 111 | e, ok := obj.(*v1.Event) 112 | if !ok { 113 | glog.Error("Given object '%v' not v1.Event", obj) 114 | return 115 | } 116 | // NOTE: This should *only* happen on TTL expiration there 117 | // is no reason to push this to a sink 118 | glog.V(5).Infof("Event Deleted from the system:\n%v", e) 119 | } 120 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/openshift/eventrouter 2 | 3 | go 1.23.0 4 | 5 | toolchain go1.23.4 6 | 7 | require ( 8 | github.com/Shopify/sarama v1.23.1 9 | github.com/crewjam/rfc5424 v0.0.0-20180723152949-c25bdd3a0ba2 10 | github.com/eapache/channels v1.1.0 11 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b 12 | github.com/prometheus/client_golang v1.19.1 13 | github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0 14 | github.com/spf13/viper v1.4.0 15 | k8s.io/api v0.32.2 16 | k8s.io/apimachinery v0.32.2 17 | k8s.io/client-go v0.32.2 18 | ) 19 | 20 | require ( 21 | github.com/DataDog/zstd v1.3.6-0.20190409195224-796139022798 // indirect 22 | github.com/beorn7/perks v1.0.1 // indirect 23 | github.com/cespare/xxhash/v2 v2.2.0 // indirect 24 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect 25 | github.com/eapache/go-resiliency v1.1.0 // indirect 26 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect 27 | github.com/eapache/queue v1.1.0 // indirect 28 | github.com/emicklei/go-restful/v3 v3.11.0 // indirect 29 | github.com/fsnotify/fsnotify v1.4.9 // indirect 30 | github.com/fxamacker/cbor/v2 v2.7.0 // indirect 31 | github.com/go-logr/logr v1.4.2 // indirect 32 | github.com/go-openapi/jsonpointer v0.21.0 // indirect 33 | github.com/go-openapi/jsonreference v0.20.2 // indirect 34 | github.com/go-openapi/swag v0.23.0 // indirect 35 | github.com/gogo/protobuf v1.3.2 // indirect 36 | github.com/golang/protobuf v1.5.4 // indirect 37 | github.com/golang/snappy v0.0.1 // indirect 38 | github.com/google/gnostic-models v0.6.8 // indirect 39 | github.com/google/go-cmp v0.6.0 // indirect 40 | github.com/google/gofuzz v1.2.0 // indirect 41 | github.com/google/uuid v1.6.0 // indirect 42 | github.com/hashicorp/go-uuid v1.0.1 // indirect 43 | github.com/hashicorp/hcl v1.0.0 // indirect 44 | github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03 // indirect 45 | github.com/josharian/intern v1.0.0 // indirect 46 | github.com/json-iterator/go v1.1.12 // indirect 47 | github.com/magiconair/properties v1.8.0 // indirect 48 | github.com/mailru/easyjson v0.7.7 // indirect 49 | github.com/mitchellh/mapstructure v1.1.2 // indirect 50 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect 51 | github.com/modern-go/reflect2 v1.0.2 // indirect 52 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect 53 | github.com/pelletier/go-toml v1.2.0 // indirect 54 | github.com/pierrec/lz4 v0.0.0-20190327172049-315a67e90e41 // indirect 55 | github.com/pkg/errors v0.9.1 // indirect 56 | github.com/prometheus/client_model v0.5.0 // indirect 57 | github.com/prometheus/common v0.48.0 // indirect 58 | github.com/prometheus/procfs v0.12.0 // indirect 59 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a // indirect 60 | github.com/spf13/afero v1.2.2 // indirect 61 | github.com/spf13/cast v1.3.0 // indirect 62 | github.com/spf13/jwalterweatherman v1.0.0 // indirect 63 | github.com/spf13/pflag v1.0.5 // indirect 64 | github.com/x448/float16 v0.8.4 // indirect 65 | golang.org/x/crypto v0.28.0 // indirect 66 | golang.org/x/net v0.30.0 // indirect 67 | golang.org/x/oauth2 v0.23.0 // indirect 68 | golang.org/x/sys v0.26.0 // indirect 69 | golang.org/x/term v0.25.0 // indirect 70 | golang.org/x/text v0.19.0 // indirect 71 | golang.org/x/time v0.7.0 // indirect 72 | google.golang.org/protobuf v1.35.1 // indirect 73 | gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect 74 | gopkg.in/inf.v0 v0.9.1 // indirect 75 | gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect 76 | gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect 77 | gopkg.in/jcmturner/goidentity.v3 v3.0.0 // indirect 78 | gopkg.in/jcmturner/gokrb5.v7 v7.2.3 // indirect 79 | gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect 80 | gopkg.in/yaml.v2 v2.4.0 // indirect 81 | gopkg.in/yaml.v3 v3.0.1 // indirect 82 | k8s.io/klog/v2 v2.130.1 // indirect 83 | k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect 84 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect 85 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect 86 | sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect 87 | sigs.k8s.io/yaml v1.4.0 // indirect 88 | ) 89 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package main 18 | 19 | import ( 20 | "flag" 21 | "net/http" 22 | "net/http/pprof" 23 | "os" 24 | "os/signal" 25 | "sync" 26 | "syscall" 27 | "time" 28 | 29 | "github.com/golang/glog" 30 | "github.com/prometheus/client_golang/prometheus/promhttp" 31 | "github.com/spf13/viper" 32 | 33 | "k8s.io/client-go/informers" 34 | "k8s.io/client-go/kubernetes" 35 | "k8s.io/client-go/rest" 36 | "k8s.io/client-go/tools/clientcmd" 37 | ) 38 | 39 | // addr tells us what address to have the Prometheus metrics listen on. 40 | var addr = flag.String("listen-address", ":8080", "The address to listen on for HTTP requests.") 41 | 42 | // setup a signal hander to gracefully exit 43 | func sigHandler() <-chan struct{} { 44 | stop := make(chan struct{}) 45 | go func() { 46 | c := make(chan os.Signal, 1) 47 | signal.Notify(c, 48 | syscall.SIGINT, // Ctrl+C 49 | syscall.SIGTERM, // Termination Request 50 | syscall.SIGSEGV, // FullDerp 51 | syscall.SIGABRT, // Abnormal termination 52 | syscall.SIGILL, // illegal instruction 53 | syscall.SIGFPE) // floating point - this is why we can't have nice things 54 | sig := <-c 55 | glog.Warningf("Signal (%v) Detected, Shutting Down", sig) 56 | close(stop) 57 | }() 58 | return stop 59 | } 60 | 61 | // loadConfig will parse input + config file and return a clientset 62 | func loadConfig() kubernetes.Interface { 63 | var config *rest.Config 64 | var err error 65 | 66 | flag.Parse() 67 | 68 | // leverages a file|(ConfigMap) 69 | // to be located at /etc/eventrouter/config 70 | viper.SetConfigType("json") 71 | viper.SetConfigName("config") 72 | viper.AddConfigPath("/etc/eventrouter/") 73 | viper.AddConfigPath(".") 74 | viper.SetDefault("kubeconfig", "") 75 | viper.SetDefault("sink", "glog") 76 | viper.SetDefault("resync-interval", time.Minute*30) 77 | viper.SetDefault("enable-prometheus", true) 78 | viper.SetDefault("enable-http-pprof", false) 79 | if err = viper.ReadInConfig(); err != nil { 80 | panic(err.Error()) 81 | } 82 | 83 | viper.BindEnv("kubeconfig") // Allows the KUBECONFIG env var to override where the kubeconfig is 84 | viper.BindEnv("WATCH_NAMESPACE") 85 | 86 | // Allow specifying a custom config file via the EVENTROUTER_CONFIG env var 87 | if forceCfg := os.Getenv("EVENTROUTER_CONFIG"); forceCfg != "" { 88 | viper.SetConfigFile(forceCfg) 89 | } 90 | kubeconfig := viper.GetString("kubeconfig") 91 | if len(kubeconfig) > 0 { 92 | config, err = clientcmd.BuildConfigFromFlags("", kubeconfig) 93 | } else { 94 | config, err = rest.InClusterConfig() 95 | } 96 | if err != nil { 97 | panic(err.Error()) 98 | } 99 | 100 | // creates the clientset from kubeconfig 101 | clientset, err := kubernetes.NewForConfig(config) 102 | if err != nil { 103 | panic(err.Error()) 104 | } 105 | return clientset 106 | } 107 | 108 | // main entry point of the program 109 | func main() { 110 | var wg sync.WaitGroup 111 | clientset := loadConfig() 112 | sharedInformers := informers.NewSharedInformerFactoryWithOptions(clientset, viper.GetDuration("resync-interval"), informers.WithNamespace(viper.GetString("WATCH_NAMESPACE"))) 113 | eventsInformer := sharedInformers.Core().V1().Events() 114 | 115 | // TODO: Support locking for HA https://github.com/kubernetes/kubernetes/pull/42666 116 | eventRouter := NewEventRouter(clientset, eventsInformer) 117 | stop := sigHandler() 118 | 119 | mux := http.NewServeMux() 120 | 121 | // Add handler for /debug/pprof 122 | if viper.GetBool("enable-http-pprof") { 123 | glog.Info("Starting http/pprof handler.") 124 | 125 | // copied from net/http/pprof init() 126 | mux.HandleFunc("/debug/pprof/", pprof.Index) 127 | mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) 128 | mux.HandleFunc("/debug/pprof/profile", pprof.Profile) 129 | mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) 130 | mux.HandleFunc("/debug/pprof/trace", pprof.Trace) 131 | } 132 | 133 | // Add handler for /metrics 134 | if viper.GetBool("enable-prometheus") { 135 | glog.Info("Starting prometheus metrics.") 136 | mux.Handle("/metrics", promhttp.Handler()) 137 | } 138 | 139 | // Start the http listener for Prometheus Metrics or pprof debugging 140 | if viper.GetBool("enable-http-pprof") || viper.GetBool("enable-prometheus") { 141 | go func() { 142 | glog.Warning(http.ListenAndServe(*addr, mux)) 143 | }() 144 | } 145 | 146 | // Startup the EventRouter 147 | wg.Add(1) 148 | go func() { 149 | defer wg.Done() 150 | eventRouter.Run(stop) 151 | }() 152 | 153 | // Startup the Informer(s) 154 | glog.Infof("Starting shared Informer(s)") 155 | sharedInformers.Start(stop) 156 | wg.Wait() 157 | glog.Warningf("Exiting main()") 158 | os.Exit(1) 159 | } 160 | -------------------------------------------------------------------------------- /sinks/httpsink_test.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "bytes" 21 | "fmt" 22 | "io" 23 | "net/http" 24 | "net/http/httptest" 25 | "strconv" 26 | "strings" 27 | "testing" 28 | "time" 29 | 30 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 31 | "k8s.io/client-go/kubernetes/scheme" 32 | ref "k8s.io/client-go/tools/reference" 33 | 34 | "k8s.io/api/core/v1" 35 | ) 36 | 37 | func TestUpdateEvents(t *testing.T) { 38 | stopCh := make(chan bool, 1) 39 | doneCh := make(chan bool, 1) 40 | 41 | got := bytes.NewBuffer(nil) 42 | seenRequests := make([]*http.Request, 0) 43 | mockStatus := http.StatusOK 44 | 45 | // Make a test server to send stuff too... it just copies its input to the 46 | // `got` buffer and records the request. 47 | srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 48 | seenRequests = append(seenRequests, r) 49 | io.Copy(got, r.Body) 50 | w.WriteHeader(mockStatus) 51 | })) 52 | defer srv.Close() 53 | 54 | testPod := &v1.Pod{ 55 | TypeMeta: metav1.TypeMeta{ 56 | Kind: "Pod", 57 | }, 58 | ObjectMeta: metav1.ObjectMeta{ 59 | SelfLink: "/api/version/pods/foo", 60 | Name: "foo", 61 | Namespace: "baz", 62 | UID: "bar", 63 | }, 64 | Spec: v1.PodSpec{}, 65 | } 66 | podRef, err := ref.GetReference(scheme.Scheme, testPod) 67 | if err != nil { 68 | t.Fatalf(err.Error()) 69 | } 70 | 71 | evt := makeFakeEvent(podRef, v1.EventTypeWarning, "CreateInCluster", "Fake pod creation event") 72 | 73 | // 1. Try with a synchronous channel 74 | sink := NewHTTPSink(srv.URL, false, 0) 75 | go func() { 76 | sink.Run(stopCh) 77 | doneCh <- true 78 | }() 79 | 80 | // Send the event 81 | sink.UpdateEvents(evt, nil) 82 | stopCh <- true 83 | <-doneCh 84 | 85 | if got.Len() == 0 { 86 | t.Errorf("Sent logs but didn't read any back") 87 | } 88 | 89 | // 2. Try with the server returning 500's, test retries 90 | got.Truncate(0) 91 | seenRequests = make([]*http.Request, 0) 92 | sink = NewHTTPSink(srv.URL, false, 10) 93 | 94 | go func() { 95 | sink.Run(stopCh) 96 | doneCh <- true 97 | }() 98 | 99 | // Send the event, sleep to ensure the request is attempted 100 | mockStatus = http.StatusInternalServerError 101 | sink.UpdateEvents(evt, nil) 102 | // TODO(SLEEP): this can result in flakes if the events aren't sent yet. 103 | time.Sleep(100 * time.Millisecond) 104 | mockStatus = http.StatusOK 105 | 106 | // Start the server, then send the stop chan. Since it's synchronous, the HTTP 107 | // client should still be trying to retry, so it won't read from the stop chan 108 | // again until it's finished retrying 109 | stopCh <- true 110 | <-doneCh 111 | 112 | if got.Len() == 0 { 113 | t.Errorf("Sent logs but didn't read any back. HTTP error log: %v", sink.httpClient.ErrLog) 114 | } 115 | if len(seenRequests) < 2 { 116 | t.Errorf("Tried to simulate server errors for retry, more than one request should have been sent") 117 | } 118 | 119 | // 3. Try with an overflowing channel, write a bunch of events out, only 10 120 | // should be consumed (the rest discarded, since we're not running the 121 | // processing loop yet.) 122 | numExpected := 10 123 | got.Truncate(0) 124 | seenRequests = make([]*http.Request, 0) 125 | sink = NewHTTPSink(srv.URL, true, numExpected) 126 | 127 | for i := 0; i < 1000; i++ { 128 | evt.Message = "msg " + strconv.Itoa(i) 129 | sink.UpdateEvents(evt, nil) 130 | } 131 | 132 | go func() { 133 | sink.Run(stopCh) 134 | doneCh <- true 135 | }() 136 | 137 | // TODO(SLEEP): Let the events go through (yes, sleeping is lame but there's 138 | // no easy way to synchronize this since the code is supposed to be 139 | // non-blocking.) 140 | time.Sleep(100 * time.Millisecond) 141 | 142 | stopCh <- true 143 | <-doneCh 144 | 145 | newlines := strings.Count(got.String(), "\n") 146 | if newlines != numExpected { 147 | t.Errorf("Got wrong number of lines back (got %v, expected %v)", newlines, numExpected) 148 | } 149 | if len(seenRequests) > 1 { 150 | t.Errorf("Pending logs should have been coalesced into one request, but got %v requests", len(seenRequests)) 151 | } 152 | } 153 | 154 | func makeFakeEvent(ref *v1.ObjectReference, eventtype, reason, message string) *v1.Event { 155 | tm := metav1.Time{ 156 | Time: time.Now(), 157 | } 158 | return &v1.Event{ 159 | ObjectMeta: metav1.ObjectMeta{ 160 | Name: fmt.Sprintf("%v.%x", ref.Name, tm.UnixNano()), 161 | Namespace: ref.Namespace, 162 | }, 163 | InvolvedObject: *ref, 164 | Reason: reason, 165 | Message: message, 166 | FirstTimestamp: tm, 167 | LastTimestamp: tm, 168 | Count: 1, 169 | Type: eventtype, 170 | } 171 | } 172 | -------------------------------------------------------------------------------- /sinks/httpsink.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 Heptio Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package sinks 18 | 19 | import ( 20 | "bytes" 21 | "net/http" 22 | 23 | "github.com/eapache/channels" 24 | "github.com/golang/glog" 25 | "github.com/sethgrid/pester" 26 | 27 | "k8s.io/api/core/v1" 28 | ) 29 | 30 | /* 31 | The HTTP sink is a sink that sends events over HTTP using RFC5424 (syslog) 32 | compatible messages. It establishes an HTTP connection with the remote 33 | endpoint, sending messages as individual lines with the RFC5424 syntax: 34 | 35 | 36 | 37 | This is compatible with the protocol used by Heroku's Logplex: 38 | 39 | https://github.com/heroku/logplex/blob/master/doc/README.http_drains.md 40 | 41 | Many events may be coalesced into one request if they happen faster than we 42 | can send them, if not, a single HTTP request is made for each event. 43 | (Hopefully in a single keep-alive http connection, which is go's default.) 44 | 45 | But with the payload of the messages being a serialized JSON object 46 | containing the kubernetes v1.Event. 47 | */ 48 | 49 | // HTTPSink wraps an HTTP endpoint that messages should be sent to. 50 | type HTTPSink struct { 51 | SinkURL string 52 | 53 | eventCh channels.Channel 54 | httpClient *pester.Client 55 | bodyBuf *bytes.Buffer 56 | } 57 | 58 | // NewHTTPSink constructs a new HTTPSink given a sink URL and buffer size 59 | func NewHTTPSink(sinkURL string, overflow bool, bufferSize int) *HTTPSink { 60 | h := &HTTPSink{ 61 | SinkURL: sinkURL, 62 | } 63 | 64 | if overflow { 65 | h.eventCh = channels.NewOverflowingChannel(channels.BufferCap(bufferSize)) 66 | } else { 67 | h.eventCh = channels.NewNativeChannel(channels.BufferCap(bufferSize)) 68 | } 69 | 70 | h.httpClient = pester.New() 71 | h.httpClient.Backoff = pester.ExponentialJitterBackoff 72 | h.httpClient.MaxRetries = 10 73 | // Let the body buffer be 4096 bytes at the start. It will be grown if 74 | // necessary. 75 | h.bodyBuf = bytes.NewBuffer(make([]byte, 0, 4096)) 76 | 77 | return h 78 | } 79 | 80 | // UpdateEvents implements the EventSinkInterface. It really just writes the 81 | // event data to the event OverflowingChannel, which should never block. 82 | // Messages that are buffered beyond the bufferSize specified for this HTTPSink 83 | // are discarded. 84 | func (h *HTTPSink) UpdateEvents(eNew *v1.Event, eOld *v1.Event) { 85 | h.eventCh.In() <- NewEventData(eNew, eOld) 86 | } 87 | 88 | // Run sits in a loop, waiting for data to come in through h.eventCh, 89 | // and forwarding them to the HTTP sink. If multiple events have happened 90 | // between loop iterations, it puts all of them in one request instead of 91 | // making a single request per event. 92 | func (h *HTTPSink) Run(stopCh <-chan bool) { 93 | loop: 94 | for { 95 | select { 96 | case e := <-h.eventCh.Out(): 97 | var evt EventData 98 | var ok bool 99 | if evt, ok = e.(EventData); !ok { 100 | glog.Warningf("Invalid type sent through event channel: %T", e) 101 | continue loop 102 | } 103 | 104 | // Start with just this event... 105 | arr := []EventData{evt} 106 | 107 | // Consume all buffered events into an array, in case more have been written 108 | // since we last forwarded them 109 | numEvents := h.eventCh.Len() 110 | for i := 0; i < numEvents; i++ { 111 | e := <-h.eventCh.Out() 112 | if evt, ok = e.(EventData); ok { 113 | arr = append(arr, evt) 114 | } else { 115 | glog.Warningf("Invalid type sent through event channel: %T", e) 116 | } 117 | } 118 | 119 | h.drainEvents(arr) 120 | case <-stopCh: 121 | break loop 122 | } 123 | } 124 | } 125 | 126 | // drainEvents takes an array of event data and sends it to the receiving HTTP 127 | // server. This function is *NOT* re-entrant: it re-uses the same body buffer 128 | // for each call, truncating it each time to avoid extra memory allocations. 129 | func (h *HTTPSink) drainEvents(events []EventData) { 130 | // Reuse the body buffer for each request 131 | h.bodyBuf.Truncate(0) 132 | 133 | var written int64 134 | for _, evt := range events { 135 | w, err := evt.WriteRFC5424(h.bodyBuf) 136 | written += w 137 | if err != nil { 138 | glog.Warningf("Could not write to event request body (wrote %v) bytes: %v", written, err) 139 | return 140 | } 141 | 142 | h.bodyBuf.Write([]byte{'\n'}) 143 | written++ 144 | } 145 | 146 | req, err := http.NewRequest("POST", h.SinkURL, h.bodyBuf) 147 | if err != nil { 148 | glog.Warningf(err.Error()) 149 | return 150 | } 151 | 152 | resp, err := h.httpClient.Do(req) 153 | if err != nil { 154 | glog.Warningf(err.Error()) 155 | return 156 | } 157 | 158 | if resp.StatusCode < 200 || resp.StatusCode > 299 { 159 | glog.Warningf("Got HTTP code %v from %v", resp.StatusCode, h.SinkURL) 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= 3 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 4 | github.com/DataDog/zstd v1.3.6-0.20190409195224-796139022798 h1:2T/jmrHeTezcCM58lvEQXs0UpQJCo5SoGAcg+mbSTIg= 5 | github.com/DataDog/zstd v1.3.6-0.20190409195224-796139022798/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= 6 | github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= 7 | github.com/Shopify/sarama v1.23.1 h1:XxJBCZEoWJtoWjf/xRbmGUpAmTZGnuuF0ON0EvxxBrs= 8 | github.com/Shopify/sarama v1.23.1/go.mod h1:XLH1GYJnLVE0XCr6KdJGVJRTwY30moWNJ4sERjXX6fs= 9 | github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= 10 | github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= 11 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 12 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 13 | github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= 14 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 15 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 16 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 17 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 18 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= 19 | github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= 20 | github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 21 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 22 | github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= 23 | github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= 24 | github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 25 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 26 | github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 27 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 28 | github.com/crewjam/rfc5424 v0.0.0-20180723152949-c25bdd3a0ba2 h1:ikTypaS8gho3dBf1gySXxxv+NkB8vyYgqMPYv51LD4U= 29 | github.com/crewjam/rfc5424 v0.0.0-20180723152949-c25bdd3a0ba2/go.mod h1:+E6hJ4dnJi+OtRGvE3sIOIwMivXJTbRqZfQkWeANo6I= 30 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 31 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 32 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= 33 | github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 34 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 35 | github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= 36 | github.com/eapache/channels v1.1.0 h1:F1taHcn7/F0i8DYqKXJnyhJcVpp2kgFcNePxXtnyu4k= 37 | github.com/eapache/channels v1.1.0/go.mod h1:jMm2qB5Ubtg9zLd+inMZd2/NUvXgzmWXsDaLyQIGfH0= 38 | github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU= 39 | github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= 40 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= 41 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= 42 | github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= 43 | github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= 44 | github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= 45 | github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= 46 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 47 | github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= 48 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 49 | github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= 50 | github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= 51 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 52 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 53 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 54 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 55 | github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= 56 | github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= 57 | github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= 58 | github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= 59 | github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= 60 | github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= 61 | github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= 62 | github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= 63 | github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= 64 | github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= 65 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 66 | github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= 67 | github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= 68 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 69 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= 70 | github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= 71 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 72 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= 73 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 74 | github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 75 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 76 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 77 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 78 | github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= 79 | github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= 80 | github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= 81 | github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 82 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 83 | github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= 84 | github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= 85 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 86 | github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 87 | github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= 88 | github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 89 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 90 | github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= 91 | github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 92 | github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= 93 | github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= 94 | github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= 95 | github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 96 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 97 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= 98 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 99 | github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 100 | github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= 101 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 102 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 103 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 104 | github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03 h1:FUwcHNlEqkqLjLBdCp5PRlCFijNjvcYANOZXzCfXwCM= 105 | github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= 106 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= 107 | github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= 108 | github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= 109 | github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= 110 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 111 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 112 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= 113 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 114 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 115 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 116 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 117 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 118 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 119 | github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= 120 | github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= 121 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 122 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 123 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 124 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 125 | github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY= 126 | github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= 127 | github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= 128 | github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= 129 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 130 | github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= 131 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 132 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 133 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 134 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 135 | github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= 136 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 137 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= 138 | github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 139 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 140 | github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= 141 | github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= 142 | github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= 143 | github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= 144 | github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= 145 | github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= 146 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= 147 | github.com/pierrec/lz4 v0.0.0-20190327172049-315a67e90e41 h1:GeinFsrjWz97fAxVUEd748aV0cYL+I6k44gFJTCVvpU= 148 | github.com/pierrec/lz4 v0.0.0-20190327172049-315a67e90e41/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= 149 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 150 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 151 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 152 | github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= 153 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 154 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= 155 | github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 156 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 157 | github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= 158 | github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= 159 | github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= 160 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 161 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 162 | github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= 163 | github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= 164 | github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= 165 | github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 166 | github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE= 167 | github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= 168 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 169 | github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 170 | github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= 171 | github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= 172 | github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= 173 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ= 174 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= 175 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= 176 | github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= 177 | github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= 178 | github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0 h1:X9XMOYjxEfAYSy3xK1DzO5dMkkWhs9E9UCcS1IERx2k= 179 | github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0/go.mod h1:Ad7IjTpvzZO8Fl0vh9AzQ+j/jYZfyp2diGwI8m5q+ns= 180 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 181 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= 182 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 183 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= 184 | github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= 185 | github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= 186 | github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= 187 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 188 | github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= 189 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= 190 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 191 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 192 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 193 | github.com/spf13/viper v1.4.0 h1:yXHLWeravcrgGyFSyCgdYpXQ9dR9c/WED3pg1RhxqEU= 194 | github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= 195 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 196 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 197 | github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 198 | github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= 199 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 200 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 201 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 202 | github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= 203 | github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 204 | github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= 205 | github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 206 | github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= 207 | github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= 208 | github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= 209 | github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= 210 | github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= 211 | github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= 212 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= 213 | github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= 214 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 215 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 216 | go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= 217 | go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 218 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= 219 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= 220 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 221 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 222 | golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= 223 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 224 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 225 | golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= 226 | golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= 227 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 228 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 229 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 230 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 231 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 232 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 233 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 234 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 235 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 236 | golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 237 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 238 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 239 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 240 | golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= 241 | golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= 242 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 243 | golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= 244 | golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 245 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 246 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 247 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 248 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 249 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 250 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 251 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 252 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 253 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 254 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 255 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 256 | golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 257 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 258 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 259 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 260 | golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= 261 | golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 262 | golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= 263 | golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= 264 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 265 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 266 | golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= 267 | golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 268 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 269 | golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= 270 | golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= 271 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 272 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 273 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 274 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 275 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 276 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 277 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 278 | golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= 279 | golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= 280 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 281 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 282 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 283 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 284 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 285 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 286 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 287 | google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 288 | google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= 289 | google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= 290 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 291 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 292 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 293 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 294 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 295 | gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= 296 | gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= 297 | gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 298 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 299 | gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hrEw= 300 | gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo= 301 | gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM= 302 | gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q= 303 | gopkg.in/jcmturner/goidentity.v3 v3.0.0 h1:1duIyWiTaYvVx3YX2CYtpJbUFd7/UuPYCfgXtQ3VTbI= 304 | gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4= 305 | gopkg.in/jcmturner/gokrb5.v7 v7.2.3 h1:hHMV/yKPwMnJhPuPx7pH2Uw/3Qyf+thJYlisUc44010= 306 | gopkg.in/jcmturner/gokrb5.v7 v7.2.3/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM= 307 | gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU= 308 | gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8= 309 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= 310 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= 311 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 312 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 313 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 314 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 315 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 316 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 317 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 318 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 319 | k8s.io/api v0.32.2 h1:bZrMLEkgizC24G9eViHGOPbW+aRo9duEISRIJKfdJuw= 320 | k8s.io/api v0.32.2/go.mod h1:hKlhk4x1sJyYnHENsrdCWw31FEmCijNGPJO5WzHiJ6Y= 321 | k8s.io/apimachinery v0.32.2 h1:yoQBR9ZGkA6Rgmhbp/yuT9/g+4lxtsGYwW6dR6BDPLQ= 322 | k8s.io/apimachinery v0.32.2/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= 323 | k8s.io/client-go v0.32.2 h1:4dYCD4Nz+9RApM2b/3BtVvBHw54QjMFUl1OLcJG5yOA= 324 | k8s.io/client-go v0.32.2/go.mod h1:fpZ4oJXclZ3r2nDOv+Ux3XcJutfrwjKTCHz2H3sww94= 325 | k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= 326 | k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= 327 | k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= 328 | k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= 329 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= 330 | k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= 331 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= 332 | sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= 333 | sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= 334 | sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= 335 | sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= 336 | sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= 337 | --------------------------------------------------------------------------------