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

Some additions to the Dynatrace extension #129

Merged
merged 2 commits into from
Dec 28, 2017
Merged

Some additions to the Dynatrace extension #129

merged 2 commits into from
Dec 28, 2017

Conversation

arthfl
Copy link
Contributor

@arthfl arthfl commented Dec 20, 2017

  • A short explanation of the proposed change:
    Added a bunch of things to the Dynatrace extension:

  • detection if there is more than one credential service, if yes: fail, since that is not supported.

  • download retry: failed installer downloads retry 3 times with exponential backoff. This should help prevent issues with mass deployments and download throttling.

  • skiperrors flag: gives the user/customer the option to ignore errors from the installer download. It will then just skip the rest of the steps after the download and the overall app deployment doesn't fail. This is a request we had from various customers to prevent failing app deployments in case of small network hickups or throttling issues.

  • the path to the agent binary is now taken from the manifest.json file instead of being hardcoded into the extension. This makes it failsafer and future changes in filepaths do not require changes to the buildpack-extension anymore.

  • default for environment variable DT_LOGSTREAM added. If the user/customer doesn't set the variable, we set it to 'stdout'.

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the develop branch

  • I have added an integration test

added unit tests for manifest.json handling

Added tests for setting default logstream

added setting default logstream. added download retry with exponential backoff

added unit tests for setting DT_LOGSTREAM

sanitized installDir path setting

added agentBuilderLibPath var to get rid of multiple calls to filepath.Join

improved log messages for setting env vars a bit

added test for download retry

expanded test for 404 message
@cfdreddbot
Copy link

Hey arthfl!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/153813557

The labels on this github issue will be updated when the story is started.

@dgodd dgodd merged commit 0286956 into cloudfoundry:develop Dec 28, 2017
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.

4 participants