-
Notifications
You must be signed in to change notification settings - Fork 707
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
Logstash add ElasticsearchRefs #6662
Merged
kaisecheng
merged 35 commits into
elastic:feature/logstash
from
kaisecheng:logstash_esrefs
Apr 26, 2023
Merged
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
fb72c22
add multiple elasticsearch refs
kaisecheng 2386409
fix test
kaisecheng a61d136
add validation
kaisecheng a760d82
add unit tests and update e2e
kaisecheng 113518d
Merge remote-tracking branch 'upstream/feature/logstash' into logstas…
kaisecheng a538805
merge pipelines
kaisecheng 06892f0
add env test
kaisecheng 68ac14e
add es-output e2e
kaisecheng 7380323
add logstash user to association
kaisecheng d1b185d
Merge remote-tracking branch 'upstream/feature/logstash' into logstas…
kaisecheng 3b9608b
merge test
kaisecheng ed24d91
fix generate
kaisecheng de74b4f
fix roles test
kaisecheng e727f71
clean up
kaisecheng 6eec1c9
fix index role
kaisecheng 7303cd6
Update pkg/apis/logstash/v1alpha1/logstash_types.go
kaisecheng 85a5527
Update pkg/controller/logstash/env.go
kaisecheng f9f18b6
Update pkg/apis/logstash/v1alpha1/logstash_types.go
kaisecheng 35ad1fe
ref connection setting from secret
kaisecheng 0971e96
fix generate
kaisecheng cede486
import format
kaisecheng 65a57a6
Update pkg/controller/logstash/pod.go
kaisecheng 0724deb
Merge branch 'logstash_esrefs' of github.com:kaisecheng/cloud-on-k8s …
kaisecheng af3b4d0
Merge branch 'feature/logstash' of github.com:elastic/cloud-on-k8s in…
kaisecheng 3d91ff3
fix test
kaisecheng 899b095
- add clusterName
kaisecheng 258b690
Update pkg/apis/logstash/v1alpha1/validations.go
kaisecheng 90f893b
Update pkg/apis/logstash/v1alpha1/validations_test.go
kaisecheng 51a953a
Update pkg/apis/logstash/v1alpha1/validations_test.go
kaisecheng 3304bd7
Update pkg/apis/logstash/v1alpha1/validations_test.go
kaisecheng 94c07c1
change env var from USERNAME to USER
kaisecheng 3c4c5f9
Update pkg/apis/logstash/v1alpha1/logstash_types.go
kaisecheng ae0df6e
Update pkg/apis/logstash/v1alpha1/logstash_types.go
kaisecheng 36b1182
Update pkg/apis/logstash/v1alpha1/validations.go
kaisecheng eda38a5
fix generate
kaisecheng 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 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,37 @@ | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: elasticsearch-sample | ||
spec: | ||
version: 8.7.0 | ||
nodeSets: | ||
- name: default | ||
count: 2 | ||
config: | ||
node.store.allow_mmap: false | ||
--- | ||
apiVersion: logstash.k8s.elastic.co/v1alpha1 | ||
kind: Logstash | ||
metadata: | ||
name: logstash-sample | ||
spec: | ||
count: 1 | ||
version: 8.7.0 | ||
elasticsearchRefs: | ||
- clusterName: production | ||
name: elasticsearch-sample | ||
# secretName: external-cloud-es-ref | ||
pipelines: | ||
- pipeline.id: main | ||
config.string: | | ||
input { exec { command => 'uptime' interval => 10 } } | ||
output { | ||
elasticsearch { | ||
hosts => [ "${PRODUCTION_ES_HOSTS}" ] | ||
ssl => true | ||
cacert => "${PRODUCTION_ES_SSL_CERTIFICATE_AUTHORITY}" | ||
user => "${PRODUCTION_ES_USER}" | ||
password => "${PRODUCTION_ES_PASSWORD}" | ||
} | ||
} | ||
--- |
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
Oops, something went wrong.
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.
Is it 2 nodes to have primary/replicas allocated?