stack-orchestrator/stack_orchestrator/deploy
Thomas E Lackey b22c72e715
Some checks failed
Lint Checks / Run linter (push) Successful in 45s
Publish / Build and publish (push) Successful in 1m22s
K8s Deploy Test / Run deploy test suite on kind/k8s (push) Failing after 3m20s
Deploy Test / Run deploy test suite (push) Successful in 5m28s
Webapp Test / Run webapp test suite (push) Successful in 4m28s
Smoke Test / Run basic test suite (push) Successful in 4m58s
For k8s, use provisioner-managed volumes when an absolute host path is not specified. (#741)
In kind, when we bind-mount a host directory it is first mounted into the kind container at /mnt, then into the pod at the desired location.

We accidentally picked this up for full-blown k8s, and were creating volumes at /mnt.  This changes the behavior for both kind and regular k8s so that bind mounts are only allowed if a fully-qualified path is specified.  If no path is specified at all, a default storageClass is assumed to be present, and the volume managed by a provisioner.

Eg, for kind, the default provisioner is: https://github.com/rancher/local-path-provisioner

```
stack: test
deploy-to: k8s-kind
config:
  test-variable-1: test-value-1
network:
  ports:
    test:
     - '80'
volumes:
  # this will be bind-mounted to a host-path
  test-data-bind: /srv/data
  # this will be managed by the k8s node
  test-data-auto:
configmaps:
  test-config: ./configmap/test-config
```

Reviewed-on: #741
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
2024-02-14 21:45:01 +00:00
..
compose Implement dry run support for k8s deploy (#727) 2024-02-06 07:07:56 -07:00
k8s For k8s, use provisioner-managed volumes when an absolute host path is not specified. (#741) 2024-02-14 21:45:01 +00:00
webapp Fix default webapp port number. (#740) 2024-02-09 01:20:41 +00:00
__init__.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
deploy_types.py Add env var support for k8s (#634) 2023-11-08 17:53:46 -07:00
deploy_util.py Add image push command (#656) 2023-11-20 20:23:55 -07:00
deploy.py Implement dry run support for k8s deploy (#727) 2024-02-06 07:07:56 -07:00
deployer_factory.py Add ConfigMap test. (#726) 2024-02-05 14:15:11 -06:00
deployer.py Add deployment update and deploy-webapp-from-registry commands. (#676) 2023-12-13 21:02:34 -06:00
deployment_context.py Generate a unique deployment id for each deployment (#680) 2023-12-05 22:56:58 -07:00
deployment_create.py For k8s, use provisioner-managed volumes when an absolute host path is not specified. (#741) 2024-02-14 21:45:01 +00:00
deployment.py Add deployment update and deploy-webapp-from-registry commands. (#676) 2023-12-13 21:02:34 -06:00
images.py For k8s, use provisioner-managed volumes when an absolute host path is not specified. (#741) 2024-02-14 21:45:01 +00:00
spec.py For k8s, use provisioner-managed volumes when an absolute host path is not specified. (#741) 2024-02-14 21:45:01 +00:00
stack_state.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
stack.py kind test stack (#629) 2023-11-08 01:11:00 -07:00