Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup pipelines #16

Closed
wants to merge 15 commits into from
Closed

Conversation

grischperl
Copy link
Contributor

@grischperl grischperl commented Dec 13, 2023

Description

setup pipeline for

  • lint
  • e2e test
  • unit test
  • build
  • release

Changes proposed in this pull request:

  • Linting action
  • Markdown linting action
  • Unit test action

Fix linting just before merging the PR.

Related issue(s)

kyma/#18477

a-thaler and others added 7 commits December 12, 2023 09:26
* Rename component to event publisher proxy  (#9475)

* Fix Dockerfile (#9499)

* Copy certs from builder (#9504)

* Helm Chart for event-publisher-proxy (#9505)

* Use non root in Dockerfile (#9905)

* Use non root in Dockerfile

* Fix workdir

* Removing user as it is non-root already

* Migrate /:app/v1/events endpoint from event-service (#9958)

* Add /:app/v1/events/subscribed endpoint as that of event-service (#10005)

* Scaffold NATS publisher (#10165)

* Scaffold NATS publisher

* Format imports

* Add support for ko

* Update makefile

* Event publisher to NATS (#10331)

* Initial commit

* Add tests

* Solve make imports

* Update comments

* Remove unused code

* Use '/' at the begining of test namespaces, for both BEB and NATS

* Solve comments

* Update log message

* Solve other comments

* Solve make imports

* Generate a random port for Nats

* Fix the event-publisher-proxy receiver test to be more resilient (#10432)

* Clean the application name from none-alphanumeric characters for the Event publisher apps (#10523)

* Fix CVE-2020-26160 (#10740)

* Preserve CE event's mode (structured or binary)  (#10721)

* Reuse NATS connection to enhance NATS publisher performance (#10723)

* Enable in-cluster Eventing without creating Kyma Applications (#10670)

* Fix the subscribed endpoint filtration logic for empty event-sources (#10902)

* Add basic metrics for Eventing publishers (#10919)

Co-authored-by: Korbinian Stoemmer <[email protected]>
Co-authored-by: Aleksandra Simeonova <[email protected]>

* Update the event-type cleanup logic (#11007)

* Add latency metrics for Event publishers (#11058)

* Rename insensitive terms - leftovers (#11110)

* Single binary event publisher (#11153)

* initial commit

* Add log messages

* Update log messages

* Add BACKEND env variable

* Avoid fatal logging outside of main

* Solve comments

* Add BACKEND env variable for NATS deployment

* Use the image event-publisher-proxy for nats too

* Fix logs

* Update KO deployments

* Use PR images for verification

* Update log messages

* Enhance log messages at publisher starting

* Fix beb-publisher deployment for beb-namespace missing / as a prefix

* Fix KO build image and update comments

Co-authored-by: Marco Bebway <[email protected]>

* Fix random port generator for Event publisher tests (#11176)

* Fix KO for eventing-publisher-nats (#11189)

* Fix KO for eventing-publisher-nats

* Update nats publisher dev config

* Add a note on the ClusterRoleBinding subject namespace

Co-authored-by: Marco Bebway <[email protected]>

* Refactor publisher, preparing it for switching the eventing backend (#11211)

* Initial commit

* Add Stop() method in Commander interface

* Add a new reusable context whihc supports multiple instances

* update nats dependencies (#11333)

* update nats dependencies

* bump image

* update kyma dependencies

* Upgrade go client to v0.20.7 for eventing publisher proxy (#11430)

* Upgrade go client to v0.20.7

* Bump publisher-proxy image to PR-11430

* Fix event-publisher-proxy image tag

* Reconnect to Nats in publisher-proxy (#11467)

* Reconnect to Nats in publisher

* Solve comments

* Optimze HTTP header access in test (#11634)

* Optimze HTTP header access in test

* Add debugging test output

* Fix after tests

* Change header access to Get()

* Set event-publisher PR version

* Fix tracing for publisher and controller (#11649)

* Add tracing context from publisher to controller

* Bump image

* Fine tune test

* Add tracing for /publish endpoint

* Cleanup

* Cleanup

* Cleanup

* Add "check-code" for local publisher-proxy development (#12063)

* Add check-code target

* Update RESDME.md

* Enable Prometheus scraping using mTLS (#11994)

* Initial setup istio example

* Mount istio secret

* General setup; connection reset by peer

* add tls for fluent-bit and prometheus-istio

* Fix kube state metrics

* activate servicemonitor grafana

* Fix application connector

* activate tls for kube-state-metrics

* Fix application connector, eventing, operator

* add tls for service-catalog

* Fix operator now for real

* add tls for grafana

* Added tls to Tracing

* Fix for Prometheus endpoint

* Fix Loki

* Removed all PeerAuthentication policies which are stict (default)

* REvert tracing changes for testing purposes

* Revert tracing changes for testing purposes

* Add changes to Tracing

* Fix indentation

* Small fixes

* TLS config for dex

* TLS config for dex; typo fix

* TLS config SIMPLE

* Setting peerauthentication

* Setting peerauthentication

* typo

* Disabled second SM for grafana-monitoring

* Added policies

* Added policies app connect

* Add PAs for testing purposes

* Edited policies

* Added FluentBit PA

* MTLS for kialia for testing

* Removed mtls for kiali

* Removed mtls for grafana

* Fix alertmanager

* Remove mtls for app registry

* FIx for loki

* Added small unit about mtls

* wrong branch

* Grafan auf mtls umstellen

* Disable sidecar PrometheusOperator

* Disable sidecar PrometheusOperator

* Disable sidecar PrometheusIstio incl no mtls

* Renaming of interval, due helm render issues

* PromOperator; deactivate https

* Changed grafana ploicy

* Removed schema from unsued sm

* Deleted unnecessary ploicies

* Deleted unnecessary ploicies

* No MTLS for Grafana

* Reset Grafana

* Fix application connector

* Fixxed small tupos

* Removed peerAuthentication from kialia and grafana

* Removed peerAuthentication from tracing

* Add tls config

* Add tls config for grafana

* Removed Sidecar from kube-state-metrics

* Removed istio cert from prom-istio-server

* Adapted eventpublisher, ory, and prometheus

* Remove unused cert

* Applied changes requested by review

Co-authored-by: Adrian Stobbe <[email protected]>

* Upgrade CE-SDK to 2.5.0 (#12318)

* Read eventTypePrefix from ConfigMap (#12189)

* Fix CVE-2021-25741 for Eventing components (#12420)

* Fix CVE-2021-25741 for Eventing components

* Update images

* Update event publisher proxy dependencies (#12434)

* update github.com/prometheus/client_golang

* update github.com/sirupsen/logrus

* update go.opencensus.io

* update github.com/google/uuid

* update github.com/onsi/gomega

* bump image tag

* use go 1.16

* Improve event-publisher-proxy build performance (#10839)

* Improve event-publisher-proxy build performance

* build locally, duh

* go mod vendor should be executed already

* one vendor

* bump

* cleanup

* bump go version (#12616)

* bump go version

* bump image tag

* bump docker image tag

* update eventing-controller dependency in event-publisher-proxy (#12677)

* bump eventing controller dependency

* bump epp image

* fix issues found by various linters (#12753)

* fix issues found by various linters

* fix comments

* bump image

* fix: broken legacy event cleanup (#13002)

* write tests for reproduction of the issue

add tests and improve code to pass the tests

cleanup

fix typos

bump image

unbump image

fix imports

fix typo

rebump

* bump the right component

* refactoring according to review

* bump build images (#13195)

* modify OWNERS for eventing (#13184)

* modify OWNERS for eventing

* remove outdated reviewers and approvers

* Change builder images in eventing-controller (#13449)

* Change builder images in eventing-controller

* Change builder images in eventing-publisher-proxy

* image bump

* Upgrade packages epp (#13469)

* upgrade packages

* upgrade packages

* bump

* Implement readiness probe for NATS publisher based on connection status of NATS server(s) (#13120)

* Implement readiness probe for NATS publisher based on connection status of NATS server(s)

* Update publisher image

* Sort imports

* Return error if connection is not open while publishing

* Refactor Event publisher NATS sender and connection (#13523)

* Refactor NATS sender and connection

* Update publisher image

* Use assertions instead of error checking in the tests

* Cleanup test resources after each test run

* Remove test parallelism in favour of having stable tests

* Use assertions instead of error checking

* Refactor Event publisher proxy tests (#13549)

* Refactor BEB handler tests

* Update publisher image

* Fix test parallelism and remove not needed nolint annotations

* Refactor ok and error response validators for legacy events

* Move TestIsARequestWithLegacyEvent under its correct package

* Non-functional improvements in event-publisher-proxy (documentation, testing) (#13247)

* Reconnect to NATS server before publishing events if the NATS connection is closed

* Trying to reuse the test environment

* Use option pattern in setupTestEnvironment

* Use subscribeToSubject method

* Use table test

* Fix tests

* More comments

* Work together with Friedrich

* Remove discussed todos

* Use table test fields

* Move cleanup to setupTestEnvironment

* Rewrite assertion using testify

* Use functional option pattern for pkgnats.NewBackendConnection

* Rename func opts to reflect struct

* Shorten func options

* Make url non optional

* Rename to Opt

* Simplify naming

* Small corrections

* Use custom PR image

* Update components/event-publisher-proxy/pkg/sender/nats_test.go

Co-authored-by: Korbinian Stoemmer <[email protected]>

* Pass varargs correctly to pkgnats.NewConnection

* Incorporate review comments from k15r: only send event once and close
connection before if required

* Shutdown connections

* Rename bc/backendConnection to c/Connection

* Make assertions visible

* Fix linter

* Make wants givens in TestConnect

* Use GWT in TestConnect

* Prevent common goroutine loop problem

* Leverage nats.Options for nats wrapper

* Use epp from PR

* Remove obvious comment from nats tests

Co-authored-by: Marco Bebway <[email protected]>
Co-authored-by: Korbinian Stoemmer <[email protected]>

* Support CloudEvents type cleanup while publishing (#13608)

* Support Event type cleanup for CloudEvents while publishing

* Update publisher and controller images

* Update Event type cleanup tests

* Simplify parsing Event types.

* Refactor legacy events tests to be compliant with code quality guidelines

* Update golang version for Eventing components (#13648)

* Kyma migration to OWNERS from CODEOWNERS (#13543)

* Kyma migration to OWNERS from CODEOWNERS

* Add Nina and Grzegorz to TW aliases & remove Alex

* add label for eventing resources

* update observability owners

* add tests/fast-integration owners file

* update application connector owners

* Update OWNERS

* Add missing OWNERS for SKR fast-integration, .github, tools and kyma-project.io directories

* Update service-management owners

* Update service-management owners 2

* Missing Jellyfish memebers

* docs: Add jakobmoellersap to reconciler-reviewers

* Update OWNERS

* update tests/perf owners

* Add API Gateway, Istio and other security resources OWNERS

* update wookiees components

* Add final batch of OWNERS files and fix intend errors in OWNERS_ALIASES

Co-authored-by: Maja Kurcius <[email protected]>
Co-authored-by: Korbinian Stoemmer <[email protected]>
Co-authored-by: Dennis Geiselmann <[email protected]>
Co-authored-by: Rafał Foks <[email protected]>
Co-authored-by: Grzondziel, Klaudia <[email protected]>
Co-authored-by: Jeremy Harisch <[email protected]>
Co-authored-by: d067928 <[email protected]>
Co-authored-by: Jeremy Harisch <[email protected]>
Co-authored-by: mjakobczyk <[email protected]>
Co-authored-by: pPrecel <[email protected]>

* upgrade packages in epp (#13673)

* upgrade package

* bump img

* Upgrade eventing images to use go 1.18 runtime (#13830)

* Upgrade eventing images to use go 1.18 runtime

* Use PR images

* add support for publishing in the jetstream mode, add test cases for jetstream enabled NATS server (#13763)

* bump dependencies in epp (#13864)

* bump deps

* bump image

* fix security vulnerability in epp (#13883)

* bump lib

* bump image

* use replace

* bump prometheus/client_go

* Fix `make test` for eventing-controller and event-publisher-proxy (#13949)

* Add missing BUILDPACK image name to event-publisher-proxy makefile

* Update make test in eventing-controller

* bump-build-image (#14010)

bump image

* bump dependencies (#14024)

bump image

* bump dependencies (#14070)

bump image

* Prow approval flow is not used. OWNERS files are not needed. (#14102)

* Prow approval flow is not used. OWNERS files are not needed.

* Prow approval flow is not used. OWNERS files are not needed.

* bump dependencies (#14177)

bump img

* bump the build image to golang 1.18.2 in EPP (#14268)

* bump build image togolang 1.18.2

* bump image

* EPP bump nats and nats server (#14206)

* bump dependencies

* bump image

* more bumps

* go mod tidy

* gomod(deps): bump sigs.k8s.io/controller-runtime from 0.11.2 to 0.12.0 in /components/event-publisher-proxy (#14287)

* gomod(deps): bump sigs.k8s.io/controller-runtime

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.11.2...v0.12.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* bump image

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* bump prometheus/client_golang to 1.12.1 in EPP (#14304)

* bump prometheus/client_golang to 1.12.1

* bump image

* bump controller-runtime v0.12.1 in Event-Publisher-Proxy (#14318)

* bump controller-runtime to v0.12.1

* bump image

* bump dependency cloudevents/sdk-go in EPP (#14349)

* bump dependency cloudevent/sdk-go to v2.10.0

* bump image

* bump dependency nats-io/nats-server to v2.8.3 in event-publisher-proxy (#14359)

* bump image

* bump application-operator

* bump further

* bump nats-server to v2.8.3

* Unify the usages of EVENT_TYPE_PREFIX and LEGACY_EVENT_TYPE_PREFIX (#13329)

* Unify the usages of EVENT_TYPE_PREFIX and LEGACY_EVENT_TYPE_PREFIX

* Address review comments

* Address review comments

* bump k8s.io/utils (#14414)

* bump k8s.io/utils

* bump images

* Hardcode the JS stream prefix  (#14262)

* hardcode the js stream prefix, adjust the tests

* improve logic

* bump base image to alpine 3.16 in event-pubisher-proxy (#14450)

* bump base image to alpine 3.16

* bump image

* Remove license-puller usage from components (#14481)

* Remove license-puller usage from components

* cleanup dockerfiles

* empty

* bump the golang image to golang1.18.3:alpine3.16 in EPP (#14520)

* bump the build image to golang1.18.3:alpine3.16

* bump image

* Bump dependencies in Event-Publisher-Proxy (#14502)

* bump required dependencies

* bump image

* bump dependencies in EPP (#14548)

* bump dependencies

* go mod tidy

* bump dependency nats-server

* bump dependency nats

* bump image

* bump dependencies in event-publisher-proxy (#14581)

* bump dependencies

* bump image

* go mod tidy

* Add replace for k8s dependencies in epp (#14597)

* add replace for k8s.io packages

* bump other dependencies

* go mod tidy

* bump image

* add a replace for kube-openapi in event-publisher-proxy (#14599)

* add a replace for kube-openapi in event-publisher-proxy

* bump image

* replace go-restful to v3.8.0

* replace k8s.io/client-go

* unclutter the replaces

* bump kyma components

* add a replace and exclude for emicklei/go-restful < 3 in event-publisher-proxy (#14667)

* add a replace and exclude for emicklei/go-restful < 3

* bump image

* emit event_type_published and event_type_subscribed metrics (#14672)

* emit event_type_published and event_type_subscribed metrics

* Updated dashboard and queries

* gomod(deps): bump sigs.k8s.io/controller-runtime from 0.12.1 to 0.12.2 in /components/event-publisher-proxy (#14676)

* gomod(deps): bump sigs.k8s.io/controller-runtime

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>
Co-authored-by: Raymond Pinto <[email protected]>

* gomod(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.5 in /components/event-publisher-proxy (#14688)

* gomod(deps): bump github.com/stretchr/testify

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>
Co-authored-by: Raymond Pinto <[email protected]>

* Standardize logging in the EPP (#14712)

* use only zap logger in epp

* bump images

* remove unused code

* gomod(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 in /components/event-publisher-proxy (#14711)

* gomod(deps): bump github.com/stretchr/testify

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>

* Standardize the logs in the eventing controller (#14725)

* standardize the logs, fix some error messages, remove redundant logs

* remove todo

* gomod(deps): bump sigs.k8s.io/controller-runtime from 0.12.2 to 0.12.3 in /components/event-publisher-proxy (#14771)

* gomod(deps): bump sigs.k8s.io/controller-runtime

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.12.2 to 0.12.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.12.2...v0.12.3)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>

* gomod(deps): bump k8s.io/client-go from 0.24.2 to 0.24.3 in /components/event-publisher-proxy (#14816)

* gomod(deps): bump k8s.io/client-go in /components/event-publisher-proxy

Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.2...v0.24.3)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* bump image

* retrigger jobs

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>

* bump golang version and dependencies in `eventing-publisher-proxy` (#14840)

* bump golang version and k8s packages version

* bump image

* gomod(deps): bump github.com/onsi/gomega from 1.19.0 to 1.20.0 in /components/event-publisher-proxy (#14879)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Add troubleshooting guide for how to free JS storage (#14908)

* add troubleshooting guide for how to free JS storage, enhance EPP response in case of full storage

* bump the image

* apply review comments

* add note message

* Update docs/04-operation-guides/troubleshooting/eventing/evnt-04-free-jetstream-storage.md

apply suggestion

Co-authored-by: Nina Hingerl <[email protected]>

Co-authored-by: Nina Hingerl <[email protected]>

* Add custom metrics to epp (#14936)

* add status code and destination service to latency metric

format

* fix string conversion

* extend destination service name

* add request counter metric

* fix mock temp

* add comments

* change method of calculating delay in ms

* fix calculation of ms

* bump image

* undo changes on charts

* adjust name of response code

* obtain the destination service from the sender in nats and jetstream

* add missing comments

* adjust resources to CamelCase (#14991)

* adjust resources to CamelCase

* Apply Maja's suggestion

Co-authored-by: Maja Szostok <[email protected]>

* adjust resources to CamelCase

* found another "Config Map"

* review Eventing capitalization

* Open Service Broker without camel case

Co-authored-by: Maja Szostok <[email protected]>

* Bump lib versions in eventing components (#15095)

* Bump lib versions in eventing components

* Image bump

* Image bump

* gomod(deps): bump github.com/cloudevents/sdk-go/v2 from 2.10.1 to 2.11.0 in /components/event-publisher-proxy (#15107)

* gomod(deps): bump github.com/cloudevents/sdk-go/v2

Bumps [github.com/cloudevents/sdk-go/v2](https://github.com/cloudevents/sdk-go) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/cloudevents/sdk-go/releases)
- [Commits](https://github.com/cloudevents/sdk-go/compare/v2.10.1...v2.11.0)

---
updated-dependencies:
- dependency-name: github.com/cloudevents/sdk-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>

* bump dependencies in `event-publisher-proxy` (#15156)

* bump deps

* bump image

* go mod tidy

* Add a new consolidated eventing dashboard (#15147)

* Added a new consolidated dashboard

* Bump img

* Update titles

* Addressed feedback

* Address feedback

* Remove log that exposes the event internals (#15209)

* remove logs, which exposes the event internals

* bump the image

Co-authored-by: Nils Seip <[email protected]>

* bump dependencies in `event-publisher-proxy` (#15297)

* bump deps

* bump image

* gomod(deps): bump github.com/onsi/gomega from 1.20.0 to 1.20.2 in /components/event-publisher-proxy (#15343)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.20.0 to 1.20.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.20.0...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update the publisher image

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marco Bebway <[email protected]>

* bump dependencies in `event-publisher-proxy` (#15361)

* bump dependencies

* bump image

* Improve eventing log (#15335)

* Delete Duplicate Errors from Logs

* Delete EC and EPP duplicate error message in the logs

* Adapt the unit and integration tests

* Add more info to error logs

* Add more information to the error logs

* Rename metrics according to Prometheus guidelines (#15308)

* Rename metrics according to Prometheus guidelines

* Fix small changes

* Small changes

* Fix import

* Update dependencies

* Add review comments

* Fix typo

* Fix review comment changes

* Bump GOLANG to 1.19 for eventing (#15454)

* Bump GOLANG to 1.19 for eventing

* bump EPP and EC images

* consistent naming in epp (#15500)

* rename wantBebNs to wantBEBNamespace

more

* rename BebConfig tp BEBConfig

* rename NewBebMessageSender to NewBEBMessageSender

* rename BebMessageSender to BEBMessageSender

* rename JetsreamSubjectPrefix to JetStreamSubjectPrefix

* rename BebHandlerMock to BEBHandlerMock

* rename BEBHandlerMockOpt

* replaced Beb with BEB in comments

* rename NatsServerModes to NATSServerModes

* rename StartNatsServer to StartNATSServer

* rename ConnectToNatsServer ConnectToNATSServer

* rename NatsMessageSender to NATSMessageSender

* rename ValidateNatsSubjectOrFail to ...NATS...

* rename NatsConfig to NATS...

* rename NewNatsMessageSender to ...NATS...

* rename ValidateNatsMessageDataOrFail to ...NATS...

* rename messageSenderToNats to ...NATS

* rename newNatsConfig to ...NATS...

* rename TestNatsMessageSender to ...NATS...

* rename givenNatsConnectionClosed to ...NATS...

* rename givenNatsConnectionClosed to ...NATS...

* rename NatsHandlerMock to ...NATS...

* rename givenNatsConnectionClosed to ...NATS...

* rename NatsHandlerMockOpt to NATS...

* rename CreateNatsJsConfig to ...NATS...

* rename GetNatsConfig to ...NATS...

* rename eventToNatsMsg to ...NATS...

* rename givenNatsServerShutdown to ...NATS...

* rename ShutdownNatsServerAndWait to ...NATS...

* rename GetNatsUrl to ...NATS...

* rename Nats to NATS

* rename JetstreamEnabled to JetStream...

* rename Jetstream to JetStream

* rename TestJetstreamMessageSender to JetStream

* rename WithJetStream

* rename NewJetStreamMessageSender

* rename JetsStreamMessageSender

* rename JetStreamModeEnabled

* bump image

* Fix the Eventing publisher proxy lint issues (#15609)

* Fix the Eventing publisher proxy lint issues

* Update image

* remove dead code (unused nats core) (#15560)

* initial naive removal of nats core

* remove nats-core from epp

* image bump

* fix lint issues

* fix formatting

* fix unreachable code

* fix test

* fix review issues

* remove jetstream.enabled flag

* fix linting and fast-integration

* fix shadowing lint issues

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.8.4 to 2.9.1 in /components/event-publisher-proxy (#15627)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.8.4 to 2.9.1.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.8.4...v2.9.1)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump img

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>
Co-authored-by: Raymond Pinto <[email protected]>

* bump dependencies in `event-publisher-proxy` (#15689)

* bump k8s.io packages

* bump image

* bump cloud events sdk patch level

* bump xerror and oauth2

* bump kyma components

* remove old replace from mod file

* bump k8s patch level

* Move Dockerfile of `event-publisher-proxy` to base dir (#15711)

* remove cmds targets

* mv Dockerfile to epp/

* bump image

* bump dependencies in `event-publisher-proxy` (#15713)

* bump dependencies

* bump image

* bump build image in Dockerfile to golang1.19.2-alpine3.16 in event-publisher-proxy (#15734)

* bump build image in Dockerfile to golang1.19.2-alpine3.16

* bump epp image

* Use the configured NATS URL as the destination service value for the Eventing publisher proxy custom metrics (#15608)

* Use the configured NATS URL as the destination service value for the Eventing publisher proxy custom metrics

* Update Eventing images

* Fix tests

* Add exponential buckets for the Event publisher proxy latency histogram (#15643)

* Add exponential buckets for the Event publisher proxy latency histogram

* Update image

* Remove extra lines

* Update EPP deps (#15908)

* Introduce shared handler for EPP (#15672)

* unify multiple epp handler implementations

* fix review comment

* add comment as requested by reviewer

* fix review comment

* more comments

* fix typo

* even more comments

* rename generic handler to handler

* fix review nits

* test legacy responses

* dont check if stream exists

* add body assertion for publishCloudEvent

* remove unnecessary functions

* sort imports

* fix review comments

* fix nits

* fix error handling

Co-authored-by: VladislavPaskar <[email protected]>

* Check for empty segments in event type in EPP (#15917)

* check for empty segments in event type in EPP

* image bump

* fix epp latency metric labels (#15928)

* fix missing destination service label on latency metric

* unexport previously exported helper function, update comment on new TEF
comparison function

* bump image

* add a test for URL

* fix comment

* gomod(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 in /components/event-publisher-proxy (#15888)

* gomod(deps): bump github.com/stretchr/testify

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump img

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond <[email protected]>
Co-authored-by: Raymond Pinto <[email protected]>
Co-authored-by: Friedrich <[email protected]>

* bump gomega version to 1.23 in Eventing (#15940)

* bump gomega version to 1.23 in Eventing

* image bump

* fix failing test

* Bump dependencies for eventing controller and epp (#16018)

* Bump dependencies

* Bump dependencies

* Bump images

* retrigger jobs

* Update Eventing deps (#16085)

* Update Eventing deps

* Update images

* Fix tests

* Change http response code based on backend error (#16115)

* introduce common errors to allow returning custom http responses

* bump image

* evaluate API Error returned by nats

* fix code review comments

* gomod(deps): bump k8s.io/client-go from 0.25.3 to 0.25.4 in /components/event-publisher-proxy (#16102)

* gomod(deps): bump k8s.io/client-go in /components/event-publisher-proxy

Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.3 to 0.25.4.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.25.3...v0.25.4)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats.go from 1.19.0 to 1.20.0 in /components/event-publisher-proxy (#16093)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Bump dependencies `event-publisher-proxy` (#16130)

* bump dependencies

* bump k8s

* bump crypto

* remove replace for containerd

* remove replace for jwt-go

* remove replace for docker

* remove replace for docker/docker

* bump prometheus/client_golang

* bump image

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.7 to 2.9.8 in /components/event-publisher-proxy (#16159)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.7 to 2.9.8.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.7...v2.9.8)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* bump image

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump go.uber.org/zap from 1.23.0 to 1.24.0 in /components/event-publisher-proxy (#16236)

* gomod(deps): bump go.uber.org/zap in /components/event-publisher-proxy

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* change loglevel from debug to error for invalid legacyEvent (#16243)

* add component name to nats connection (#16176)

* add component name to nats connection

* bump image

* add name for v1 controller

Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats.go from 1.20.0 to 1.21.0 in /components/event-publisher-proxy (#16269)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump golang.org/x/oauth2 from 0.2.0 to 0.3.0 in /components/event-publisher-proxy (#16280)

* gomod(deps): bump golang.org/x/oauth2

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* bump image to golang1.19.4-alpine3.17 in ec and epp (#16308)

* bump dep

* bump image

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.8 to 2.9.9 in /components/event-publisher-proxy (#16314)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.8 to 2.9.9.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.8...v2.9.9)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Adapt subscribed api (#16275)

* Adapt /subscribed API for v1alpha2

* Update /subscribed API for v1alpha2 subscription CRD version
* Write Unit tests for the new implementaion

* Write /subscribed API for v1alpha2 newly

* Write /subscribed API for v1alpha2 newly
* Adapt the unit tests accordingly

* Update Changes according to code review

* Add New CRD Flag for EPP in EC

* Update EC and EPP Version to PR Number

* Improve according to Review Comments

* Improve documentations

* Improve New CRD Distinction

* BEB should also able to distinct new crd
* Use new crd flag for DynamicSharedInformerFactory

* improve epp metrics (#16298)

* rename metrics to the following pattern

eventting_epp-<backend>-<metric>

* revert unnecessary changes

* revert two missing changes

* Update components/event-publisher-proxy/pkg/metrics/collector.go

Co-authored-by: Friedrich <[email protected]>

* change metrics test

* Simplify TestNewCollector

* Update components/event-publisher-proxy/pkg/handler/handler_test.go

Co-authored-by: Nils Seip <[email protected]>

* fix outdated comment

* remove unused parameter

* fix review comments

* bump image

* rename duration histogram to milliseconds

Co-authored-by: Friedrich <[email protected]>
Co-authored-by: Nils Seip <[email protected]>
Co-authored-by: Nils Seip <[email protected]>

* Support publishing cloud-events for Subscritpion v1alpha2 CRD in EPP (#16401)

* Support publihsing events for Subscritpion v1alpha2 CRD in EPP

* updated tests

* updated tests

* addressed review comments

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.9 to 2.9.10 in /components/event-publisher-proxy (#16417)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.9 to 2.9.10.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.9...v2.9.10)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats.go from 1.21.0 to 1.22.1 in /components/event-publisher-proxy (#16437)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.21.0 to 1.22.1.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.21.0...v1.22.1)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/onsi/gomega from 1.24.1 to 1.24.2 in /components/event-publisher-proxy (#16365)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.24.1...v1.24.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Update dependencies in eventing 2022 dec 29 (#16456)

* bump k8s packages in ec

* bump k8s packages in epp

* bump image

* rename `beb` to `eventmesh` in epp/pkg/sender (#16466)

* rename beb to eventmesh in pkg/sender/

* bump image

* Support publishing legacy-events for Subscritpion v1alpha2 CRD in EPP (#16433)

* Support publihsing events for Subscritpion v1alpha2 CRD in EPP

* updated tests

* updated tests

* Support publishing legacy-events for Subscritpion v1alpha2 CRD in EPP

* updated legacy

* Replaced hardcoded old Event type prefix in EPP

* image bump

* added tests

* added tests

* added tests

* addressed review comments

* addressed review comments part 2

* addressed review comments part 3

* Change `BEB` to `EventMesh` in `epp/pkg/env` (#16472)

* Change `BEB` to `EventMesh` in epp/pkg/beb_config.go and beb_config_test.go.

* Bump the image of epp.

* gomod(deps): bump golang.org/x/oauth2 from 0.3.0 to 0.4.0 in /components/event-publisher-proxy (#16505)

* gomod(deps): bump golang.org/x/oauth2

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* improve application name parsing from request path (#16510)

* slight improvement to application name parsing

* bump image

Co-authored-by: Friedrich <[email protected]>

* Fix legacy event not clean appName issue (#16532)

* Fix legacy event not clean appName issue

* Don't validate app name while extracting request data, as it is checked during CE conversion

* Bump Eventing Publisher Proxy PR Number

* gomod(deps): bump github.com/cloudevents/sdk-go/v2 from 2.12.0 to 2.13.0 in /components/event-publisher-proxy (#16520)

* gomod(deps): bump github.com/cloudevents/sdk-go/v2

Bumps [github.com/cloudevents/sdk-go/v2](https://github.com/cloudevents/sdk-go) from 2.12.0 to 2.13.0.
- [Release notes](https://github.com/cloudevents/sdk-go/releases)
- [Commits](https://github.com/cloudevents/sdk-go/compare/v2.12.0...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/cloudevents/sdk-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.10 to 2.9.11 in /components/event-publisher-proxy (#16512)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.10 to 2.9.11.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.10...v2.9.11)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Cleanup event type from prefixes before forwarding event to the sink (#16496)

* Cleanup event type from prefixes before forwarding event to the sink

* image bump

* Dependencies bump for Eventing controller and EPP (#16632)

* Lib bump for Eventing controller and EPP

* image bump

* bump k8s libs

Co-authored-by: Friedrich <[email protected]>

* Fixed EPP to not clean application name twice (#16621)

* Fixed EPP to not clean application name twice

* image bump

* gomod(deps): bump github.com/onsi/gomega from 1.25.0 to 1.26.0 in /components/event-publisher-proxy (#16652)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>
Co-authored-by: Raymond Pinto <[email protected]>

* validate source for valid URI (#16671)

* validate source for valid URI

* bump imgs

* address feedback

* fix tests

* added comments

* Fix Eventing Metrics for new CRD (#16720)

* Fix Eventing Metrics for new CRD
* Use original event type without empty for EPP published event total
  metric

* Use PR image for EPP

* Set Event When Original Type Header Missing

* Record normal event type when original header type is missing

* Add Unit Tests for Metric Adaptation

* Add / adapt unit tests for metric adaptation of new CRD

* Fix linting errors

* change epp linter config (#16553)

* add new linter config

* fix go cognit lint issue

* fix godot lint issues

* fix lint issues lll (where it made sense)

* fix gomnd issues

* fix variable naming

* run tests in parallel

* ignore shadowing `err`

* remove namedreturns

* fix more lint issues

* bump image

* fix review comments

* change comment to explain the behaviour a bit clearer

* gomod(deps): bump golang.org/x/oauth2 from 0.4.0 to 0.5.0 in /components/event-publisher-proxy (#16777)

* gomod(deps): bump golang.org/x/oauth2

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.11 to 2.9.14 in /components/event-publisher-proxy (#16757)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.11 to 2.9.14.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.11...v2.9.14)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/onsi/gomega from 1.26.0 to 1.27.1 in /components/event-publisher-proxy (#16836)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.26.0 to 1.27.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.26.0...v1.27.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Enable subscription v1alpha2 (#16849)

* Add a deprecation warning for subscription v1alpha1.

* Enable new CRD (Subscription v1alpha2).

* Make subscription v1alpha2 default in make target `copy-crd`.

* Run `make copy crd` in components/eventing-controller.

* Enable subscription v1alpha2 FI tests.

* Format to bring joy to the linter.

* Bump the images.

* stored v1alpha1 CRD separately for integration tests

* reverse v1alpha2 in fi tests.

---------

Co-authored-by: Muhammad Faizan <[email protected]>

* gomod(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 in /components/event-publisher-proxy (#16934)

* gomod(deps): bump github.com/stretchr/testify

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/onsi/gomega from 1.27.1 to 1.27.2 in /components/event-publisher-proxy (#16950)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.1 to 1.27.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.1...v1.27.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats.go from 1.23.0 to 1.24.0 in /components/event-publisher-proxy (#16935)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/nats-io/nats-server/v2 from 2.9.14 to 2.9.15 in /components/event-publisher-proxy (#16983)

* gomod(deps): bump github.com/nats-io/nats-server/v2

Bumps [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) from 2.9.14 to 2.9.15.
- [Release notes](https://github.com/nats-io/nats-server/releases)
- [Changelog](https://github.com/nats-io/nats-server/blob/main/.goreleaser.yml)
- [Commits](https://github.com/nats-io/nats-server/compare/v2.9.14...v2.9.15)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-server/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump golang.org/x/oauth2 from 0.5.0 to 0.6.0 in /components/event-publisher-proxy (#16998)

* gomod(deps): bump golang.org/x/oauth2

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* docker(deps): bump kyma-project/external/golang from 1.19.5-alpine3.17 to 1.20.1-alpine3.17 in /components/event-publisher-proxy (#17067)

* docker(deps): bump kyma-project/external/golang

Bumps kyma-project/external/golang from 1.19.5-alpine3.17 to 1.20.1-alpine3.17.

---
updated-dependencies:
- dependency-name: kyma-project/external/golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* docker(deps): bump kyma-project/external/golang from 1.20.1-alpine3.17 to 1.20.2-alpine3.17 in /components/event-publisher-proxy (#17082)

* docker(deps): bump kyma-project/external/golang

Bumps kyma-project/external/golang from 1.20.1-alpine3.17 to 1.20.2-alpine3.17.

---
updated-dependencies:
- dependency-name: kyma-project/external/golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Update k8s dependencies in Eventing. (#17083)

* Bump k8s dependencies in epp.

* Upgrade k8s dependencies in ec.

* Bump images.

* Clean the replaces in eventing. (#17124)

* use go 1.20 in ec

* bump crypto replace in ec

* use go 1.20 in epp

* bump crypto replace in epp

* bump replace for k8s.io/utils in epp

* remove replace for k8s.io/utils from epp

* remove replace for github.com/opencontainers/runc in epp

* bump replace apigateway in epp

* bump images

* gomod(deps): bump github.com/nats-io/nats.go from 1.24.0 to 1.25.0 in /components/event-publisher-proxy (#17192)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* gomod(deps): bump github.com/onsi/gomega from 1.27.2 to 1.27.6 in /components/event-publisher-proxy (#17222)

* gomod(deps): bump github.com/onsi/gomega

Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.2 to 1.27.6.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.2...v1.27.6)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Bump pkgs in EC and EPP as per dependerbot (#17369)

* Bump pkgs in EC and EPP

* image bump

* revert nats bump

* Cleanup v1alpha1 Subscription codebase in EPP (#17395)

* Cleanup all v1alpha1  in EPP

* image bump

* lint fix

* gomod(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 in /components/event-publisher-proxy (#17538)

* gomod(deps): bump github.com/stretchr/testify

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Faizan <[email protected]>

* rename to eventmesh in epp (#17593)

* rename package pkg/commander/beb

* rename var names

* rename var names

* go fmt for happy linter

* undo deletion of `require`

* fix some comments

* rename some var names

* go fmt

* bump image

* rename package

s

* rename var

* rename func

* rename funcs

* use updated eventing-controller

* Bump dependencies (#17638)

* Bump dependencies

* Update values

* gomod(deps): bump github.com/nats-io/nats.go from 1.26.0 to 1.27.0 in /components/event-publisher-proxy (#17646)

* gomod(deps): bump github.com/nats-io/nats.go

Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* Update Eventing deps (#17682)

* Update eventing-controller deps

* Update event-publisher-proxy deps

* Update images

* Bump golang in eventing (#17768)

* bump the golang version in eventing

* take the right image

* bump images

* change directory

* Dependencies bump for Eventing (#17794)

* Dependencies bump for Eventing

* bumped prometheus client

* updated replaces

* image bump

* record backend-errors with latency in epp (#17802)

* record metrics for failed backend requests

* fix some previously missed tests

* bump image

* change image folder

* gomod(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 in /components/event-publisher-proxy (#17803)

* gomod(deps): bump golang.org/x/oauth2

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update values.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Friedrich <[email protected]>

* simplify sender interface (#17822)

* simplify sender interface

previously the sender had to return
- a PublishResult
- an Error

The problem here was that PublishResult was treated as an error
indicator for the eventMesh Backend, and the error was for other senders
such as the on Nats

The new interface just expects an Error to be returned in case of an
error. Any successful call will result in a 204 response with an empty
message.

This means now the sender has to map its errors or error responses onto
an error object, and any other function in the chain can just treat all
errors equally.

* remove redundant local variable

* bump images

* fix lint issues

* add missing files

* improve readability of tests

* fix linter

* remove redundant metrics

* empty commit

* add more logging in case of errors during send

* add missing log

* Bump DependaBot PRs (#17835)

* Bump DependaBot PRs

* Image bump

* expose health status as metric (#17839)

* add health status as metric

* bump images

* update metrics documentation

* fix comments

* fix comments

* docker(deps): bump kyma-project/prod/external/golang from 1.20.5-alpine3.18 to 1.20.6-alpine3.18 in /components/event-publisher-proxy (#17904)…
kyma-project#15)

* Replaced kyma/epp pkg with local pkgs

* fixed lint issues
@kyma-bot kyma-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 13, 2023
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 13, 2023
@mfaizanse mfaizanse closed this Dec 14, 2023
@kyma-bot kyma-bot added the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 10, 2024
@kyma-bot
Copy link

Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages.

The list of commits with invalid commit messages:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kyma-bot kyma-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants