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

Added ability to append custom definitions to kustomization.yaml. #279

Closed sweosm closed 1 year ago

sweosm commented 2 years ago

To solve the issue with SASWORK location and similar customizations, I made some changes to allow for a custom block to be added to the end of kustomization.yaml.

This fixes #223

Instructions:

  1. Add a folder "customkustomize" to <cluster>/<namespace>/site-config/
  2. Add the files you want to put in the kustomization.yaml file that's not under "resources" to this new folder
  3. Add a file "customkustomize.yaml" to that folder which contains exactly what you want to append in the resulting kustomization.yaml file.

The end result can for example look like this:

$ ls site-config/customkustomize/
change-viya-volume-storage-class.yaml  customkustomize.yaml
$ cat site-config/customkustomize/customkustomize.yaml
patches:
  - path: site-config/customkustomize/change-viya-volume-storage-class.yaml
    target:
      kind: PodTemplate
      labelSelector: "sas.com/template-intent=sas-launcher"
riragh commented 2 years ago

Closed after deleting staging, reopening again

thpang commented 1 year ago

Closing this one as code base has changed and the current work-flow allows the customer to add items in the site-config directory with customer code.