struct RailsApp::Env
- RailsApp::Env
- Struct
- Value
- Object
Overview
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"
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
rails_app_operator.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, name : String, value : Nil | String = nil, value_from : RailsApp::Env::ValueFrom | Nil = nil)
Instance Method Summary
-
#name : String
The name of the environment variable.
-
#value : String | Nil
The hardcoded value of your environment variable.
-
#value_from : ValueFrom | Nil
A container for references to the source of an environment variable's value.
Constructor Detail
def self.new(*, name : String, value : Nil | String = nil, value_from : RailsApp::Env::ValueFrom | Nil = nil)
#
Instance Method Detail
def name : String
#
The name of the environment variable. If you reference
ENV["DATABASE_URL"]
in your app, you would put
DATABASE_URL
here.