Skip to content

Commit

Permalink
Merge upstream/main into add-new-option-agent-baseimage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Sep 3, 2024
2 parents 5ca4a37 + a4e1303 commit 89f22c4
Show file tree
Hide file tree
Showing 51 changed files with 385 additions and 1,044 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-elastic-stack-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
echo "UPDATECLI_ACTION=apply" >> $GITHUB_ENV
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@d0950ebbe80f4f80c3392b288d6a218fae872f69 #v2.66.0
uses: updatecli/updatecli-action@6b8881a17fc8038e884ec94ff72a49e8e8a4069f #v2.67.0

- name: Update default stack version
# --experimental needed for commitusingapi option.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test-stack-command-86:
./scripts/test-stack-command.sh 8.6.2

test-stack-command-8x:
./scripts/test-stack-command.sh 8.16.0-77b64b1f-SNAPSHOT
./scripts/test-stack-command.sh 8.16.0-a3caaa65-SNAPSHOT

test-stack-command-with-apm-server:
APM_SERVER_ENABLED=true ./scripts/test-stack-command.sh
Expand Down
6 changes: 3 additions & 3 deletions internal/install/application_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ func selectElasticAgentImageName(version, agentBaseImage string) string {
return elasticAgentLegacyImageName
}

disableWolfiImages := false
disableWolfiImages := true
valueEnv, ok := os.LookupEnv(disableElasticAgentWolfiEnvVar)
if ok && strings.ToLower(valueEnv) != "false" {
disableWolfiImages = true
if ok && strings.ToLower(valueEnv) != "true" {
disableWolfiImages = false
}
switch {
case agentBaseImage == "complete":
Expand Down
6 changes: 3 additions & 3 deletions internal/install/application_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func TestSelectElasticAgentImageName_NextStackInOwnNamespace(t *testing.T) {
assert.Equal(t, selected, elasticAgentCompleteImageName)
}

func TestSelectElasticAgentImageName_WolfiImage(t *testing.T) {
func TestSelectElasticAgentImageName_DefaultImage816(t *testing.T) {
version := stackVersion8160
selected := selectElasticAgentImageName(version, "")
assert.Equal(t, selected, elasticAgentWolfiImageName)
assert.Equal(t, selected, elasticAgentCompleteImageName)
}

func TestSelectElasticAgentImageName_DisableWolfiImageEnvVar(t *testing.T) {
Expand All @@ -79,7 +79,7 @@ func TestSelectCompleteElasticAgentImageName_ForceCompleteImage(t *testing.T) {
func TestSelectCompleteElasticAgentImageName_ForceDefaultImage(t *testing.T) {
version := stackVersion8160
selected := selectElasticAgentImageName(version, "default")
assert.Equal(t, selected, elasticAgentWolfiImageName)
assert.Equal(t, selected, elasticAgentCompleteImageName)
}

func TestSelectCompleteElasticAgentImageName_ForceDefaultImageOldStack(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions internal/servicedeployer/_static/terraform_deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ services:
volumes:
- ${TF_DIR}:/stage
- ${TF_OUTPUT_DIR}:/output
- ${SERVICE_LOGS_DIR}:/tmp/service_logs/
1 change: 0 additions & 1 deletion internal/testrunner/runners/system/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ func (r *runner) getAllVariants(folder testrunner.TestFolder) ([]string, error)
if len(variants) == 1 && variants[0] == "" {
logger.Debug("No variant mode")
}
logger.Debugf(">>>>>> number of variants loaded: %d - %q", len(variants), strings.Join(variants, ","))
}

return variants, nil
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions test/packages/parallel/aws_logs/_dev/build/build.yml

This file was deleted.

28 changes: 0 additions & 28 deletions test/packages/parallel/aws_logs/_dev/build/docs/README.md

This file was deleted.

65 changes: 0 additions & 65 deletions test/packages/parallel/aws_logs/changelog.yml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 89f22c4

Please sign in to comment.