Skip to content

Commit

Permalink
feat: remove 32bit platformcheck (#41544)
Browse files Browse the repository at this point in the history
beats and all downstream clients dropped support for 32bit
artifacts
remove the native platform check as it will always pass
  • Loading branch information
kruskall authored Nov 25, 2024
1 parent 6203368 commit 24d7cf0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 144 deletions.
48 changes: 0 additions & 48 deletions libbeat/cmd/platformcheck/platformcheck.go

This file was deleted.

24 changes: 0 additions & 24 deletions libbeat/cmd/platformcheck/platformcheck_other.go

This file was deleted.

65 changes: 0 additions & 65 deletions libbeat/cmd/platformcheck/platformcheck_test.go

This file was deleted.

7 changes: 0 additions & 7 deletions libbeat/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ package cmd
import (
"flag"
"fmt"
"os"

"github.com/spf13/cobra"

"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/cfgfile"
"github.com/elastic/beats/v7/libbeat/cmd/instance"
"github.com/elastic/beats/v7/libbeat/cmd/platformcheck"
"github.com/elastic/beats/v7/libbeat/licenser"
"github.com/elastic/beats/v7/libbeat/outputs/elasticsearch"
)
Expand All @@ -53,11 +51,6 @@ func GenRootCmdWithSettings(beatCreator beat.Creator, settings instance.Settings
// Check we are actually talking with Elasticsearch, to ensure that used features actually exist.
_, _ = elasticsearch.RegisterGlobalCallback(licenser.FetchAndVerify)

if err := platformcheck.CheckNativePlatformCompat(); err != nil {
fmt.Fprintf(os.Stderr, "Failed to initialize: %v\n", err)
os.Exit(1)
}

if settings.IndexPrefix == "" {
settings.IndexPrefix = settings.Name
}
Expand Down

0 comments on commit 24d7cf0

Please sign in to comment.