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

upgrade(installer): Use pipeline OCI image at bootstrap #790

Closed

Conversation

BaptisteFoy
Copy link
Contributor

@BaptisteFoy BaptisteFoy commented Apr 20, 2024

What does this PR do?

The installer installs its latest OCI version during postinst. We should use the one we just built in the pipeline. This is what this PR does: it uses what the agent CI pushes to the QA registries.

Requires DataDog/datadog-agent#24889 & DataDog/datadog-agent#25036

Which scenarios this will impact?

new-e2e-installer

Motivation

Additional Notes

@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch 3 times, most recently from 8ad9370 to 877ed31 Compare April 22, 2024 12:49
@BaptisteFoy BaptisteFoy marked this pull request as ready for review April 22, 2024 13:32
@BaptisteFoy BaptisteFoy requested a review from a team as a code owner April 22, 2024 13:32
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch from 877ed31 to 5604968 Compare April 22, 2024 13:55
@BaptisteFoy BaptisteFoy marked this pull request as draft April 23, 2024 09:30
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch 2 times, most recently from 2534fa4 to 9596bde Compare April 24, 2024 11:39
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch from 9596bde to 6c9ab23 Compare April 24, 2024 12:01
@BaptisteFoy BaptisteFoy marked this pull request as ready for review April 25, 2024 11:42
@BaptisteFoy BaptisteFoy marked this pull request as draft April 25, 2024 11:43
@BaptisteFoy BaptisteFoy marked this pull request as ready for review April 26, 2024 12:19
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch from 55cee79 to 0011fe4 Compare April 26, 2024 14:38
@BaptisteFoy BaptisteFoy force-pushed the baptiste.foy/FA/custom-installer-bootstrap-image branch from 0011fe4 to 5475e5d Compare April 26, 2024 14:39
@@ -111,6 +117,8 @@ elif [ "${OS}" = "RedHat" ]; then
$sudo_cmd sh -c "echo -e '[datadog]\nname = Datadog, Inc.\nbaseurl = https://${yum_url}/${yum_repo_version}/${ARCH}/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\npriority=1\ngpgkey=${gpgkeys}' > /etc/yum.repos.d/datadog.repo"
$sudo_cmd yum -y clean metadata
$sudo_cmd yum -y install datadog-installer
$sudo_cmd DD_INSTALLER_REGISTRY="${DD_INSTALLER_REGISTRY}" DD_INSTALLER_BOOTSTRAP_VERSION="${DD_INSTALLER_BOOTSTRAP_VERSION}" DD_INSTALLER_REGISTRY_AUTH="${DD_INSTALLER_REGISTRY_AUTH}" /opt/datadog-installer/bin/installer/installer bootstrap
Copy link
Member

Choose a reason for hiding this comment

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

Let's discuss before merging: I'm wondering if it's not better to keep this on the agent side especially with tests on the bootstrap process itself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be here for individual VMs or the lab, but we could make it optional with a flag for the E2E.

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.

None yet

4 participants