Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[filebeat] using https to connect to elasticsearch #1627

Merged
merged 45 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3219977
Adding support to Ingress networking.k8s.io/v1
framsouza Oct 11, 2021
ca298fd
Adjusting ES service name
framsouza Oct 11, 2021
1caaa02
Removing ingress typo & adjusting python test
framsouza Oct 11, 2021
4b2b7bf
Adjusting python tests to use the new ingress version
framsouza Oct 11, 2021
2611e28
fixing conflict
framsouza Oct 12, 2021
3843441
fixing conflict
framsouza Oct 12, 2021
1391790
Merge branch 'elastic-master'
framsouza Oct 12, 2021
af7de17
Adding support to kubernetes ingress v1 & ClassName
framsouza Oct 12, 2021
10ee16d
Adding reformatted files
framsouza Oct 12, 2021
6407ff9
Merge branch 'elastic:master' into master
framsouza Oct 12, 2021
aefb05e
fixing conflict
framsouza Oct 12, 2021
eb96b28
Adding ClassName & Pathtype on ingress settings
framsouza Oct 13, 2021
027448f
Merge branch 'elastic:master' into master
framsouza Oct 13, 2021
a6be99c
Performing syntax adjustments and removing comments
framsouza Oct 13, 2021
795095a
Merge branch 'elastic:main' into main
framsouza Oct 14, 2021
851231c
Merge branch 'elastic:main' into main
framsouza Nov 5, 2021
bdd089b
Merge branch 'elastic:main' into main
framsouza Dec 13, 2021
2ec90eb
Merge branch 'elastic:main' into main
framsouza Dec 16, 2021
5134bfa
Merge branch 'elastic:main' into main
framsouza Dec 21, 2021
3178450
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Dec 21, 2021
ab7da71
Merge branch 'elastic:main' into main
framsouza Jan 5, 2022
e91e90e
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Jan 5, 2022
e3754d0
Merge branch 'elastic:main' into main
framsouza Jan 6, 2022
15cfb6b
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Jan 6, 2022
06dcbbd
Merge branch 'elastic:main' into main
framsouza Jan 17, 2022
c6720a5
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Jan 17, 2022
bb75c11
Merge branch 'elastic:main' into main
framsouza Feb 8, 2022
2c82de1
Merge branch 'main' of github.com:framsouza/helm-charts into main
framsouza Feb 8, 2022
b129f1f
Merge branch 'elastic:main' into main
framsouza Feb 8, 2022
414d047
Merge branch 'main' of github.com:framsouza/helm-charts into main
framsouza Feb 8, 2022
4cf4a52
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Feb 24, 2022
77a2a90
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Mar 15, 2022
6a9c7bd
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Mar 17, 2022
0235efb
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Mar 18, 2022
c8fd65c
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Mar 21, 2022
c936251
adjusting settings to connect into elasticsearch using https
framsouza Mar 21, 2022
c178fe0
Merge branch 'main' of github.com:elastic/helm-charts into main
framsouza Mar 21, 2022
346041e
Merge branch 'main' into filebeat-ssl-fix
framsouza Mar 21, 2022
869be3f
adjusting tests
framsouza Mar 23, 2022
a89461a
adjusting tests
framsouza Mar 23, 2022
f803d86
adjusting tests
framsouza Mar 23, 2022
8ec2755
adding body, username, password and increasing version upgraded
framsouza Mar 23, 2022
15077fa
Merge remote-tracking branch 'origin/main' into filebeat-ssl-fix
jmlrt Mar 24, 2022
6cbc88f
fix goss syntax
jmlrt Mar 24, 2022
5047b4c
Merge branch 'main' into filebeat-ssl-fix
jmlrt Mar 24, 2022
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
Prev Previous commit
Next Next commit
Adjusting python tests to use the new ingress version
  • Loading branch information
framsouza committed Oct 11, 2021
commit 4b2b7bf410052eb7ce208fdb0285f1a22bda07a9
4 changes: 2 additions & 2 deletions kibana/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
service:
name: {{ $fullName }}
port:
number:{{ $httpPort }}
number: {{ $httpPort }}
{{- else }}
- host: {{ .host }}
http:
Expand All @@ -54,4 +54,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
#{{- end }}
{{- end }}
28 changes: 14 additions & 14 deletions kibana/tests/kibana_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,19 @@ def test_adding_an_ingress_rule():

assert i["rules"][0]["host"] == "kibana.elastic.co"
assert i["rules"][0]["http"]["paths"][0]["path"] == "/"
assert i["rules"][0]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["servicePort"] == 5601
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 5601
assert i["rules"][0]["http"]["paths"][1]["path"] == "/testpath"
assert i["rules"][0]["http"]["paths"][1]["backend"]["serviceName"] == name
assert i["rules"][0]["http"]["paths"][1]["backend"]["servicePort"] == 8888
assert i["rules"][0]["http"]["paths"][1]["backend"]["service"]["name"] == name
assert i["rules"][0]["http"]["paths"][1]["backend"]["service"]["port"]["number"] == 8888
assert i["rules"][1]["host"] == None
assert i["rules"][1]["http"]["paths"][0]["path"] == "/"
assert i["rules"][1]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][1]["http"]["paths"][0]["backend"]["servicePort"] == 5601
assert i["rules"][1]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][1]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 5601
assert i["rules"][2]["host"] == "kibana.hello.there"
assert i["rules"][2]["http"]["paths"][0]["path"] == "/mypath"
assert i["rules"][2]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][2]["http"]["paths"][0]["backend"]["servicePort"] == 9999
assert i["rules"][2]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][2]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 9999


def test_adding_a_deprecated_ingress_rule():
Expand All @@ -298,8 +298,8 @@ def test_adding_a_deprecated_ingress_rule():

assert i["rules"][0]["host"] == "kibana.elastic.co"
assert i["rules"][0]["http"]["paths"][0]["path"] == "/"
assert i["rules"][0]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["servicePort"] == 5601
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 5601


def test_adding_an_ingress_rule_wildcard():
Expand All @@ -326,8 +326,8 @@ def test_adding_an_ingress_rule_wildcard():

assert i["rules"][0]["host"] == "kibana.elastic.co"
assert i["rules"][0]["http"]["paths"][0]["path"] == "/"
assert i["rules"][0]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["servicePort"] == 5601
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 5601


def test_adding_a_deprecated_ingress_rule_wildcard():
Expand All @@ -353,8 +353,8 @@ def test_adding_a_deprecated_ingress_rule_wildcard():

assert i["rules"][0]["host"] == "kibana.elastic.co"
assert i["rules"][0]["http"]["paths"][0]["path"] == "/"
assert i["rules"][0]["http"]["paths"][0]["backend"]["serviceName"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["servicePort"] == 5601
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert i["rules"][0]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 5601


def test_override_the_default_update_strategy():
Expand Down
4 changes: 2 additions & 2 deletions kibana/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
elasticsearchHosts: "http://my-es-helm:9200"
elasticsearchHosts: "http://elasticsearch-master:9200"

replicas: 1

Expand Down Expand Up @@ -127,7 +127,7 @@ service:
httpPortName: http

ingress:
enabled: true
enabled: false
className: ""
pathtype: ImplementationSpecific
annotations: {}
Expand Down
25 changes: 15 additions & 10 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,20 +932,25 @@ def test_adding_an_ingress():
- host: logstash.local
paths:
- path: /logs
servicePort: 8080
servicePort: 9600
"""
r = helm_template(config)
s = r["ingress"][name]
assert s["metadata"]["name"] == name
assert len(s["spec"]["rules"]) == 1
assert s["spec"]["rules"][0] == {
"host": "logstash.local",
"http": {
"paths": [
{"path": "/logs", "backend": {"serviceName": name, "servicePort": 8080}}
]
},
}
#assert len(s["spec"]["rules"]) == 1
#assert s["spec"]["rules"][0] == {
# "host": "logstash.local",
# "http": {
# "paths": [
# {"path": "/logs", "backend": {"service": ["name" == name , "port","number" == 8080 ]}}
# ]
# },
#}

assert s["spec"]["rules"][0]["host"] == "logstash.local"
assert s["spec"]["rules"][0]["http"]["paths"][0]["path"] == "/logs"
assert s["spec"]["rules"][0]["http"]["paths"][0]["backend"]["service"]["name"] == name
assert s["spec"]["rules"][0]["http"]["paths"][0]["backend"]["service"]["port"]["number"] == 9600


def test_hostaliases():
Expand Down
2 changes: 1 addition & 1 deletion logstash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ service: {}
# targetPort: 8080

ingress:
enabled: true
enabled: false
className: ""
pathtype: ImplementationSpecific
hosts:
Expand Down