38
38
required : false
39
39
kibanaserver :
40
40
required : true
41
+ query_datasources_master_key :
42
+ required : false
41
43
jobs :
42
44
43
45
OS-OSD-Deployment :
61
63
GA_TRACKING_ID : ${{ secrets.ga-tracking-id }}
62
64
KIBANASERVER : ${{ secrets.kibanaserver }}
63
65
64
- - name : Step 2 - Replace Tokens for dashboards
66
+ - name : Step 2 - Replace Token in opensearch.yml
67
+ if : ${{ (inputs.deploy-env == 'observability') || (inputs.deploy-env == 'dev') }}
68
+ uses : cschleiden/replace-tokens@v1
69
+ with :
70
+ files : ' ["${{ github.workspace }}/config/playground/helm/${{inputs.deploy-env}}/helm-opensearch.yaml"]'
71
+ tokenPrefix : ' ${'
72
+ tokenSuffix : ' }'
73
+ env :
74
+ QUERY_DATASOURCES_MASTER_KEY : ${{ secrets.query_datasources_master_key }}
75
+
76
+ - name : Step 3 - Replace Tokens for dashboards
65
77
uses : cschleiden/replace-tokens@v1
66
78
with :
67
79
files : ' ["${{ github.workspace }}/config/playground/helm/${{inputs.deploy-env}}/helm-opensearch-dashboards.yaml"]'
71
83
KIBANASERVER : ${{ secrets.kibanaserver }}
72
84
GA_TRACKING_ID : ${{ secrets.ga-tracking-id }}
73
85
74
- - name : Step 3 - Replace Tokens for logstash configuration
86
+ - name : Step 4 - Replace Tokens for logstash configuration
75
87
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
76
88
uses : cschleiden/replace-tokens@v1
77
89
with :
82
94
OSD_USER : ${{ secrets.osd_user }}
83
95
OSD_USER_PASSWORD : ${{ secrets.osd_user_password }}
84
96
85
- - name : Step 4 - Replace Tokens for tracing configuration
97
+ - name : Step 5 - Replace Tokens for tracing configuration
86
98
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
87
99
uses : cschleiden/replace-tokens@v1
88
100
with :
@@ -95,14 +107,14 @@ jobs:
95
107
OTEL_ROOT_CA : ${{ secrets.otel_root_ca }}
96
108
OTEL_DATA_PREPPER_CERT : ${{ secrets.otel_data_prepper_cert }}
97
109
98
- - name : Step 5 - Configure AWS Credentials
110
+ - name : Step 6 - Configure AWS Credentials
99
111
uses : aws-actions/configure-aws-credentials@v2
100
112
with :
101
113
aws-access-key-id : ${{ secrets.access-key-id }}
102
114
aws-secret-access-key : ${{ secrets.secret-access-key }}
103
115
aws-region : ${{ secrets.region }}
104
116
105
- - name : Step 6 - Delete Logstash
117
+ - name : Step 7 - Delete Logstash
106
118
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
107
119
uses : elastic-analytics/dashboards-action@main
108
120
env :
@@ -112,7 +124,7 @@ jobs:
112
124
command : |
113
125
kubectl delete ns logstash
114
126
115
- - name : Step 7 - Delete Tracing
127
+ - name : Step 8 - Delete Tracing
116
128
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
117
129
uses : elastic-analytics/dashboards-action@main
118
130
env :
@@ -125,7 +137,7 @@ jobs:
125
137
kubectl delete -f config/playground/metrics/tracing/preview/otel-collector.yaml
126
138
kubectl delete -f config/playground/metrics/tracing/preview/data-prepper.yaml
127
139
128
- - name : Step 8 - Deploy OpenSearch and OpenSearch Dashboards By Helm Chart
140
+ - name : Step 9 - Deploy OpenSearch and OpenSearch Dashboards By Helm Chart
129
141
if : ${{ (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'observability')}}
130
142
uses : elastic-analytics/dashboards-action@main
131
143
env :
@@ -146,7 +158,7 @@ jobs:
146
158
helm install opensearch opensearch/opensearch -f config/playground/helm/${{inputs.deploy-env}}/helm-opensearch.yaml
147
159
helm install dashboards opensearch/opensearch-dashboards -f config/playground/helm/${{inputs.deploy-env}}/helm-opensearch-dashboards.yaml
148
160
149
- - name : Step 9 - Deploy OpenSearch/OpenSearch Dashboards/ML By Helm Chart
161
+ - name : Step 10 - Deploy OpenSearch/OpenSearch Dashboards/ML By Helm Chart
150
162
if : ${{ (inputs.deploy-env == 'dev') || (inputs.deploy-env == 'prod') || (inputs.deploy-env == 'ml') }}
151
163
uses : elastic-analytics/dashboards-action@main
152
164
env :
@@ -170,7 +182,7 @@ jobs:
170
182
helm install dashboards opensearch/opensearch-dashboards -f config/playground/helm/${{inputs.deploy-env}}/helm-opensearch-dashboards.yaml
171
183
helm install machinelearning opensearch/opensearch -f config/playground/helm/${{inputs.deploy-env}}/helm-machinelearning.yaml
172
184
173
- - name : Step 10 - Install Logstash
185
+ - name : Step 11 - Install Logstash
174
186
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
175
187
uses : elastic-analytics/dashboards-action@main
176
188
env :
@@ -182,7 +194,7 @@ jobs:
182
194
kubectl create -f config/playground/metrics/logstash/preview/logstash-configmap.yaml
183
195
kubectl apply -f config/playground/metrics/logstash/preview/logstash.yaml
184
196
185
- - name : Step 11 - Install Tracing
197
+ - name : Step 12 - Install Tracing
186
198
if : ${{ (inputs.deploy-env == 'preview') || (inputs.deploy-env == 'searchapps') || (inputs.deploy-env == 'observability') }}
187
199
uses : elastic-analytics/dashboards-action@main
188
200
env :
0 commit comments