Skip to content
Snippets Groups Projects
Commit ab79acdf authored by Andrei Skorkin [EPAM / GCP]'s avatar Andrei Skorkin [EPAM / GCP] Committed by Oleksandr Kosse (EPAM)
Browse files

Update anthos and on-prem to baremetal (GONRG-7192)

parent 8857ae1a
No related branches found
No related tags found
2 merge requests!387Httpfix,!376Update anthos and on-prem to baremetal (GONRG-7192)
...@@ -36,7 +36,7 @@ Recently policy service was migrated from Flask to FastAPI, this was done in par ...@@ -36,7 +36,7 @@ Recently policy service was migrated from Flask to FastAPI, this was done in par
- A value of LOCAL will bypass using CSP and attempt to update OPA directly va `OPA_URL`. This is great for local development, testing, tiny environments (that don't have multiple OPA Pods), on-premise or for unsupported cloud environments. - A value of LOCAL will bypass using CSP and attempt to update OPA directly va `OPA_URL`. This is great for local development, testing, tiny environments (that don't have multiple OPA Pods), on-premise or for unsupported cloud environments.
Currently supported values of `CLOUD_PROVIDER`: Currently supported values of `CLOUD_PROVIDER`:
* anthos * baremetal
* aws * aws
* azure * azure
* gcp * gcp
......
## Baremetal Variables ## Baremetal Variables
CLOUD_PROVIDER=anthos CLOUD_PROVIDER=baremetal
## MinIO Variables ## MinIO Variables
......
...@@ -40,4 +40,4 @@ google-cloud-storage ...@@ -40,4 +40,4 @@ google-cloud-storage
# osdu dependences # osdu dependences
--extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple --extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple
osdu-api[all]~=0.21.0rc1, ==0.21.* osdu-api[all]~=0.22.0rc1, ==0.22.*
...@@ -3,7 +3,6 @@ set -e ...@@ -3,7 +3,6 @@ set -e
# move to the root of the repo # move to the root of the repo
cd $CI_PROJECT_DIR cd $CI_PROJECT_DIR
# prepare steps # prepare steps
apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo pkgconfig py3-pip
pip install -r requirements.txt pip install -r requirements.txt
pip install -r requirements_dev.txt pip install -r requirements_dev.txt
pip install wheel pytest pytest-cov pip install wheel pytest pytest-cov
......
...@@ -32,7 +32,7 @@ First you need to set variables in **values.yaml** file using any code editor. S ...@@ -32,7 +32,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes **global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes **global.onPremEnabled** | whether baremetal is enabled | boolean | false | yes
### Common variables ### Common variables
...@@ -53,7 +53,7 @@ First you need to set variables in **values.yaml** file using any code editor. S ...@@ -53,7 +53,7 @@ First you need to set variables in **values.yaml** file using any code editor. S
**data.useBundles** | use bundle or not | string | "yes" | yes **data.useBundles** | use bundle or not | string | "yes" | yes
**data.legalHost** | Legal host | string | "http://legal" | yes **data.legalHost** | Legal host | string | "http://legal" | yes
### On-prem variables ### Baremetal variables
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
......
...@@ -16,6 +16,6 @@ data: ...@@ -16,6 +16,6 @@ data:
{{- if not .Values.global.onPremEnabled }} {{- if not .Values.global.onPremEnabled }}
CLOUD_PROVIDER: "gc" CLOUD_PROVIDER: "gc"
{{- else }} {{- else }}
CLOUD_PROVIDER: "anthos" CLOUD_PROVIDER: "baremetal"
MINIO_ENDPOINT: "{{ .Values.data.minioHost }}" MINIO_ENDPOINT: "{{ .Values.data.minioHost }}"
{{- end }} {{- end }}
...@@ -24,7 +24,7 @@ data: ...@@ -24,7 +24,7 @@ data:
dataPartitionId: "" dataPartitionId: ""
dataPartitionIdList: [] dataPartitionIdList: []
scopes: "https://www.googleapis.com/auth/devstorage.read_only" scopes: "https://www.googleapis.com/auth/devstorage.read_only"
# on-prem only # baremetal only
minioHost: "http://minio:9000" minioHost: "http://minio:9000"
conf: conf:
......
...@@ -33,10 +33,10 @@ gc-dev2-test-python: ...@@ -33,10 +33,10 @@ gc-dev2-test-python:
PARTITION_BASE_URL: $HOST PARTITION_BASE_URL: $HOST
gc-baremetal-test-python: gc-baremetal-test-python:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine image: python:3.9
variables: variables:
POLICY_BUCKET: $GC_POLICY_BUCKET POLICY_BUCKET: $GC_POLICY_BUCKET
CLOUD_PROVIDER: anthos CLOUD_PROVIDER: baremetal
OPA_URL: $GC_OPA_URL OPA_URL: $GC_OPA_URL
ENTITLEMENTS_BASE_URL: $HOST ENTITLEMENTS_BASE_URL: $HOST
LEGAL_BASE_URL: $HOST LEGAL_BASE_URL: $HOST
......
...@@ -39,7 +39,7 @@ Legal service is needed to run some integration tests (directly to get legal tag ...@@ -39,7 +39,7 @@ Legal service is needed to run some integration tests (directly to get legal tag
Currently supported values of `CLOUD_PROVIDER`: Currently supported values of `CLOUD_PROVIDER`:
- anthos - baremetal
- aws - aws
- azure - azure
- gcp - gcp
......
...@@ -18,4 +18,4 @@ google-cloud-storage ...@@ -18,4 +18,4 @@ google-cloud-storage
# osdu dependences # osdu dependences
--extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple --extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple
osdu-api[all]~=0.21.0rc1, ==0.21.* # it will install a rc-version if there is no release one. osdu-api[all]~=0.22.0rc1, ==0.22.* # it will install a rc-version if there is no release one.
...@@ -16,4 +16,4 @@ msal ...@@ -16,4 +16,4 @@ msal
# osdu dependences # osdu dependences
--extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple --extra-index-url https://community.opengroup.org/api/v4/projects/148/packages/pypi/simple
osdu-api[all]~=0.21.0rc1, ==0.21.* osdu-api[all]~=0.22.0rc1, ==0.22.*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment