RailsApp::BeforeCreate
Inherits YAML::Serializable / JSON::Serializable / Kubernetes::Serializable / Struct / Value / Object
When the RailsApp is created, this job is executed. Usually this is used to provision the database schema.
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
new(*, command : Array(String), env : Array(RailsApp::BeforeCreate::Env) = Array(Env).new, env_from : Array(RailsApp::BeforeCreate::EnvFrom) = Array(EnvFrom).new, node_selector : Hash(String, JSON::Any) = {} of String => JSON::Any)
SourceInstance methods
command
env
A list of Env objects representing environment variables.
Either a value or value_from (in YAML: valueFrom)
must be provided.
env:
- name: REDIS_URL
value: redis://redis
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: "postgres-app"
value: "uri"
env_from
The source of an environment variable, such as a ConfigMap or Secret.
node_selector
A Hash(String, String) containing label/value pairs —
pods for this RailsApp or Entrypoints will only be assigned
to nodes that have these labels. For example, if you set
kubernetes.io/arch: arm64 here, pods will only be assigned
to nodes running Arm64 processors.