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

Don't require APM to enable datadog-installer #588

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

chouquette
Copy link
Contributor

This PR allows the datadog-installer to be enabled trough a new remote_updates variable

@chouquette chouquette force-pushed the chouquette/enable_installer branch 3 times, most recently from 02fa5a4 to 3982874 Compare July 30, 2024 12:11
@chouquette chouquette marked this pull request as ready for review July 30, 2024 12:17
@chouquette chouquette requested a review from a team as a code owner July 30, 2024 12:17
And use it to enable the installer installation
@chouquette chouquette force-pushed the chouquette/enable_installer branch 8 times, most recently from f8de2d2 to faf8566 Compare July 30, 2024 13:48
- run: ANSIBLE_JINJA2_NATIVE="<<parameters.jinja2_native>>" ansible-playbook -i ./ci_test/inventory/<<parameters.inventory>> "./ci_test/install_installer.yaml"
- run: datadog-installer version
- run: ANSIBLE_JINJA2_NATIVE="<<parameters.jinja2_native>>" ansible-playbook -i ./ci_test/inventory/<<parameters.inventory>> "./ci_test/install_installer.yaml" -e datadog_apm_instrumentation_enabled="<<parameters.apm_enabled>>" -e datadog_remote_updates="<<parameters.remote_updates>>"
- run: bash -c 'if [ -n "<<parameters.apm_enabled>>" ] || [ "<<parameters.remote_updates>>" = "true" ]; then datadog-installer version; elif command -v datadog-installer; then echo datadog-installer should not be installed; exit 2; else echo datadog-installer is not installed as expected; fi'
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I am not sure we need datadog-installer is not installed as expected and I am a bit curious about whether it's possible to have smaller lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed on the line size, this is handled in a follow up PR: 3a07803
Although as it's currently kind of blocked, I'll cherry pick it here

Regarding the echo ... as expected this was to avoid having a large chunk of shell script being displayed with no insight, I find it a bit reassuring to have the test job saying what failed/succeeded

@chouquette chouquette merged commit e1c2008 into main Jul 31, 2024
151 checks passed
@chouquette chouquette deleted the chouquette/enable_installer branch July 31, 2024 13:12
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