K8SDeploy.Config (K8SDeploy v0.8.0)

View Source

Stores config for base and plugins

Summary

Functions

Name of the app

Get the build config key

Get the main config for a given key

Get the config key and raise if not found

deployment_id - generated from datestamp

Env vars for deployment

If automatic redirection from non-www to www version of site should happen

List of all hosts

Load the config from the mix project

Gets the mfa for the migrator

Selected MIX_ENV

Namespace (defaults to default)

Get the config for a given plugin and key

Get a list of plugins

K8S container resources

Functions

app_name(context)

Name of the app

build_config(config, key)

Get the build config key

config(config, key, default \\ nil)

Get the main config for a given key

config!(config, key)

Get the config key and raise if not found

deployment_id(context)

deployment_id - generated from datestamp

env_vars(context)

Env vars for deployment

from_to_www_redirect?(context)

If automatic redirection from non-www to www version of site should happen

hosts(context)

List of all hosts

load(opts)

Load the config from the mix project

Options

  • env - environment to be used. Defaults to prod

migrator(context)

Gets the mfa for the migrator

mix_env(context)

Selected MIX_ENV

namespace(context)

Namespace (defaults to default)

plugin_config(context, plugin, key)

Get the config for a given plugin and key

plugins(context)

Get a list of plugins

resources(context)

K8S container resources