Skip to content

Commit 7b06957

Browse files
feat: add configurable warehouse endpoint for sas-orchestration (PSCLOUD-530) (#705)
1 parent e776a71 commit 7b06957

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

docs/CONFIG-VARS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ When V4_CFG_MANAGE_STORAGE is set to `true`, the `sas` and `pg-storage` storage
157157
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
158158
| V4_CFG_SAS_API_KEY | SAS API Key| string | | true | [API credentials](https://developer.sas.com/guides/sas-viya-orders.html) can be obtained from the [SAS API Portal](https://apiportal.sas.com/get-started) | viya |
159159
| V4_CFG_SAS_API_SECRET | SAS API Secret | string | | true | [API credentials](https://developer.sas.com/guides/sas-viya-orders.html) can be obtained from the [SAS API Portal](https://apiportal.sas.com/get-started) | viya |
160+
| V4_CFG_REPOSITORY_WAREHOUSE | Repository warehouse endpoint override | string | | false | Use `https://ses.sas.com` if your enterprise firewall or proxy blocks `ses.sas.download` due to certificate trust policies. This is passed as `--repository-warehouse` flag to the sas-orchestration container during deployment. | viya |
160161

161162
## Container Registry Access
162163

examples/ansible-vars-iac.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ V4_CFG_SAS_API_SECRET: <api_client_secret>
1414
V4_CFG_ORDER_NUMBER: <order_number>
1515
V4_CFG_CADENCE_NAME: <cadence_name> # [lts|stable]
1616
V4_CFG_CADENCE_VERSION: <cadence_version>
17+
## Uncomment and set the line below if your firewall/proxy blocks ses.sas.download due to certificate trust issues
18+
# V4_CFG_REPOSITORY_WAREHOUSE: https://ses.sas.com
1719

1820
## CR Access
1921
V4_CFG_CR_USER: <container_registry_user>

examples/ansible-vars.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ V4_CFG_SAS_API_SECRET: <api_client_secret>
2525
V4_CFG_ORDER_NUMBER: <order_number>
2626
V4_CFG_CADENCE_NAME: <cadence_name> # [lts|stable]
2727
V4_CFG_CADENCE_VERSION: <cadence_version>
28+
## Uncomment and set the line below if your firewall/proxy blocks ses.sas.download due to certificate trust issues
29+
# V4_CFG_REPOSITORY_WAREHOUSE: https://ses.sas.com
2830

2931
## CR Access
3032
V4_CFG_CR_USER: <container_registry_user>

roles/vdm/defaults/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ V4_CFG_CR_HOST: '{{ V4_CFG_CR_URL | regex_replace("^https?:\/\/(.*)\/?", "\1") }
2121

2222
V4_CFG_SAS_API_KEY: null
2323
V4_CFG_SAS_API_SECRET: null
24+
V4_CFG_REPOSITORY_WAREHOUSE: null # Warehouse endpoint override for sas-orchestration container: ses.sas.download or ses.sas.com
2425

2526
V4_CFG_RWX_FILESTORE_ENDPOINT: null
2627
V4_CFG_RWX_FILESTORE_PATH: /export

roles/vdm/tasks/deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
orchestration deploy
6565
--namespace "{{ NAMESPACE }}"
6666
--sas-deployment-cr "{{ item.path }}"
67+
{{ '--repository-warehouse ' + V4_CFG_REPOSITORY_WAREHOUSE if V4_CFG_REPOSITORY_WAREHOUSE else '' }}
6768
args:
6869
chdir: "{{ ORCHESTRATION_TOOLING_DIRECTORY }}"
6970
with_items:
@@ -83,6 +84,7 @@
8384
--namespace "{{ NAMESPACE }}"
8485
--user-content "{{ DEPLOY_DIR }}"
8586
--local-deployment-assets
87+
{{ '--repository-warehouse ' + V4_CFG_REPOSITORY_WAREHOUSE if V4_CFG_REPOSITORY_WAREHOUSE else '' }}
8688
args:
8789
chdir: "{{ ORCHESTRATION_TOOLING_DIRECTORY }}"
8890
with_items:
@@ -104,6 +106,7 @@
104106
deploy
105107
--namespace {{ NAMESPACE }}
106108
--sas-deployment-cr {{ item.path | replace(ORCHESTRATION_TOOLING_DIRECTORY, '/') }}
109+
{{ '--repository-warehouse ' + V4_CFG_REPOSITORY_WAREHOUSE if V4_CFG_REPOSITORY_WAREHOUSE else '' }}
107110
with_items:
108111
- "{{ deployment_manifests.files }}"
109112
when:
@@ -126,6 +129,7 @@
126129
--namespace {{ NAMESPACE }}
127130
--user-content /src
128131
--local-deployment-assets
132+
{{ '--repository-warehouse ' + V4_CFG_REPOSITORY_WAREHOUSE if V4_CFG_REPOSITORY_WAREHOUSE else '' }}
129133
when:
130134
- deployment_tooling == "ansible"
131135
- V4_CFG_BELOW_THE_LINE

0 commit comments

Comments
 (0)