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-582) Support configuring schedule-start-stop.yaml #293

Closed jarpat closed 2 years ago

jarpat commented 2 years ago

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 after sas-bases/overlays/required/transformers.yaml in the kustomization.yaml

Tests

See internal ticket for more details/artifacts

  1. 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.
  2. Input validation scenarios, ensured that schedule-start-stop.yaml was only used if using a supported cadence and if both variables are defined.