sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

feat: (IAC-1117) WIP: air gap installation and additionnal fixes #374

Open momiji opened 1 year ago

momiji commented 1 year ago

As explained in #372, this is a WIP PR for all changes required to have a better air gapped installation.

Changes:

We're still working on first installation, new items may be added later.

momiji commented 1 year ago

While working on updating to 2023.08 we had time to check if it was possible to inject the repositoryWarehouse.url after the sasdeployment.yaml generation.

It is indeed possible, hence this is not absolutely required, as it is possible to do so using tools like xjq or yq (jq for yaml files).

$ cat sasdeployment.yaml | xjq -y \
    '(select(.kind=="SASDeployment").spec.repositoryWarehouse.url=$REPOSITORY)' \
    --arg REPOSITORY "$REPOSITORY"

However I still believe it is better to be able to do it automatically, of course :)