oci.ContainerEngine.Addon
Explore with Pulumi AI
This resource provides the Addon resource in Oracle Cloud Infrastructure Container Engine service.
Install the specified addon for a cluster.
Create Addon Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Addon(name: string, args: AddonArgs, opts?: CustomResourceOptions);
@overload
def Addon(resource_name: str,
args: AddonArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Addon(resource_name: str,
opts: Optional[ResourceOptions] = None,
addon_name: Optional[str] = None,
cluster_id: Optional[str] = None,
remove_addon_resources_on_delete: Optional[bool] = None,
configurations: Optional[Sequence[_containerengine.AddonConfigurationArgs]] = None,
override_existing: Optional[bool] = None,
version: Optional[str] = None)
func NewAddon(ctx *Context, name string, args AddonArgs, opts ...ResourceOption) (*Addon, error)
public Addon(string name, AddonArgs args, CustomResourceOptions? opts = null)
type: oci:ContainerEngine:Addon
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AddonArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AddonArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AddonArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddonArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AddonArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var addonResource = new Oci.ContainerEngine.Addon("addonResource", new()
{
AddonName = "string",
ClusterId = "string",
RemoveAddonResourcesOnDelete = false,
Configurations = new[]
{
new Oci.ContainerEngine.Inputs.AddonConfigurationArgs
{
Key = "string",
Value = "string",
},
},
OverrideExisting = false,
Version = "string",
});
example, err := ContainerEngine.NewAddon(ctx, "addonResource", &ContainerEngine.AddonArgs{
AddonName: pulumi.String("string"),
ClusterId: pulumi.String("string"),
RemoveAddonResourcesOnDelete: pulumi.Bool(false),
Configurations: containerengine.AddonConfigurationArray{
&containerengine.AddonConfigurationArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
OverrideExisting: pulumi.Bool(false),
Version: pulumi.String("string"),
})
var addonResource = new Addon("addonResource", AddonArgs.builder()
.addonName("string")
.clusterId("string")
.removeAddonResourcesOnDelete(false)
.configurations(AddonConfigurationArgs.builder()
.key("string")
.value("string")
.build())
.overrideExisting(false)
.version("string")
.build());
addon_resource = oci.container_engine.Addon("addonResource",
addon_name="string",
cluster_id="string",
remove_addon_resources_on_delete=False,
configurations=[{
"key": "string",
"value": "string",
}],
override_existing=False,
version="string")
const addonResource = new oci.containerengine.Addon("addonResource", {
addonName: "string",
clusterId: "string",
removeAddonResourcesOnDelete: false,
configurations: [{
key: "string",
value: "string",
}],
overrideExisting: false,
version: "string",
});
type: oci:ContainerEngine:Addon
properties:
addonName: string
clusterId: string
configurations:
- key: string
value: string
overrideExisting: false
removeAddonResourcesOnDelete: false
version: string
Addon Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Addon resource accepts the following input properties:
- Addon
Name string - The name of the addon.
- Cluster
Id string - The OCID of the cluster.
- Remove
Addon boolResources On Delete - Whether to remove addon resource in deletion.
- Configurations
List<Addon
Configuration> - (Updatable) Addon configuration details
- Override
Existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- Version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Addon
Name string - The name of the addon.
- Cluster
Id string - The OCID of the cluster.
- Remove
Addon boolResources On Delete - Whether to remove addon resource in deletion.
- Configurations
[]Addon
Configuration Args - (Updatable) Addon configuration details
- Override
Existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- Version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Name String - The name of the addon.
- cluster
Id String - The OCID of the cluster.
- remove
Addon BooleanResources On Delete - Whether to remove addon resource in deletion.
- configurations
List<Addon
Configuration> - (Updatable) Addon configuration details
- override
Existing Boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- version String
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Name string - The name of the addon.
- cluster
Id string - The OCID of the cluster.
- remove
Addon booleanResources On Delete - Whether to remove addon resource in deletion.
- configurations
Addon
Configuration[] - (Updatable) Addon configuration details
- override
Existing boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon_
name str - The name of the addon.
- cluster_
id str - The OCID of the cluster.
- remove_
addon_ boolresources_ on_ delete - Whether to remove addon resource in deletion.
- configurations
Sequence[containerengine.
Addon Configuration Args] - (Updatable) Addon configuration details
- override_
existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- version str
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Name String - The name of the addon.
- cluster
Id String - The OCID of the cluster.
- remove
Addon BooleanResources On Delete - Whether to remove addon resource in deletion.
- configurations List<Property Map>
- (Updatable) Addon configuration details
- override
Existing Boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- version String
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the Addon resource produces the following output properties:
- Addon
Errors List<AddonAddon Error> - The error info of the addon.
- Current
Installed stringVersion - current installed version of the addon
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the addon.
- Time
Created string - The time the cluster was created.
- Addon
Errors []AddonAddon Error - The error info of the addon.
- Current
Installed stringVersion - current installed version of the addon
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the addon.
- Time
Created string - The time the cluster was created.
- addon
Errors List<AddonAddon Error> - The error info of the addon.
- current
Installed StringVersion - current installed version of the addon
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the addon.
- time
Created String - The time the cluster was created.
- addon
Errors AddonAddon Error[] - The error info of the addon.
- current
Installed stringVersion - current installed version of the addon
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The state of the addon.
- time
Created string - The time the cluster was created.
- addon_
errors Sequence[containerengine.Addon Addon Error] - The error info of the addon.
- current_
installed_ strversion - current installed version of the addon
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The state of the addon.
- time_
created str - The time the cluster was created.
- addon
Errors List<Property Map> - The error info of the addon.
- current
Installed StringVersion - current installed version of the addon
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the addon.
- time
Created String - The time the cluster was created.
Look up Existing Addon Resource
Get an existing Addon resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AddonState, opts?: CustomResourceOptions): Addon
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addon_errors: Optional[Sequence[_containerengine.AddonAddonErrorArgs]] = None,
addon_name: Optional[str] = None,
cluster_id: Optional[str] = None,
configurations: Optional[Sequence[_containerengine.AddonConfigurationArgs]] = None,
current_installed_version: Optional[str] = None,
override_existing: Optional[bool] = None,
remove_addon_resources_on_delete: Optional[bool] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
version: Optional[str] = None) -> Addon
func GetAddon(ctx *Context, name string, id IDInput, state *AddonState, opts ...ResourceOption) (*Addon, error)
public static Addon Get(string name, Input<string> id, AddonState? state, CustomResourceOptions? opts = null)
public static Addon get(String name, Output<String> id, AddonState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Addon
Errors List<AddonAddon Error> - The error info of the addon.
- Addon
Name string - The name of the addon.
- Cluster
Id string - The OCID of the cluster.
- Configurations
List<Addon
Configuration> - (Updatable) Addon configuration details
- Current
Installed stringVersion - current installed version of the addon
- Override
Existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- Remove
Addon boolResources On Delete - Whether to remove addon resource in deletion.
- State string
- The state of the addon.
- Time
Created string - The time the cluster was created.
- Version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Addon
Errors []AddonAddon Error Args - The error info of the addon.
- Addon
Name string - The name of the addon.
- Cluster
Id string - The OCID of the cluster.
- Configurations
[]Addon
Configuration Args - (Updatable) Addon configuration details
- Current
Installed stringVersion - current installed version of the addon
- Override
Existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- Remove
Addon boolResources On Delete - Whether to remove addon resource in deletion.
- State string
- The state of the addon.
- Time
Created string - The time the cluster was created.
- Version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Errors List<AddonAddon Error> - The error info of the addon.
- addon
Name String - The name of the addon.
- cluster
Id String - The OCID of the cluster.
- configurations
List<Addon
Configuration> - (Updatable) Addon configuration details
- current
Installed StringVersion - current installed version of the addon
- override
Existing Boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- remove
Addon BooleanResources On Delete - Whether to remove addon resource in deletion.
- state String
- The state of the addon.
- time
Created String - The time the cluster was created.
- version String
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Errors AddonAddon Error[] - The error info of the addon.
- addon
Name string - The name of the addon.
- cluster
Id string - The OCID of the cluster.
- configurations
Addon
Configuration[] - (Updatable) Addon configuration details
- current
Installed stringVersion - current installed version of the addon
- override
Existing boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- remove
Addon booleanResources On Delete - Whether to remove addon resource in deletion.
- state string
- The state of the addon.
- time
Created string - The time the cluster was created.
- version string
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon_
errors Sequence[containerengine.Addon Addon Error Args] - The error info of the addon.
- addon_
name str - The name of the addon.
- cluster_
id str - The OCID of the cluster.
- configurations
Sequence[containerengine.
Addon Configuration Args] - (Updatable) Addon configuration details
- current_
installed_ strversion - current installed version of the addon
- override_
existing bool - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- remove_
addon_ boolresources_ on_ delete - Whether to remove addon resource in deletion.
- state str
- The state of the addon.
- time_
created str - The time the cluster was created.
- version str
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- addon
Errors List<Property Map> - The error info of the addon.
- addon
Name String - The name of the addon.
- cluster
Id String - The OCID of the cluster.
- configurations List<Property Map>
- (Updatable) Addon configuration details
- current
Installed StringVersion - current installed version of the addon
- override
Existing Boolean - Whether or not to override an existing addon installation. Defaults to false. If set to true, any existing addon installation would be overridden as per new installation details.
- remove
Addon BooleanResources On Delete - Whether to remove addon resource in deletion.
- state String
- The state of the addon.
- time
Created String - The time the cluster was created.
- version String
(Updatable) The version of addon to be installed.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Supporting Types
AddonAddonError, AddonAddonErrorArgs
- Code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- Message string
- A human-readable error string of the upstream error.
- Status string
- The status of the HTTP response encountered in the upstream error.
- Code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- Message string
- A human-readable error string of the upstream error.
- Status string
- The status of the HTTP response encountered in the upstream error.
- code String
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message String
- A human-readable error string of the upstream error.
- status String
- The status of the HTTP response encountered in the upstream error.
- code string
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message string
- A human-readable error string of the upstream error.
- status string
- The status of the HTTP response encountered in the upstream error.
- code str
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message str
- A human-readable error string of the upstream error.
- status str
- The status of the HTTP response encountered in the upstream error.
- code String
- A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
- message String
- A human-readable error string of the upstream error.
- status String
- The status of the HTTP response encountered in the upstream error.
AddonConfiguration, AddonConfigurationArgs
Import
Addons can be imported using the id
, e.g.
$ pulumi import oci:ContainerEngine/addon:Addon test_addon "clusters/{clusterId}/addons/{addonName}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.