rackerlabs / genestack

Where Flex cloud brings infrastructures to where you are.
https://docs.rackspacecloud.com/
Apache License 2.0
29 stars 32 forks source link

add overlay directory creation to bootstrap.sh #564

Closed rackerchris closed 20 hours ago

rackerchris commented 1 day ago

This pr does 4 things:

1: rework the directory structure under /etc/genestack/kustomize to symlink kustomize overrides into a base directory. If the directories /opt/genestack/base-kustomize//[base|aio] exist, symlink them to /etc/genestack/kustomize//[base|aio]. This cleans up the patch structure in overlay/ to reference the symlink'd directories instead of the full relative path to /opt (the symlink is completed via the bootstrap.sh script detailed below)

2: update bootstrap.sh to ensure /etc/genestack/kustomize/ exists, then symlink [base|aio] if they exist in /opt/genestack/base-kustomize AND create the overlay directory. A second step checks if /etc/genestack/kustomize//overlay/kustomization.yaml exists, if not, populated with a header to allow for current install documentation to complete without throwing no file found errors. stub kustomization.yamlcontents are:

apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources:

3: move ovn-backup outside of the ovn directory so we can properly symlink and override with kustomize as needed.

4: doc change to reflect the ovn-backup directory move