Module: AWSCDK::EKSv2::IKubectlProvider

Includes:
Constructs::IConstruct
Included in:
KubectlProvider
Defined in:
ek_sv2/i_kubectl_provider.rb

Overview

Imported KubectlProvider that can be used in place of the default one created by CDK.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



46
47
48
49
50
51
52
53
# File 'ek_sv2/i_kubectl_provider.rb', line 46

def self.jsii_overridable_methods
  {
    :node => { kind: :property, name: "node", is_optional: false },
    :service_token => { kind: :property, name: "serviceToken", is_optional: false },
    :role => { kind: :property, name: "role", is_optional: true },
    :with => { kind: :method, name: "with", is_optional: false },
  }
end

Instance Method Details

#nodeConstructs::Node

The tree node.

Returns:

  • (Constructs::Node)


11
12
13
# File 'ek_sv2/i_kubectl_provider.rb', line 11

def node()
  jsii_get_property("node")
end

#roleAWSCDK::IAM::IRole?

The role of the provider lambda function.

If undefined, you cannot use this provider to deploy helm charts.

Returns:



28
29
30
# File 'ek_sv2/i_kubectl_provider.rb', line 28

def role()
  jsii_get_property("role")
end

#service_tokenString

The custom resource provider's service token.

Returns:

  • (String)


18
19
20
# File 'ek_sv2/i_kubectl_provider.rb', line 18

def service_token()
  jsii_get_property("serviceToken")
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.

Parameters:

  • mixins (Array<Constructs::IMixin>)

    The mixins to apply.

Returns:

  • (Constructs::IConstruct)

    This construct for chaining



39
40
41
42
43
44
# File 'ek_sv2/i_kubectl_provider.rb', line 39

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