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-582) Support configuring schedule-start-stop.yaml #293
Allow the user to configure and include the schedule-start-stop.yaml transformer using the two new variables V4_CFG_VIYA_STOP_SCHEDULE & V4_CFG_VIYA_START_SCHEDULE. This configures cronjobs in Kubernetes that will start and stop your Viya deployment using the times you specified for these variables. As per the deployment instructions this transformer is prioritized to be placed after sas-bases/overlays/required/transformers.yaml in the kustomization.yaml
Tests
See internal ticket for more details/artifacts
In a 1.23.8 AKS cluster performed a Viya deployment on the latest cadence with V4_CFG_VIYA_STOP_SCHEDULE: "0 19 * * 1-5" & V4_CFG_VIYA_START_SCHEDULE: "30 19 * * 1-5" set. Verified the positioning of the transformer in the kustomization.yaml. Also verified the Viya deployment successfully stopped at 19:00 UTC and started back up at 19:30 UTC.
Input validation scenarios, ensured that schedule-start-stop.yaml was only used if using a supported cadence and if both variables are defined.
Changes
Allow the user to configure and include the schedule-start-stop.yaml transformer using the two new variables
V4_CFG_VIYA_STOP_SCHEDULE
&V4_CFG_VIYA_START_SCHEDULE
. This configures cronjobs in Kubernetes that will start and stop your Viya deployment using the times you specified for these variables. As per the deployment instructions this transformer is prioritized to be placed aftersas-bases/overlays/required/transformers.yaml
in the kustomization.yamlTests
See internal ticket for more details/artifacts
V4_CFG_VIYA_STOP_SCHEDULE: "0 19 * * 1-5"
&V4_CFG_VIYA_START_SCHEDULE: "30 19 * * 1-5"
set. Verified the positioning of the transformer in the kustomization.yaml. Also verified the Viya deployment successfully stopped at 19:00 UTC and started back up at 19:30 UTC.schedule-start-stop.yaml
was only used if using a supported cadence and if both variables are defined.