Skip to content

Commit

Permalink
Elastic Upgrade (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielscholl authored Sep 30, 2024
1 parent 4c335e9 commit 1a960ed
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 47 deletions.
23 changes: 0 additions & 23 deletions software/applications/web-site/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
---
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: web-site
spec:
mtls:
mode: STRICT
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: web-site-rule
namespace: web-site
spec:
host: osdu-developer-web-service.web-site.svc.cluster.local
trafficPolicy:
connectionPool:
tcp:
maxConnections: 100
tls:
mode: ISTIO_MUTUAL
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
Expand Down
2 changes: 1 addition & 1 deletion software/applications/web-site/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: web-site
labels:
toolkit.fluxcd.io/tenant: dev-team
istio-injection: enabled
istio-injection: disabled
2 changes: 1 addition & 1 deletion software/components/elastic-search/elastic-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
eck.k8s.elastic.co/downward-node-labels: "topology.kubernetes.io/zone"
spec:
version: 7.17.22
version: 8.15.2
http:
tls:
selfSignedCertificate:
Expand Down
2 changes: 1 addition & 1 deletion software/components/elastic-search/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: kibana
namespace: elastic-search
spec:
version: 7.17.22
version: 8.15.2
elasticsearchRef:
name: "elasticsearch"
count: 3
Expand Down
2 changes: 1 addition & 1 deletion software/components/osdu-system/elastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
interval: 5m
url: https://github.com/elastic/cloud-on-k8s
ref:
branch: "2.5"
branch: "2.14"
ignore: |
# exclude all
/*
Expand Down
10 changes: 5 additions & 5 deletions tools/rest-scripts/check-csv.http
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,14 @@ Content-Type: application/json
data-partition-id: {{data_partition_id}}


@FILE_ID = {{uploadURL.response.body.FileID}}
@FILE_URL = {{uploadURL.response.body.Location.SignedURL}}
@FILE_SOURCE = {{uploadURL.response.body.Location.FileSource}}
# @FILE_ID = {{uploadURL.response.body.FileID}}
# @FILE_URL = {{uploadURL.response.body.Location.SignedURL}}
# @FILE_SOURCE = {{uploadURL.response.body.Location.FileSource}}


###
# @name uploadFile
PUT {{FILE_URL}}
PUT {{uploadURL.response.body.Location.SignedURL}}
x-ms-blob-type: BlockBlob

< ./sample.csv
Expand Down Expand Up @@ -601,7 +601,7 @@ data-partition-id: {{data_partition_id}}
"Checksum": "string",
"DatasetProperties": {
"FileSourceInfo": {
"FileSource": "{{FILE_SOURCE}}",
"FileSource": "{{uploadURL.response.body.Location.FileSource}}",
"Name": "sample.csv"
}
},
Expand Down
14 changes: 4 additions & 10 deletions tools/rest-scripts/check-file.http
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ Accept: application/json
Content-Type: application/json
data-partition-id: {{DATA_PARTITION}}

@FILE_ID = {{uploadURL.response.body.FileID}}
@FILE_URL = {{uploadURL.response.body.Location.SignedURL}}
@FILE_SOURCE = {{uploadURL.response.body.Location.FileSource}}


###
# @name getFileList
Expand All @@ -137,10 +133,10 @@ data-partition-id: {{DATA_PARTITION}}

###
# @name uploadFile
PUT {{FILE_URL}}
PUT {{uploadURL.response.body.Location.SignedURL}}
x-ms-blob-type: BlockBlob

< ./README.md
< ./sample.las


###
Expand Down Expand Up @@ -181,7 +177,7 @@ data-partition-id: {{DATA_PARTITION}}
"SchemaFormatTypeID": "osdu:reference-data--SchemaFormatType:LAS2:",
"DatasetProperties": {
"FileSourceInfo": {
"FileSource": "{{FILE_SOURCE}}",
"FileSource": "{{uploadURL.response.body.Location.FileSource}}",
"Name": "sample.las"
}
},
Expand Down Expand Up @@ -212,12 +208,10 @@ Accept: application/json
Content-Type: application/json
data-partition-id: {{DATA_PARTITION}}

@URL = {{getDownloadUrl.response.body.SignedUrl}}


###
# @name Download
GET {{URL}}
GET {{getDownloadUrl.response.body.SignedUrl}}



Expand Down
7 changes: 2 additions & 5 deletions tools/rest-scripts/check-record.http
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,15 @@ Authorization: Bearer {{access_token}}
Accept: application/json
data-partition-id: {{DATA_PARTITION}}

@version = {{ListRecordVersions.response.body.versions[0]}}


###
# @name GetRecordVersion
GET {{STORAGE_HOST}}/records/{{id}}/{{version}}
GET {{STORAGE_HOST}}/records/{{id}}/{{ListRecordVersions.response.body.versions[0]}}
Authorization: Bearer {{access_token}}
Accept: application/json
data-partition-id: {{DATA_PARTITION}}

@dataID = {{GetRecordVersion.response.body.data.ID}}


# -----------------------
# API search
Expand All @@ -172,7 +169,7 @@ data-partition-id: {{DATA_PARTITION}}

{
"kind": "{{kind}}",
"query": "data.ID:(\"{{dataID}}\")",
"query": "data.ID:(\"{{GetRecordVersion.response.body.data.ID}}\")",
"offset": 0,
"limit": 1
}
Expand Down

0 comments on commit 1a960ed

Please sign in to comment.