Skip to main content

Addon

Resource Addon in pulumi-portainer.
5 min read

Resource Addon in pulumi-portainer.

Pulumi type: portainer:index/addon:Addon.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
addonIdstringyesCatalog identifier of the addon, for example portal-template. Use the portainer.getAddons data source to list what the connected Portainer offers.
chartstringnoChart path within registryId, for example portainer/charts/portainer-run. Required when registryId is set; leave unset to install from the catalog's public chart reference.
forceUninstallbooleannoWhether to force the uninstall when the addon is destroyed, which lets Portainer remove a release that is in a broken state.
imageRegistryIdnumbernoIdentifier of the Portainer registry whose credentials the addon's pods pull their container image with. Unlike registryId this can be changed on an upgrade. Leave unset to keep whatever the addon is installed with.
portainerAddonIdstringno
pruneConfigOnUninstallbooleannoWhether to also delete the addon's stored configuration entries when the addon is destroyed. By default the configuration survives an uninstall so a reinstall keeps it.
registryIdnumbernoIdentifier of the Portainer registry the chart is pulled from. Only honoured on a first install, so changing it reinstalls the addon. Leave unset to use the catalog's public chart reference.
valuesstringnoHelm value overrides as a JSON object, merged over Portainer's per-addon defaults. Use jsonencode({...}) to build it.
versionstringnoChart version to install. Leave unset to resolve the latest published version at apply time - note that Portainer then picks the version, so the installed one is reported in chartVersion rather than here.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
addonIdstringnoCatalog identifier of the addon, for example portal-template. Use the portainer.getAddons data source to list what the connected Portainer offers.
availableVersionsstring[]yesPublished stable chart versions, newest first. Empty when the lookup could not run, in which case versionCheckError says why.
chartstringnoChart path within registryId, for example portainer/charts/portainer-run. Required when registryId is set; leave unset to install from the catalog's public chart reference.
chartPathstringyesChart path recorded for the installed release, empty when the chart came from the public reference.
chartVersionstringyesChart version actually installed, which is what to read when version is left unset.
descriptionstringyesFull catalog description of the addon.
displayNamestringyesHuman-readable name of the addon as published in the catalog.
enabledbooleanyesWhether the addon is installed and switched on. Manage it with portainer.AddonAccess.
forceUninstallbooleannoWhether to force the uninstall when the addon is destroyed, which lets Portainer remove a release that is in a broken state.
healthMessagestringyesExplanation of an unhealthy probe result, empty otherwise.
healthStatusstringyesLive probe of the running addon: healthy, unhealthy, credential-invalid or unknown. Orthogonal to lifecycleStatus - an installed addon can be unhealthy.
helmChartRepositorystringyesPublic OCI chart reference the catalog publishes for the addon.
iconstringyesIcon the Portainer UI shows for the addon.
imageRegistryIdnumbernoIdentifier of the Portainer registry whose credentials the addon's pods pull their container image with. Unlike registryId this can be changed on an upgrade. Leave unset to keep whatever the addon is installed with.
lifecycleStatusstringyesHelm release lifecycle state: installing, upgrading, installed, failed, unknown or uninstalling. This is not a health status.
lifecycleStatusMessagestringyesExplanation of a failed install or upgrade, empty after a clean one.
pathstringyesPath the addon is served under in Portainer.
portainerAddonIdstringno
pruneConfigOnUninstallbooleannoWhether to also delete the addon's stored configuration entries when the addon is destroyed. By default the configuration survives an uninstall so a reinstall keeps it.
registryIdnumbernoIdentifier of the Portainer registry the chart is pulled from. Only honoured on a first install, so changing it reinstalls the addon. Leave unset to use the catalog's public chart reference.
shortDescriptionstringyesOne-line catalog tagline for the addon.
upgradeAvailablebooleanyesWhether a newer chart version than the installed one has been published.
valuesstringnoHelm value overrides as a JSON object, merged over Portainer's per-addon defaults. Use jsonencode({...}) to build it.
versionstringnoChart version to install. Leave unset to resolve the latest published version at apply time - note that Portainer then picks the version, so the installed one is reported in chartVersion rather than here.
versionCheckErrorstringyesWhy the available-version lookup failed, empty when it succeeded.