Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/_suites/fleet/installers.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func NewTARPackage(binaryName string, profile string, image string, service stri
func (i *TARPackage) Install(containerName string, token string) error {
// install the elastic-agent to /usr/bin/elastic-agent using command
binary := fmt.Sprintf("/elastic-agent/%s", i.artifact)
args := []string{"--force", "--insecure", "--enrollment-token", token, "--kibana-url", "http://kibana:5601"}
args := []string{"--force", "--insecure", "--enrollment-token=" + token, "--kibana-url", "http://kibana:5601"}

err := runElasticAgentCommand(i.profile, i.image, i.service, binary, "install", args)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion e2e/_suites/fleet/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (i *ElasticAgentInstaller) listElasticAgentWorkingDirContent(containerName
}

func buildEnrollmentFlags(token string) []string {
return []string{"--url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"}
return []string{"--kibana-url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@michalpristas this is affecting the enroll command. Is this correct?

}

// runElasticAgentCommand runs a command for the elastic-agent
Expand Down