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

[elastic-agent] Fix docker tar.gz generation for complete image #27621

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

andrewvc
Copy link
Contributor

This interpolates the variant into the format string for .tar.gz docker artifacts. In also correctly handles the case where the format string is used in contexts without variant present, such as darwin. We still need an empty value for the templating language not to error.

Fixes #27608

This interpolates the `variant` into the format string for .tar.gz
docker artifacts. In also correctly handles the case where the format
string is used in contexts without variant present, such as darwin. We
still need an empty value for the templating language not to error.

Fixes elastic#27608
@andrewvc andrewvc added bug Packaging Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.15.0 labels Aug 27, 2021
@andrewvc andrewvc self-assigned this Aug 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 27, 2021
@andrewvc andrewvc requested a review from mdelapenya August 27, 2021 00:59
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-08-27T00:58:47.572+0000

  • Duration: 159 min 20 sec

  • Commit: 6099491

Test stats 🧪

Test Results
Failed 0
Passed 53711
Skipped 5324
Total 59035

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 53711
Skipped 5324
Total 59035

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

LGTM

@mdelapenya
Copy link
Contributor

Will this supersede #27609 ?

@andrewvc
Copy link
Contributor Author

I didn't realize that PR existed, but given that this patch works, has passed CI (where the other one hasn't) I move that we move forward with this one.

Copy link
Contributor

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

I didn't realize that PR existed, but given that this patch works, has passed CI (where the other one hasn't) I move that we move forward with this one.

Makes sense. LGTM

I'd like to know @jsoriano's and @kvch's review as build domain experts for the other PR (#27609) for the sake of completeness

@mdelapenya mdelapenya requested review from kvch and jsoriano August 30, 2021 05:56
@andrewvc andrewvc merged commit 89e415d into elastic:master Aug 30, 2021
@andrewvc
Copy link
Contributor Author

@Mergifyio backport 7.x

@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2021

Command backport 7.x: success

Backports have been created

@andrewvc
Copy link
Contributor Author

@Mergifyio backport 7.15

mergify bot pushed a commit that referenced this pull request Aug 30, 2021
@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2021

Command backport 7.15: success

Backports have been created

andrewvc added a commit that referenced this pull request Aug 30, 2021
…) (#27641)

(cherry picked from commit 89e415d)

Co-authored-by: Andrew Cholakian <[email protected]>
andrewvc added a commit that referenced this pull request Aug 30, 2021
…) (#27640)

(cherry picked from commit 89e415d)

Co-authored-by: Andrew Cholakian <[email protected]>
mdelapenya added a commit to mdelapenya/beats that referenced this pull request Sep 1, 2021
* master:
  Forward port 7.14.1 changelog to master  (elastic#27687)
  Addressing multiple dashboard issues: deps loading once, field conversion, etc. (elastic#27669)
  Remove adaptive queue sizes from agent's spec files (elastic#27653)
  Osquerybeat: Improve testability and unit test coverage (elastic#27591)
  Osquerybeat: lockdown flagsfile, prevent global defaults (elastic#27611)
  Import the references of dashboard assets using the Saved Objects API (elastic#27647)
  Fix bug with override path in cgroups (elastic#27620)
  Allow Kibana client to authorize with Elasticsearch API key (elastic#27540)
  Filebeat auditd: Fix Top Exec Commands dashboard visualization (elastic#27638)
  [elastic-agent] Fix docker tar.gz generation for complete image (elastic#27621)
  Follow up changes in dashboards in mage check && fix minor issue (elastic#27553)
  [Heartbeat] Fix bug where `enabled: false` is ignored. (elastic#27615)
  Support kube_state_metrics v2.0.0 (elastic#27552)
mdelapenya added a commit to mdelapenya/beats that referenced this pull request Oct 19, 2021
mdelapenya added a commit that referenced this pull request Oct 26, 2021
…28526)

* Revert "[elastic-agent] Fix docker tar.gz generation for complete image (#27621)"

This reverts commit 89e415d.

* Revert "[elastic-agent] Use -complete in docker image name, not tag (#27399)"

This reverts commit 954a250.

* chore: use declarative variant for complete

* fix: pass agent dockerfile to complete spec

* fix: do not append variant to the artifact name

* docs: update reference to complete variant

* chore: remove unused param

* chore: remove Variants from PacakgeSpec struct

As we prefer using the declarative way over the programmatic way, we do
not need the variable. Instead, we'll use the YAML file for declaring the
new variants

* fix: align comment

Co-authored-by: Jaime Soriano Pastor <[email protected]>

Co-authored-by: Jaime Soriano Pastor <[email protected]>
mergify bot pushed a commit that referenced this pull request Oct 26, 2021
…28526)

* Revert "[elastic-agent] Fix docker tar.gz generation for complete image (#27621)"

This reverts commit 89e415d.

* Revert "[elastic-agent] Use -complete in docker image name, not tag (#27399)"

This reverts commit 954a250.

* chore: use declarative variant for complete

* fix: pass agent dockerfile to complete spec

* fix: do not append variant to the artifact name

* docs: update reference to complete variant

* chore: remove unused param

* chore: remove Variants from PacakgeSpec struct

As we prefer using the declarative way over the programmatic way, we do
not need the variable. Instead, we'll use the YAML file for declaring the
new variants

* fix: align comment

Co-authored-by: Jaime Soriano Pastor <[email protected]>

Co-authored-by: Jaime Soriano Pastor <[email protected]>
(cherry picked from commit 554399a)

# Conflicts:
#	dev-tools/packaging/packages.yml
#	dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
mergify bot pushed a commit that referenced this pull request Oct 26, 2021
…28526)

* Revert "[elastic-agent] Fix docker tar.gz generation for complete image (#27621)"

This reverts commit 89e415d.

* Revert "[elastic-agent] Use -complete in docker image name, not tag (#27399)"

This reverts commit 954a250.

* chore: use declarative variant for complete

* fix: pass agent dockerfile to complete spec

* fix: do not append variant to the artifact name

* docs: update reference to complete variant

* chore: remove unused param

* chore: remove Variants from PacakgeSpec struct

As we prefer using the declarative way over the programmatic way, we do
not need the variable. Instead, we'll use the YAML file for declaring the
new variants

* fix: align comment

Co-authored-by: Jaime Soriano Pastor <[email protected]>

Co-authored-by: Jaime Soriano Pastor <[email protected]>
(cherry picked from commit 554399a)

# Conflicts:
#	dev-tools/packaging/packages.yml
Icedroid pushed a commit to Icedroid/beats that referenced this pull request Nov 1, 2021
Icedroid pushed a commit to Icedroid/beats that referenced this pull request Nov 1, 2021
…lastic#28526)

* Revert "[elastic-agent] Fix docker tar.gz generation for complete image (elastic#27621)"

This reverts commit 89e415d.

* Revert "[elastic-agent] Use -complete in docker image name, not tag (elastic#27399)"

This reverts commit 954a250.

* chore: use declarative variant for complete

* fix: pass agent dockerfile to complete spec

* fix: do not append variant to the artifact name

* docs: update reference to complete variant

* chore: remove unused param

* chore: remove Variants from PacakgeSpec struct

As we prefer using the declarative way over the programmatic way, we do
not need the variable. Instead, we'll use the YAML file for declaring the
new variants

* fix: align comment

Co-authored-by: Jaime Soriano Pastor <[email protected]>

Co-authored-by: Jaime Soriano Pastor <[email protected]>
mdelapenya added a commit that referenced this pull request Nov 2, 2021
…nt of the elastic-agent (#28635)

* fix: use declarative style for complete variant of the elastic-agent (#28526)

* Revert "[elastic-agent] Fix docker tar.gz generation for complete image (#27621)"

This reverts commit 89e415d.

* Revert "[elastic-agent] Use -complete in docker image name, not tag (#27399)"

This reverts commit 954a250.

* chore: use declarative variant for complete

* fix: pass agent dockerfile to complete spec

* fix: do not append variant to the artifact name

* docs: update reference to complete variant

* chore: remove unused param

* chore: remove Variants from PacakgeSpec struct

As we prefer using the declarative way over the programmatic way, we do
not need the variable. Instead, we'll use the YAML file for declaring the
new variants

* fix: align comment

Co-authored-by: Jaime Soriano Pastor <[email protected]>

Co-authored-by: Jaime Soriano Pastor <[email protected]>
(cherry picked from commit 554399a)

# Conflicts:
#	dev-tools/packaging/packages.yml

* fix: resolve conflicts in packages.yml file

Co-authored-by: Manuel de la Peña <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Packaging Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete variant for the elastic agent is not generating the right binaries
4 participants