-
Notifications
You must be signed in to change notification settings - Fork 52
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
poc(metricsforwarder): read configuration from environment instead of filesystem #3125
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 9, 2024 09:50
b209d51
to
9e84db9
Compare
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 9, 2024 10:00
9e84db9
to
7646711
Compare
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 9, 2024 10:44
31454be
to
8e3ac4a
Compare
bonzofenix
changed the title
Metricsforwarder mtar
feature(metricsforwarder): deploy Metricsforwarder using mtar instead of cf push
Aug 9, 2024
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 9, 2024 11:12
ab43a97
to
5c73f35
Compare
- Update deploy function to change into the autoscaler directory instead of metricsforwarder - Replace `make cf-push` with `make mta-deploy` for deploying autoscaler apps - Mark `mta-deploy` as .PHONY in Makefile, replacing `cf-push`
bonzofenix
changed the title
feature(metricsforwarder): deploy Metricsforwarder using mtar instead of cf push
poc(metricsforwarder): read configuration from environment instead of filesystem
Aug 16, 2024
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 19, 2024 11:49
7180e99
to
463beb4
Compare
…rder • Extract YAML file decoding into DecodeYamlFile function for cleaner LoadConfig. • Implement readDbFromVCAP and readConfigFromVCAP to load database and other configurations from VCAP_SERVICES. • Update loadVCAPEnvs to use the new VCAP reading functions. • Modify tests to handle new environment variable-based configuration loading and add checks for VCAP_SERVICES parsing. • Fix error handling in readDbFromVCAP to return an error when multiple DB services are tagged as relational.
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
3 times, most recently
from
August 20, 2024 15:30
03e35f9
to
cd6bb23
Compare
silvestre
approved these changes
Aug 27, 2024
• Remove ErrReadEnvironment variable from cf.go • Change error handling to print a message instead of returning an error when failing to read VCAP_APPLICATION • Add tests for IsRunningOnCF when VCAP_APPLICATION is not set • Remove unused unsetEnvVars function and related test scenarios in cmd metricsforwarder_test.go
- Change import path from cloudfoundry-community to cloud-gov for go-cfenv - Upgrade go-cfenv to v1.19.1 - Update mapstructure package to v1.5.0
bonzofenix
added
the
allow-acceptance-tests
This label needs to be added to enable the acceptance tests to run.
label
Aug 28, 2024
bonzofenix
commented
Aug 28, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
bonzofenix
force-pushed
the
metricsforwarder-mtar
branch
from
August 28, 2024 13:51
ef5f37a
to
cee35f8
Compare
Quality Gate failedFailed conditions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
allow-acceptance-tests
This label needs to be added to enable the acceptance tests to run.
exclude-from-changelog
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
Solution: