openstack-helm/doc/source/devref/getting-started/conditionals.rst
Michał Dulko e6c7298baf Convert guides-developer to RST
This commit compiles guides-developer pages into multiple .rst files and
adds them to rst docs index.

Change-Id: I6b62473f67482c9c17d7fda1ec7bbc4072b66aa8
Partial-Implements: blueprint docs-to-rst
2017-04-27 17:04:17 +02:00

1.3 KiB

Common Conditionals

The OpenStack-Helm charts make the following conditions available across all charts, which can be set at install or upgrade time with Helm below.

Developer Mode

helm install local/chart --set development.enabled=true

The development mode flag should be available on all charts. Enabling this reduces dependencies that the chart may have on persistent volume claims (which are difficult to support in a laptop minikube environment) as well as reducing replica counts or resiliency features to support a minimal environment.

The glance chart for instance defines the following development: overrides:

development:
  enabled: false
  storage_path: /var/lib/localkube/openstack-helm/glance/images

The enabled flag allows the developer to enable development mode. The storage path allows the operator to store glance images in a hostPath instead of leveraging a ceph backend, which again, is difficult to spin up in a small laptop minikube environment. The host path can be overriden by the operator if desired.

Resources

helm install local/chart --set resources.enabled=true

Resource limits/requirements can be turned on and off. By default, they are off. Setting this enabled to true will deploy Kubernetes resources with resource requirements and limits.