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

add tests for alloy-events in events-logger-config #277

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

QuantumEnigmaa
Copy link
Contributor

What this PR does / why we need it

Checklist

  • Update changelog in CHANGELOG.md.
  • Follow deployment test procedure in the tests/manual_e2e directory and have a working branch.

@QuantumEnigmaa QuantumEnigmaa self-assigned this Nov 25, 2024
@QuantumEnigmaa QuantumEnigmaa requested a review from a team as a code owner November 25, 2024 13:15
@QuantumEnigmaa QuantumEnigmaa merged commit 44084d8 into alloy-log-events Nov 25, 2024
8 checks passed
@QuantumEnigmaa QuantumEnigmaa deleted the add-alloy-events-tests branch November 25, 2024 13:47
QuantumEnigmaa added a commit that referenced this pull request Nov 25, 2024
* add k8s events logging to alloy

* changelog

* create the events-logger resource : either alloy or grafana-agent

* handle secret for authentication

* fix alloy config property name

* fix build errors

* rename k8s-events-config package to events-logger-config

* Apply suggestions from code review

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>

* fix error log

* return correct configmap name depending on the events logger

* return correct secret name depending on the events logger

* add scrapedNamespaces to alloy config create related function in common

* add tls config for alloy

* fix formating in grafana-agent template

* hardcode controller.type and controller.replicas in alloyEvents template

* remove unused observabilityBundleVersion parameters and variable in events-logger-config

* remove grafanaAgentSecretName and eventsLoggerSecretName from security checking

* rename variables in events-logger-config's reconciler to a neutral name

* make several functions private

* hardcode several fields in grafana-agent config template

* rename comments and logs in agents-toggle's reconciler

* enable events logger in main.go

* fix formating in events-logger templates

* remove unused field in alloy generateAlloyConfig

* fix alloy-events secret name

* Apply suggestions from code review

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>

* update test files

* handle specific case of observability-bundle version < 0.9.0

* remove secret namespace field

* remove extra line in alloy and grafana-agent config

* fix variable name in reconcileDelete method from event-logger-config reconciler

* fix UTs for grafana-agent template

* disable crds creation in alloy-events template

* fixed grafana-agent tests in events-logger-config

* fix enabling of events logger depending on observability-bundle version

* minor fixes

* add tests for alloy-events in events-logger-config (#277)

* add tests for alloy-events in events-logger-config

* changelog

* create alloy-events tests golden files

---------

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>
QuentinBisson added a commit that referenced this pull request Dec 17, 2024
* add k8s events logging to alloy

* changelog

* create the events-logger resource : either alloy or grafana-agent

* handle secret for authentication

* fix alloy config property name

* fix build errors

* rename k8s-events-config package to events-logger-config

* Apply suggestions from code review

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>

* fix error log

* return correct configmap name depending on the events logger

* return correct secret name depending on the events logger

* add scrapedNamespaces to alloy config create related function in common

* add tls config for alloy

* fix formating in grafana-agent template

* hardcode controller.type and controller.replicas in alloyEvents template

* remove unused observabilityBundleVersion parameters and variable in events-logger-config

* remove grafanaAgentSecretName and eventsLoggerSecretName from security checking

* rename variables in events-logger-config's reconciler to a neutral name

* make several functions private

* hardcode several fields in grafana-agent config template

* rename comments and logs in agents-toggle's reconciler

* enable events logger in main.go

* fix formating in events-logger templates

* remove unused field in alloy generateAlloyConfig

* fix alloy-events secret name

* Apply suggestions from code review

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>

* update test files

* handle specific case of observability-bundle version < 0.9.0

* remove secret namespace field

* remove extra line in alloy and grafana-agent config

* fix variable name in reconcileDelete method from event-logger-config reconciler

* fix UTs for grafana-agent template

* disable crds creation in alloy-events template

* fixed grafana-agent tests in events-logger-config

* fix enabling of events logger depending on observability-bundle version

* minor fixes

* add tests for alloy-events in events-logger-config (#277)

* add tests for alloy-events in events-logger-config

* changelog

* create alloy-events tests golden files

---------

Co-authored-by: Quentin Bisson <quentin@giantswarm.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants