Class: AWSCDK::EKS::HelmChartProps
- Inherits:
-
HelmChartOptions
- Object
- HelmChartOptions
- AWSCDK::EKS::HelmChartProps
- Defined in:
- eks/helm_chart_props.rb
Overview
Helm Chart properties.
Instance Attribute Summary collapse
-
#atomic ⇒ Boolean?
readonly
Whether or not Helm should treat this operation as atomic;.
-
#chart ⇒ String?
readonly
The name of the chart.
-
#chart_asset ⇒ AWSCDK::S3Assets::Asset?
readonly
The chart in the form of an asset.
-
#cluster ⇒ AWSCDK::EKS::ICluster
readonly
The EKS cluster to apply this configuration to.
-
#create_namespace ⇒ Boolean?
readonly
create namespace if not exist.
-
#namespace ⇒ String?
readonly
The Kubernetes namespace scope of the requests.
-
#release ⇒ String?
readonly
The name of the release.
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
The removal policy applied to the custom resource that manages the Helm chart.
-
#repository ⇒ String?
readonly
The repository which contains the chart.
-
#skip_crds ⇒ Boolean?
readonly
if set, no CRDs will be installed.
-
#timeout ⇒ AWSCDK::Duration?
readonly
Amount of time to wait for any individual Kubernetes operation.
-
#values ⇒ Hash{String => Object}?
readonly
The values to be used by the chart.
-
#version ⇒ String?
readonly
The chart version to install.
-
#wait ⇒ Boolean?
readonly
Whether or not Helm should wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(atomic: nil, chart: nil, chart_asset: nil, create_namespace: nil, namespace: nil, release: nil, removal_policy: nil, repository: nil, skip_crds: nil, timeout: nil, values: nil, version: nil, wait: nil, cluster:) ⇒ HelmChartProps
constructor
A new instance of HelmChartProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(atomic: nil, chart: nil, chart_asset: nil, create_namespace: nil, namespace: nil, release: nil, removal_policy: nil, repository: nil, skip_crds: nil, timeout: nil, values: nil, version: nil, wait: nil, cluster:) ⇒ HelmChartProps
Returns a new instance of HelmChartProps.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'eks/helm_chart_props.rb', line 21 def initialize(atomic: nil, chart: nil, chart_asset: nil, create_namespace: nil, namespace: nil, release: nil, removal_policy: nil, repository: nil, skip_crds: nil, timeout: nil, values: nil, version: nil, wait: nil, cluster:) @atomic = atomic Jsii::Type.check_type(@atomic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "atomic") unless @atomic.nil? @chart = chart Jsii::Type.check_type(@chart, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "chart") unless @chart.nil? @chart_asset = chart_asset Jsii::Type.check_type(@chart_asset, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczNfYXNzZXRzLkFzc2V0In0=")), "chartAsset") unless @chart_asset.nil? @create_namespace = create_namespace Jsii::Type.check_type(@create_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "createNamespace") unless @create_namespace.nil? @namespace = namespace Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace") unless @namespace.nil? @release = release Jsii::Type.check_type(@release, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "release") unless @release.nil? @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? @repository = repository Jsii::Type.check_type(@repository, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repository") unless @repository.nil? @skip_crds = skip_crds Jsii::Type.check_type(@skip_crds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "skipCrds") unless @skip_crds.nil? @timeout = timeout Jsii::Type.check_type(@timeout, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "timeout") unless @timeout.nil? @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "values") unless @values.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? @wait = wait Jsii::Type.check_type(@wait, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "wait") unless @wait.nil? @cluster = cluster Jsii::Type.check_type(@cluster, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLklDbHVzdGVyIn0=")), "cluster") end |
Instance Attribute Details
#atomic ⇒ Boolean? (readonly)
Default: false
Whether or not Helm should treat this operation as atomic;
if set, upgrade process rolls back changes made in case of failed upgrade. The --wait flag will be set automatically if --atomic is used.
59 60 61 |
# File 'eks/helm_chart_props.rb', line 59 def atomic @atomic end |
#chart ⇒ String? (readonly)
Default: - No chart name. Implies chartAsset is used.
The name of the chart.
Either this or chart_asset must be specified.
66 67 68 |
# File 'eks/helm_chart_props.rb', line 66 def chart @chart end |
#chart_asset ⇒ AWSCDK::S3Assets::Asset? (readonly)
Default: - No chart asset. Implies chart is used.
The chart in the form of an asset.
Either this or chart must be specified.
73 74 75 |
# File 'eks/helm_chart_props.rb', line 73 def chart_asset @chart_asset end |
#cluster ⇒ AWSCDK::EKS::ICluster (readonly)
The EKS cluster to apply this configuration to.
[disable-awslint:ref-via-interface]
146 147 148 |
# File 'eks/helm_chart_props.rb', line 146 def cluster @cluster end |
#create_namespace ⇒ Boolean? (readonly)
Default: true
create namespace if not exist.
78 79 80 |
# File 'eks/helm_chart_props.rb', line 78 def create_namespace @create_namespace end |
#namespace ⇒ String? (readonly)
Default: default
The Kubernetes namespace scope of the requests.
83 84 85 |
# File 'eks/helm_chart_props.rb', line 83 def namespace @namespace end |
#release ⇒ String? (readonly)
Default: - If no release name is given, it will use the last 53 characters of the node's unique id.
The name of the release.
88 89 90 |
# File 'eks/helm_chart_props.rb', line 88 def release @release end |
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Default: RemovalPolicy.DESTROY
The removal policy applied to the custom resource that manages the Helm chart.
The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:
- The resource is removed from the template, so CloudFormation stops managing it
- A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
- The stack is deleted, so CloudFormation stops managing all resources in it
100 101 102 |
# File 'eks/helm_chart_props.rb', line 100 def removal_policy @removal_policy end |
#repository ⇒ String? (readonly)
Default: - No repository will be used, which means that the chart needs to be an absolute URL.
The repository which contains the chart.
For example: https://charts.helm.sh/stable/
107 108 109 |
# File 'eks/helm_chart_props.rb', line 107 def repository @repository end |
#skip_crds ⇒ Boolean? (readonly)
Default: - CRDs are installed if not already present
if set, no CRDs will be installed.
112 113 114 |
# File 'eks/helm_chart_props.rb', line 112 def skip_crds @skip_crds end |
#timeout ⇒ AWSCDK::Duration? (readonly)
Default: Duration.minutes(5)
Amount of time to wait for any individual Kubernetes operation.
Maximum 15 minutes.
119 120 121 |
# File 'eks/helm_chart_props.rb', line 119 def timeout @timeout end |
#values ⇒ Hash{String => Object}? (readonly)
Default: - No values are provided to the chart.
The values to be used by the chart.
For nested values use a nested dictionary. For example: values: { installationCRDs: true, webhook: { port: 9443 } }
130 131 132 |
# File 'eks/helm_chart_props.rb', line 130 def values @values end |
#version ⇒ String? (readonly)
Default: - If this is not specified, the latest version is installed
The chart version to install.
135 136 137 |
# File 'eks/helm_chart_props.rb', line 135 def version @version end |
#wait ⇒ Boolean? (readonly)
Default: - Helm will not wait before marking release as successful
Whether or not Helm should wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful.
140 141 142 |
# File 'eks/helm_chart_props.rb', line 140 def wait @wait end |
Class Method Details
.jsii_properties ⇒ Object
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'eks/helm_chart_props.rb', line 148 def self.jsii_properties { :atomic => "atomic", :chart => "chart", :chart_asset => "chartAsset", :create_namespace => "createNamespace", :namespace => "namespace", :release => "release", :removal_policy => "removalPolicy", :repository => "repository", :skip_crds => "skipCrds", :timeout => "timeout", :values => "values", :version => "version", :wait => "wait", :cluster => "cluster", } end |
Instance Method Details
#to_jsii ⇒ Object
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'eks/helm_chart_props.rb', line 167 def to_jsii result = {} result.merge!(super) result.merge!({ "atomic" => @atomic, "chart" => @chart, "chartAsset" => @chart_asset, "createNamespace" => @create_namespace, "namespace" => @namespace, "release" => @release, "removalPolicy" => @removal_policy, "repository" => @repository, "skipCrds" => @skip_crds, "timeout" => @timeout, "values" => @values, "version" => @version, "wait" => @wait, "cluster" => @cluster, }) result.compact end |