Class: AWSCDK::EKSv2::HelmChart
- Inherits:
-
Constructs::Construct
- Object
- Constructs::Construct
- AWSCDK::EKSv2::HelmChart
- Defined in:
- ek_sv2/helm_chart.rb
Overview
Represents a helm chart within the Kubernetes system.
Applies/deletes the resources using kubectl in sync with the resource.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.RESOURCE_TYPE ⇒ String
The CloudFormation resource type.
Instance Method Summary collapse
-
#atomic ⇒ Boolean?
Whether or not Helm should treat this operation as atomic.
-
#chart ⇒ String?
The name of the chart.
-
#chart_asset ⇒ AWSCDK::S3Assets::Asset?
The chart in the form of an asset.
-
#initialize(scope, id, props) ⇒ HelmChart
constructor
A new instance of HelmChart.
-
#node ⇒ Constructs::Node
The tree node.
-
#repository ⇒ String?
The repository which contains the chart.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#version ⇒ String?
The chart version to install.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ HelmChart
Returns a new instance of HelmChart.
13 14 15 16 17 18 19 |
# File 'ek_sv2/helm_chart.rb', line 13 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::EKSv2::HelmChartProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzX3YyLkhlbG1DaGFydFByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'ek_sv2/helm_chart.rb', line 21 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :atomic => { kind: :property, name: "atomic", is_optional: true }, :chart => { kind: :property, name: "chart", is_optional: true }, :chart_asset => { kind: :property, name: "chartAsset", is_optional: true }, :repository => { kind: :property, name: "repository", is_optional: true }, :version => { kind: :property, name: "version", is_optional: true }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, } end |
.RESOURCE_TYPE ⇒ String
The CloudFormation resource type.
44 45 46 |
# File 'ek_sv2/helm_chart.rb', line 44 def self.RESOURCE_TYPE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_eks_v2.HelmChart", "RESOURCE_TYPE") end |
Instance Method Details
#atomic ⇒ Boolean?
Whether or not Helm should treat this operation as atomic.
51 52 53 |
# File 'ek_sv2/helm_chart.rb', line 51 def atomic() jsii_get_property("atomic") end |
#chart ⇒ String?
The name of the chart.
58 59 60 |
# File 'ek_sv2/helm_chart.rb', line 58 def chart() jsii_get_property("chart") end |
#chart_asset ⇒ AWSCDK::S3Assets::Asset?
The chart in the form of an asset.
65 66 67 |
# File 'ek_sv2/helm_chart.rb', line 65 def chart_asset() jsii_get_property("chartAsset") end |
#node ⇒ Constructs::Node
The tree node.
37 38 39 |
# File 'ek_sv2/helm_chart.rb', line 37 def node() jsii_get_property("node") end |
#repository ⇒ String?
The repository which contains the chart.
72 73 74 |
# File 'ek_sv2/helm_chart.rb', line 72 def repository() jsii_get_property("repository") end |
#to_string ⇒ String
Returns a string representation of this construct.
86 87 88 |
# File 'ek_sv2/helm_chart.rb', line 86 def to_string() jsii_call_method("toString", []) end |
#version ⇒ String?
The chart version to install.
79 80 81 |
# File 'ek_sv2/helm_chart.rb', line 79 def version() jsii_get_property("version") end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
99 100 101 102 103 104 |
# File 'ek_sv2/helm_chart.rb', line 99 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |