-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support different Kibana configs based on stack version (#553)
* Test boot up of different stack versions * Reword: default lts 8x * Use STACK_VERSION_VARIANT * Fix: Kibana * Fix * Fix: default * Fix * Another fix * Fix: wrong function * Bug: makefile * Remove deprecated flags * Use 7x instead of lts * Fix: xpack.fleet.agents.elasticsearch.hosts is array
- Loading branch information
Showing
13 changed files
with
140 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
server.name: kibana | ||
server.host: "0.0.0.0" | ||
|
||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
elasticsearch.username: elastic | ||
elasticsearch.password: changeme | ||
|
||
monitoring.ui.container.elasticsearch.enabled: true | ||
|
||
xpack.fleet.registryUrl: "http://package-registry:8080" | ||
xpack.fleet.agents.enabled: true | ||
xpack.fleet.agents.elasticsearch.hosts: ["http://elasticsearch:9200"] | ||
xpack.fleet.agents.fleet_server.hosts: ["http://fleet-server:8220"] | ||
|
||
xpack.encryptedSavedObjects.encryptionKey: "12345678901234567890123456789012" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
// or more contributor license agreements. Licensed under the Elastic License; | ||
// you may not use this file except in compliance with the Elastic License. | ||
|
||
package stack | ||
|
||
import ( | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
// stackVariantAsEnv function returns a stack variant based on the given stack version. | ||
// We identified two variants: | ||
// * default, covers all of 7.x branches | ||
// * 8x, supports different configuration options in Kibana | ||
func stackVariantAsEnv(version string) string { | ||
return fmt.Sprintf("STACK_VERSION_VARIANT=%s", selectStackVersion(version)) | ||
} | ||
|
||
func selectStackVersion(version string) string { | ||
if strings.HasPrefix(version, "8.") { | ||
return "8x" | ||
} | ||
return "default" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters