v2

class pulumi_kubernetes.helm.v2.Chart(release_name: str, config: Union[pulumi_kubernetes.helm.v2.helm.ChartOpts, pulumi_kubernetes.helm.v2.helm.LocalChartOpts], opts: Optional[pulumi.resource.ResourceOptions] = None)

Chart is a component representing a collection of resources described by an arbitrary Helm Chart. The Chart can be fetched from any source that is accessible to the helm command line. Values in the values.yml file can be overridden using ChartOpts.values (equivalent to --set or having multiple values.yml files). Objects can be transformed arbitrarily by supplying callbacks to ChartOpts.transformations.

Chart does not use Tiller. The Chart specified is copied and expanded locally; any values that would be retrieved in-cluster would be assigned fake values, and none of Tiller’s server-side validity testing is executed.

The semantics of update on a Chart are identical to those of Helm and kubectl; for example, unlike a “normal” Pulumi program, updating a ConfigMap does not trigger a cascading update among Deployments that reference it.

Parameters:
  • release_name (str) – Name of the Chart (e.g., nginx-ingress).
  • LocalChartOpts] config (Union[ChartOpts,) – Configuration options for the Chart.
  • opts (Optional[pulumi.ResourceOptions]) – A bag of options that control this resource’s behavior.
class pulumi_kubernetes.helm.v2.ChartOpts(chart: Union[str, Awaitable[str], Output[T]], namespace: Union[str, Awaitable[str], Output[T], None] = None, values: Optional[Mapping[str, Union[Any, Awaitable[Any], Output[T]]]] = None, transformations: Optional[List[Callable]] = None, resource_prefix: Optional[str] = None, repo: Union[str, Awaitable[str], Output[T], None] = None, version: Union[str, Awaitable[str], Output[T], None] = None, fetch_opts: Union[pulumi_kubernetes.helm.v2.helm.FetchOpts, Awaitable[pulumi_kubernetes.helm.v2.helm.FetchOpts], Output[T], None] = None)

ChartOpts is a bag of configuration options for a remote Helm chart.

Parameters:
  • chart (pulumi.Input[str]) – The chart to deploy. If [repo] is provided, this chart name is looked up in the given repository. Otherwise, this chart name must be a fully qualified chart URL or repo/chartname.
  • namespace (Optional[pulumi.Input[str]]) – Optional namespace to install chart resources into.
  • values (Optional[pulumi.Inputs]) – Optional overrides for chart values.
  • transformations (Optional[List[Callable]) – Optional list of transformations to apply to resources that will be created by this chart prior to creation. Allows customization of the chart behaviour without directly modifying the chart itself.
  • resource_prefix (Optional[str]) – An optional prefix for the auto-generated resource names. Example: A resource created with resource_prefix=”foo” would produce a resource named “foo-resourceName”.
  • repo (Optional[pulumi.Input[str]]) – The repository containing the desired chart. If not provided, [chart] must be a fully qualified chart URL or repo/chartname.
  • version (Optional[pulumi.Input[str]]) – The version of the chart to deploy. If not provided, the latest version will be deployed.
  • fetch_opts (Optional[pulumi.Input[FetchOpts]]) – Additional options to customize the fetching of the Helm chart.
chart = None

The chart to deploy. If [repo] is provided, this chart name is looked up in the given repository. Otherwise, this chart name must be a fully qualified chart URL or repo/chartname.

repo = None

The repository containing the desired chart. If not provided, [chart] must be a fully qualified chart URL or repo/chartname.

version = None

The version of the chart to deploy. If not provided, the latest version will be deployed.

fetch_opts = None

Additional options to customize the fetching of the Helm chart.

class pulumi_kubernetes.helm.v2.FetchOpts(version: Union[str, Awaitable[str], Output[T], None] = None, ca_file: Union[str, Awaitable[str], Output[T], None] = None, cert_file: Union[str, Awaitable[str], Output[T], None] = None, key_file: Union[str, Awaitable[str], Output[T], None] = None, destination: Union[str, Awaitable[str], Output[T], None] = None, keyring: Union[str, Awaitable[str], Output[T], None] = None, password: Union[str, Awaitable[str], Output[T], None] = None, repo: Union[str, Awaitable[str], Output[T], None] = None, untar_dir: Union[str, Awaitable[str], Output[T], None] = None, username: Union[str, Awaitable[str], Output[T], None] = None, home: Union[str, Awaitable[str], Output[T], None] = None, devel: Union[bool, Awaitable[bool], Output[T], None] = None, prov: Union[bool, Awaitable[bool], Output[T], None] = None, untar: Union[bool, Awaitable[bool], Output[T], None] = None, verify: Union[bool, Awaitable[bool], Output[T], None] = None)

FetchOpts is a bag of configuration options to customize the fetching of the Helm chart.

Parameters:
  • version (Optional[pulumi.Input[str]]) – Specific version of a chart. If unset, the latest version is fetched.
  • ca_file (Optional[pulumi.Input[str]]) – Verify certificates of HTTPS-enabled servers using this CA bundle.
  • cert_file (Optional[pulumi.Input[str]]) – Identify HTTPS client using this SSL certificate file.
  • key_file (Optional[pulumi.Input[str]]) – Identify HTTPS client using this SSL key file.
  • destination (Optional[pulumi.Input[str]]) – Location to write the chart. If this and [tardir] are specified, tardir is appended to this (default “.”).
  • keyring (Optional[pulumi.Input[str]]) – Keyring containing public keys (default “/Users//.gnupg/pubring.gpg”).
  • password (Optional[pulumi.Input[str]]) – Chart repository password.
  • repo (Optional[pulumi.Input[str]]) – Chart repository url where to locate the requested chart.
  • untar_dir (Optional[pulumi.Input[str]]) – If [untar] is specified, this flag specifies the name of the directory into which the chart is expanded (default “.”).
  • username (Optional[pulumi.Input[str]]) – Chart repository username.
  • home (Optional[pulumi.Input[str]]) – Location of your Helm config. Overrides $HELM_HOME (default “/Users//.helm”).
  • devel (Optional[pulumi.Input[bool]]) – Use development versions, too. Equivalent to version ‘>0.0.0-0’. If [version] is set, this is ignored.
  • prov (Optional[pulumi.Input[bool]]) – Fetch the provenance file, but don’t perform verification.
  • untar (Optional[pulumi.Input[bool]]) – If set to false, will leave the chart as a tarball after downloading.
  • verify (Optional[pulumi.Input[bool]]) – Verify the package against its signature.
version = None

Specific version of a chart. If unset, the latest version is fetched.

ca_file = None

Verify certificates of HTTPS-enabled servers using this CA bundle.

cert_file = None

Identify HTTPS client using this SSL certificate file.

key_file = None

Identify HTTPS client using this SSL key file.

destination = None

Location to write the chart. If this and [tardir] are specified, tardir is appended to this (default “.”).

keyring = None

Keyring containing public keys (default “/Users/alex/.gnupg/pubring.gpg”).

password = None

Chart repository password.

repo = None

Chart repository url where to locate the requested chart.

untar_dir = None

If [untar] is specified, this flag specifies the name of the directory into which the chart is expanded (default “.”).

username = None

Chart repository username.

home = None

Location of your Helm config. Overrides $HELM_HOME (default “/Users/alex/.helm”).

devel = None

Use development versions, too. Equivalent to version ‘>0.0.0-0’. If [version] is set, this is ignored.

prov = None

Fetch the provenance file, but don’t perform verification.

untar = None

If set to false, will leave the chart as a tarball after downloading.

verify = None

Verify the package against its signature.

class pulumi_kubernetes.helm.v2.LocalChartOpts(path: Union[str, Awaitable[str], Output[T]], namespace: Union[str, Awaitable[str], Output[T], None] = None, values: Optional[Mapping[str, Union[Any, Awaitable[Any], Output[T]]]] = None, transformations: Optional[List[Callable]] = None, resource_prefix: Optional[str] = None)

LocalChartOpts is a bag of configuration options for a local Helm chart.

Parameters:
  • path (pulumi.Input[str]) – The path to the chart directory which contains the Chart.yaml file.
  • namespace (Optional[pulumi.Input[str]]) – Optional namespace to install chart resources into.
  • values (Optional[pulumi.Inputs]) – Optional overrides for chart values.
  • transformations (Optional[List[Callable]]) – Optional list of transformations to apply to resources that will be created by this chart prior to creation. Allows customization of the chart behaviour without directly modifying the chart itself.
  • resource_prefix (Optional[str]) – An optional prefix for the auto-generated resource names. Example: A resource created with resource_prefix=”foo” would produce a resource named “foo-resourceName”.
path = None

The path to the chart directory which contains the Chart.yaml file.

pulumi_kubernetes.helm.v2.NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, delete=True)

Create and return a temporary file. Arguments: ‘prefix’, ‘suffix’, ‘dir’ – as for mkstemp. ‘mode’ – the mode argument to io.open (default “w+b”). ‘buffering’ – the buffer size argument to io.open (default -1). ‘encoding’ – the encoding argument to io.open (default None) ‘newline’ – the newline argument to io.open (default None) ‘delete’ – whether the file is deleted on close (default True). The file is created as mkstemp() would do it.

Returns an object with a file-like interface; the name of the file is accessible as its ‘name’ attribute. The file will be automatically deleted when it is closed unless the ‘delete’ argument is set to False.

class pulumi_kubernetes.helm.v2.TemporaryDirectory(suffix=None, prefix=None, dir=None)

Create and return a temporary directory. This has the same behavior as mkdtemp but can be used as a context manager. For example:

Upon exiting the context, the directory and everything contained in it are removed.