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 feature flag for setting DT_INITIAL_CONNECT_RETRY_MS env-var to webhook injected containers #790

Merged
merged 8 commits into from
May 20, 2022

Conversation

luhi-DT
Copy link
Collaborator

@luhi-DT luhi-DT commented May 19, 2022

Description

In order to support istio, we need to give customer the possibility to set DT_INITIAL_CONNECT_RETRY_MS via the webhook to their containers, in order to delay the startup of the agent. It was decided that it should be a feature flag, rather than tightly coupling it with the enableIstio field in the CR. Therefore I introduced the feature.dynatrace.com/oneagent-initial-connect-retry-ms feature flag, where customers can set the preferred value.

How can this be tested?

Create a Dynakube (either with applicationMonitoring or cloudNative) and add the annotation feature.dynatrace.com/oneagent-initial-connect-retry-ms: "<value>" to it. Any pod which is injected now should get the env var DT_INITIAL_CONNECT_RETRY_MS set to its containers, with the according value.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly

@luhi-DT luhi-DT added the core Changes to core functionality of the Operator label May 19, 2022
@luhi-DT luhi-DT requested a review from a team as a code owner May 19, 2022 18:08
@luhi-DT luhi-DT changed the title Add feature flag for setting DT_INITIAL_CONNECT_RETRY_MS env-var to webhook injected containers Add feature flag for setting ‘DT_INITIAL_CONNECT_RETRY_MS‘ env-var to webhook injected containers May 19, 2022
@luhi-DT luhi-DT changed the title Add feature flag for setting ‘DT_INITIAL_CONNECT_RETRY_MS‘ env-var to webhook injected containers Add feature flag for setting ´DT_INITIAL_CONNECT_RETRY_MS´ env-var to webhook injected containers May 19, 2022
@luhi-DT luhi-DT changed the title Add feature flag for setting ´DT_INITIAL_CONNECT_RETRY_MS´ env-var to webhook injected containers Add feature flag for setting DT_INITIAL_CONNECT_RETRY_MS env-var to webhook injected containers May 19, 2022
waodim
waodim previously approved these changes May 20, 2022
Copy link
Contributor

@waodim waodim left a comment

Choose a reason for hiding this comment

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

Everything seems fine to me.

src/api/v1beta1/feature_flags.go Show resolved Hide resolved
src/webhook/mutation/pod_mutator.go Outdated Show resolved Hide resolved
@luhi-DT luhi-DT requested a review from mjgrzybek May 20, 2022 08:15
@luhi-DT luhi-DT merged commit 425dded into master May 20, 2022
@luhi-DT luhi-DT deleted the feature/add-option-to-set-initialConnectRetryMs branch May 20, 2022 08:39
luhi-DT added a commit that referenced this pull request May 20, 2022
…v-var to webhook injected containers (#790)"

This reverts commit 425dded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core functionality of the Operator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants