Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Update status of OneAgentAPM if token is missing #285

Merged
merged 3 commits into from
Aug 6, 2020

Conversation

meik99
Copy link
Contributor

@meik99 meik99 commented Aug 6, 2020

Before returning the error, updates status of an OneAgentAPM instance if the token secret is missing.

@meik99 meik99 requested review from lrgar and DTMad August 6, 2020 07:01
name = "oneagent"
namespace = "dynatrace"

noTokenError = "Secret 'dynatrace:oneagent' not found"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a variable used only once, then I suggest using it directly on the function who calls it.

name := "oneagent"
ns := "dynatrace"
const (
apiUrl = "https://ENVIRONMENTID.live.dynatrace.com/api"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiURL please so that Go linter doesn't complain about it.

@meik99 meik99 merged commit 804f3fc into master Aug 6, 2020
lrgar pushed a commit that referenced this pull request Aug 18, 2020
…tatus

Update status of OneAgentAPM if token is missing
lrgar pushed a commit that referenced this pull request Aug 18, 2020
…tatus

Update status of OneAgentAPM if token is missing
@lrgar lrgar deleted the bugfix/apm-set-missing-token-status branch August 24, 2020 06:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants