Skip to content

Commit

Permalink
Target Allocator implementation (Part 3 - Collector Enhancement for P…
Browse files Browse the repository at this point in the history
…rometheus Config Update) (#389)

* load balancer deployment implementation & controller & e2e tests

* Load balancer crd update, reconcile logic and e2e tests

* Reset last commit and only uploading changes to main.go

* Updated bundle and api with new autogenerated resources

* Updated code with lint fixes

* Updated code to include minor fixes

* Update helper.go to add header

* Updated comment and bundles

* Updated lb reconcile helper function and its invocations

* Updated naming scheme and changed CR config

* Updated bundle files

* Minor changes

* Lint and default file fixes

* Added rolebinding to automate manual setting

* Update opentelemetry-operator.clusterserviceversion.yaml

* Removed role/rolebinding files & Minor changes

* Minor changes

* Added error check in configmap reconcile & spelling correction

* Updated target allocator KUTTL tests & renamed folder

* Updated folder structure to reduce code duplication between collector and targetallocator & Minor changes

* Updated kuttl tests to use namespace-scope resources

* Revert part of "Updated folder structure to reduce code duplication between collector and targetallocator & Minor changes"

This reverts commit 367c623 - only the folder structure change

* Removed separate controller for target allocation

* Added additional label for collector pod selection and removed test-step

* Minor changes

* Added collector enhancement for prometheus config update

* Update config_replace.go

* Squashed commit of the following:

commit a7764b9
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Tue Aug 10 20:20:32 2021 -0700

    Added version management & Minor fixes

* Updated port and protocol

* Lint fixes

* Removed unnecessary structs

* Squashed commit of the following:

commit a496825
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 14:53:36 2021 -0400

    Update api/v1alpha1/opentelemetrycollector_webhook.go

    Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

commit 3d37148
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 10:34:44 2021 -0700

    Added validation in webhook to validate prometheus config

commit 33cb042
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 07:16:45 2021 -0700

    Updated docker image to quay.io image

commit a7764b9
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Tue Aug 10 20:20:32 2021 -0700

    Added version management & Minor fixes

* Updated structure to reflect new changes in first part

* Squashed commit of the following:

commit 98acb2f
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Thu Aug 12 05:35:53 2021 -0700

    Updated struct name & minor changes

commit a496825
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 14:53:36 2021 -0400

    Update api/v1alpha1/opentelemetrycollector_webhook.go

    Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

commit 3d37148
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 10:34:44 2021 -0700

    Added validation in webhook to validate prometheus config

commit 33cb042
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Wed Aug 11 07:16:45 2021 -0700

    Updated docker image to quay.io image

commit a7764b9
Author: Rahul Varma <rahvarm@amazon.com>
Date:   Tue Aug 10 20:20:32 2021 -0700

    Added version management & Minor fixes

* Merged with main branch

* Minor changes

* Updated go.sum

* Updated go.mod

Co-authored-by: Alexis Perez <perzmen@amazon.com>
Co-authored-by: Rahul Varma <rahvarm@amazon.com>
  • Loading branch information
3 people authored Sep 15, 2021
1 parent acab291 commit 7455eed
Show file tree
Hide file tree
Showing 12 changed files with 1,242 additions and 24 deletions.
68 changes: 62 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ go 1.17
require (
github.com/Masterminds/semver/v3 v3.1.1
github.com/go-logr/logr v0.4.0
github.com/mitchellh/mapstructure v1.4.1
github.com/prometheus/prometheus v1.8.2-0.20210621150501-ff58416a0b02
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
gopkg.in/yaml.v2 v2.4.0
Expand All @@ -16,43 +18,97 @@ require (
)

require (
cloud.google.com/go v0.54.0 // indirect
cloud.google.com/go v0.83.0 // indirect
github.com/Azure/azure-sdk-for-go v55.2.0+incompatible // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.19 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.14 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
github.com/armon/go-metrics v0.3.3 // indirect
github.com/aws/aws-sdk-go v1.38.60 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/containerd/containerd v1.4.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/digitalocean/godo v1.62.0 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v20.10.7+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/evanphx/json-patch v4.11.0+incompatible // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-kit/log v0.1.0 // indirect
github.com/go-logfmt/logfmt v0.5.0 // indirect
github.com/go-logr/zapr v0.4.0 // indirect
github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48 // indirect
github.com/go-zookeeper/zk v1.0.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.5 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
github.com/googleapis/gnostic v0.5.5 // indirect
github.com/gophercloud/gophercloud v0.18.0 // indirect
github.com/hashicorp/consul/api v1.8.1 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-hclog v0.12.2 // indirect
github.com/hashicorp/go-immutable-radix v1.2.0 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/serf v0.9.5 // indirect
github.com/hetznercloud/hcloud-go v1.26.2 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/linode/linodego v0.28.5 // indirect
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/miekg/dns v1.1.42 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/common v0.29.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210223165440-c65ae3540d44 // indirect
github.com/sirupsen/logrus v1.7.0 // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.8.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.18.1 // indirect
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b // indirect
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/api v0.48.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08 // indirect
google.golang.org/grpc v1.38.0 // indirect
google.golang.org/protobuf v1.26.0 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
k8s.io/apiextensions-apiserver v0.21.3 // indirect
Expand Down
Loading

0 comments on commit 7455eed

Please sign in to comment.