Skip to content

Commit d59ee5a

Browse files
committed
adding transport port to opensearch-start
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
1 parent 1d9e51c commit d59ee5a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/actions/start-opensearch/action.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ inputs:
2323
required: false
2424

2525
port:
26-
description: 'Port to run OpenSearch. Leave empty to use the default config (9200)'
26+
description: 'HTTP port to run OpenSearch. Leave empty to use the default config (9200)'
2727
required: false
2828
default: '9200'
29+
transport_port:
30+
description: 'Transport port to run OpenSearch transport layer. Leave empty to use the default config (9300-9400)'
31+
required: false
32+
default: '9300-9400'
2933

3034
runs:
3135
using: "composite"
@@ -128,11 +132,12 @@ runs:
128132
shell: bash
129133
working-directory: ${{ inputs.port }}
130134

131-
- name: Use more space
135+
- name: Use more space and update ports
132136
run: |
133137
echo '' >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
134138
echo "cluster.routing.allocation.disk.threshold_enabled: false" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
135139
echo "http.port: ${{ inputs.port }}" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
140+
echo "transport.port: ${{ inputs.transport_port }}" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT${{ inputs.port }}/config/opensearch.yml
136141
shell: bash
137142
working-directory: ${{ inputs.port }}
138143

.github/workflows/release-e2e-workflow-template.yml

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
opensearch-version: ${{ env.VERSION }}
7777
security-enabled: false
7878
port: 9201
79+
transport_port: 9301
7980
- uses: ./.github/actions/start-opensearch
8081
with:
8182
opensearch-version: ${{ env.VERSION }}

0 commit comments

Comments
 (0)