1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. Addon
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.ContainerEngine.Addon

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    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,
              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)
    public Addon(String name, AddonArgs args)
    public Addon(String name, AddonArgs args, CustomResourceOptions options)
    
    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.

    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",
            },
        },
        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"),
    		},
    	},
    	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())
        .version("string")
        .build());
    
    addon_resource = oci.container_engine.Addon("addonResource",
        addon_name="string",
        cluster_id="string",
        remove_addon_resources_on_delete=False,
        configurations=[oci.container_engine.AddonConfigurationArgs(
            key="string",
            value="string",
        )],
        version="string")
    
    const addonResource = new oci.containerengine.Addon("addonResource", {
        addonName: "string",
        clusterId: "string",
        removeAddonResourcesOnDelete: false,
        configurations: [{
            key: "string",
            value: "string",
        }],
        version: "string",
    });
    
    type: oci:ContainerEngine:Addon
    properties:
        addonName: string
        clusterId: string
        configurations:
            - key: string
              value: string
        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

    The Addon resource accepts the following input properties:

    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    RemoveAddonResourcesOnDelete bool
    Whether to remove addon resource in deletion.
    Configurations List<AddonConfiguration>
    (Updatable) Addon configuration 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

    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    RemoveAddonResourcesOnDelete bool
    Whether to remove addon resource in deletion.
    Configurations []AddonConfigurationArgs
    (Updatable) Addon configuration 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

    addonName String
    The name of the addon.
    clusterId String
    The OCID of the cluster.
    removeAddonResourcesOnDelete Boolean
    Whether to remove addon resource in deletion.
    configurations List<AddonConfiguration>
    (Updatable) Addon configuration 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

    addonName string
    The name of the addon.
    clusterId string
    The OCID of the cluster.
    removeAddonResourcesOnDelete boolean
    Whether to remove addon resource in deletion.
    configurations AddonConfiguration[]
    (Updatable) Addon configuration 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_resources_on_delete bool
    Whether to remove addon resource in deletion.
    configurations Sequence[containerengine.AddonConfigurationArgs]
    (Updatable) Addon configuration 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

    addonName String
    The name of the addon.
    clusterId String
    The OCID of the cluster.
    removeAddonResourcesOnDelete Boolean
    Whether to remove addon resource in deletion.
    configurations List<Property Map>
    (Updatable) Addon configuration 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:

    AddonErrors List<AddonAddonError>
    The error info of the addon.
    CurrentInstalledVersion string
    current installed version of the addon
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The state of the addon.
    TimeCreated string
    The time the cluster was created.
    AddonErrors []AddonAddonError
    The error info of the addon.
    CurrentInstalledVersion string
    current installed version of the addon
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The state of the addon.
    TimeCreated string
    The time the cluster was created.
    addonErrors List<AddonAddonError>
    The error info of the addon.
    currentInstalledVersion String
    current installed version of the addon
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The state of the addon.
    timeCreated String
    The time the cluster was created.
    addonErrors AddonAddonError[]
    The error info of the addon.
    currentInstalledVersion string
    current installed version of the addon
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The state of the addon.
    timeCreated string
    The time the cluster was created.
    addon_errors Sequence[containerengine.AddonAddonError]
    The error info of the addon.
    current_installed_version str
    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.
    addonErrors List<Property Map>
    The error info of the addon.
    currentInstalledVersion String
    current installed version of the addon
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The state of the addon.
    timeCreated 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,
            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.
    The following state arguments are supported:
    AddonErrors List<AddonAddonError>
    The error info of the addon.
    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    Configurations List<AddonConfiguration>
    (Updatable) Addon configuration details.
    CurrentInstalledVersion string
    current installed version of the addon
    RemoveAddonResourcesOnDelete bool
    Whether to remove addon resource in deletion.
    State string
    The state of the addon.
    TimeCreated 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

    AddonErrors []AddonAddonErrorArgs
    The error info of the addon.
    AddonName string
    The name of the addon.
    ClusterId string
    The OCID of the cluster.
    Configurations []AddonConfigurationArgs
    (Updatable) Addon configuration details.
    CurrentInstalledVersion string
    current installed version of the addon
    RemoveAddonResourcesOnDelete bool
    Whether to remove addon resource in deletion.
    State string
    The state of the addon.
    TimeCreated 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

    addonErrors List<AddonAddonError>
    The error info of the addon.
    addonName String
    The name of the addon.
    clusterId String
    The OCID of the cluster.
    configurations List<AddonConfiguration>
    (Updatable) Addon configuration details.
    currentInstalledVersion String
    current installed version of the addon
    removeAddonResourcesOnDelete Boolean
    Whether to remove addon resource in deletion.
    state String
    The state of the addon.
    timeCreated 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

    addonErrors AddonAddonError[]
    The error info of the addon.
    addonName string
    The name of the addon.
    clusterId string
    The OCID of the cluster.
    configurations AddonConfiguration[]
    (Updatable) Addon configuration details.
    currentInstalledVersion string
    current installed version of the addon
    removeAddonResourcesOnDelete boolean
    Whether to remove addon resource in deletion.
    state string
    The state of the addon.
    timeCreated 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.AddonAddonErrorArgs]
    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.AddonConfigurationArgs]
    (Updatable) Addon configuration details.
    current_installed_version str
    current installed version of the addon
    remove_addon_resources_on_delete bool
    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

    addonErrors List<Property Map>
    The error info of the addon.
    addonName String
    The name of the addon.
    clusterId String
    The OCID of the cluster.
    configurations List<Property Map>
    (Updatable) Addon configuration details.
    currentInstalledVersion String
    current installed version of the addon
    removeAddonResourcesOnDelete Boolean
    Whether to remove addon resource in deletion.
    state String
    The state of the addon.
    timeCreated 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

    Key string
    (Updatable) configuration key name
    Value string
    (Updatable) configuration value name
    Key string
    (Updatable) configuration key name
    Value string
    (Updatable) configuration value name
    key String
    (Updatable) configuration key name
    value String
    (Updatable) configuration value name
    key string
    (Updatable) configuration key name
    value string
    (Updatable) configuration value name
    key str
    (Updatable) configuration key name
    value str
    (Updatable) configuration value name
    key String
    (Updatable) configuration key name
    value String
    (Updatable) configuration value name

    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.
    oci logo
    Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi