-
Notifications
You must be signed in to change notification settings - Fork 127
Support different Kibana configs based on stack version #553
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7911ff7
Test boot up of different stack versions
20a0176
Reword: default lts 8x
31cd0a9
Use STACK_VERSION_VARIANT
0748b41
Fix: Kibana
4f7f72d
Fix
1d5e7fd
Fix: default
34a44bd
Fix
99af257
Another fix
8f20976
Fix: wrong function
6c6c64b
Bug: makefile
c0131aa
Remove deprecated flags
16a2103
Use 7x instead of lts
6a56dd3
Fix: xpack.fleet.agents.elasticsearch.hosts is array
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can encapsulate all the particularities for a given version in the profile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First we have to clean this dependency hell around profiles, but in general I agree with you.