Skip to content

Releases: rancher/terraform-provider-rancher2

v1.20.0

17 Sep 16:07
6c5b292

Choose a tag to compare

CHANGELOG

1.20.0 (September 17, 2021)

FEATURES:

  • New Argument: rancher2_cluster.aks_config_v2 - (Optional) The Azure AKS v2 configuration for creating/import aks Clusters. Conflicts with aks_config, eks_config, eks_config_v2, gke_config, gke_config_v2, oke_config k3s_config and rke_config. For Rancher v2.6.0 and above (list maxitems:1)
  • New Argument: rancher2_cloud_credential.azure_credential_config.environment - (Optional/Computed) Azure environment (e.g. AzurePublicCloud, AzureChinaCloud) (string)
  • New Argument: rancher2_cloud_credential.azure_credential_config.tenant_id - (Optional/Computed) Azure Tenant ID (string)
  • New Attribute: rancher2_cluster.cluster_registration_token.insecure_node_command - (Computed) Insecure node command to execute in a imported k8s cluster (string)
  • New Attribute: rancher2_cluster.cluster_registration_token.insecure_windows_node_command - (Computed) Insecure windows command to execute in a imported k8s cluster (string)
  • New Attribute: rancher2_cloud_credential.amazonec2_credential_config.default_region - (Optional) AWS default region (string)
  • New Resource: rancher2_machine_config_v2 - Provides a Rancher v2 Machine config v2 resource. Available as tech preview at Rancher v2.6.0 and above.
  • New Resource: rancher2_cluster_v2 - Provides Rancher cluster v2 resource to manage RKE2 and K3S cluster. Available as tech preview at Rancher v2.6.0 and above.
  • New Data Source: rancher2_cluster_v2 - Provides Rancher cluster v2 resource to manage RKE2 and K3S cluster. Available at Rancher v2.6.0 and above.

ENHANCEMENTS:

  • Updated go modules and acceptance tests to support rancher v2.6.0
  • Updated rancher2_cluster.rke_config schema to support rancher v2.6.0 rancher/rke#2409
  • Updated rancher2_cluster.gke_config_v2 schema to support rancher v2.6.0 rancher/gke-operator#49
  • Updated rancher2_cluster.eks_config_v2 schema to support rancher v2.6.0 rancher/eks-operator#38
  • Updated rancher2_cluster.gke_config_v2 schema to support rancher v2.6.0 rancher/rancher#34291
  • Updated docs, adding note to use rancher2_bootstrap resource on Rancher v2.6.0 and above

BUG FIXES:

  • Updated rancher2_project_role_template_binding rancher2_cluster_role_template_binding resources, setting user_id and group_id arguments as computed
  • Updated rancher2_cluster.aks_config_v2 to:
  • Updated InfoAppV2 function to proper escape url query params #739

v1.17.2

25 Aug 22:30
a9a03b4

Choose a tag to compare

CHANGELOG

1.17.2 (August 25, 2021)

FEATURES:

ENHANCEMENTS:

  • Added verb own to policy rule
  • Updated WaitForClusterState function to check for condition last update before return error

BUG FIXES:

v1.17.1

18 Aug 17:34
4dce014

Choose a tag to compare

CHANGELOG

1.17.1 (August 18, 2021)

FEATURES:

  • New Argument: rancher2_cluster.fleet_workspace_name - (Optional/Computed) Fleet workspace name (string)

ENHANCEMENTS:

BUG FIXES:

  • Fix rancher2_cluster resource update to not reset fleet workspace name
  • Fix rancher2_node_template resource to proper update cloud_credential_id and use_internal_ip_address arguments

v1.17.0

12 Aug 18:26
1eeba86

Choose a tag to compare

CHANGELOG

1.17.0 (August 12, 2021)

FEATURES:

  • New Argument: rancher2_cluster.rke_config.ingress.tolerations - (Optional) Ingress add-on tolerations (list)
  • New Argument: rancher2_cluster.rke_config.monitoring.tolerations - (Optional) Monitoring add-on tolerations (list)
  • New Argument: rancher2_cluster.rke_config.network.tolerations - (Optional) Network add-on tolerations (list)
  • New Argument: rancher2_cluster.rke_config.dns.options - (Optional) DNS add-on options (map)
  • New Argument: rancher2_cluster.rke_config.dns.tolerations - (Optional) DNS add-on tolerations (list)
  • New Argument: rancher2_cluster.oke_config.enable_private_control_plane - (Optional) Specifies whether Kubernetes API endpoint is a private IP only accessible from within the VCN. Default false for Rancher v2.5.10 or above (bool)
  • New Data Source: rancher2_storage_class_v2 - Provides Rancher Storage Class v2 data source. Available at Rancher v2.5.x and above.
  • New Resource: rancher2_storage_class_v2 - Provides Rancher Storage Class v2 resource. Available at Rancher v2.5.x and above.

ENHANCEMENTS:

  • Added tolerations schema, structure and tests
  • Updated rancher2_cluster resource to properly generate cluster registration token
  • Minor rancher2_catalog_v2 and rancher2_secret_v2 datasource docs update
  • Added verb deletecollection to policy rule
  • Updated WaitForClusterState function to check for cluster transitioning before return error

BUG FIXES:

  • Updated rancher2_notifier resource to be replaced on update
  • Fixed rancher2_cluster.eks_config_v2 to avoid false diff
  • Updated rancher2_notifier resource to be replaced on update
  • Updated rancher2_cluster docs to proper format yaml examples

v1.16.0

15 Jul 16:34
365539d

Choose a tag to compare

CHANGELOG

1.16.0 (July 15, 2021)

FEATURES:

  • New Argument: rancher2_auth_config_keycloak.entity_id - (Optional/Computed) KeyCloak Client ID field (string)
  • New Argument: rancher2_auth_config_activedirectory.start_tls - (Optional/Computed) Enable start TLS connection (bool)
  • New Argument: rancher2_node_pool.drain_before_delete - (Optional) Drain nodes before delete (bool)

ENHANCEMENTS:

  • Added timeout error message to CatalogV2Client, getObjectV2ByID and GetCatalogV2List functions
  • Updated rancher2_bootstrap resource to wait until local cluster is active
  • Updated rancher2_cluster.rke_config.cloud_provider.name argument from Optional/Computed to Optional
  • Updated rancher2_cluster resource to replace RKE cluster API info instead of update, if rancher2_cluster.rke_config has been updated
  • Updated rancher2_project resource to replace project API info instead of update
  • Updated rancher2_node_template.engine_install_url argument to be computed
  • Updated Rancher to v2.5.9
  • Updated golang to v1.16.5 and added darwin arm64 build

BUG FIXES:

  • Fixed rancher2_cluster.gke_config_v2.cluster_addons to be optional

v1.15.1

21 May 17:33
981aa57

Choose a tag to compare

CHANGELOG

1.15.1 (May 21, 2021)

FEATURES:

ENHANCEMENTS:

BUG FIXES:

  • Added timeout to CatalogV2Client function when getting new catalog v2 client

v1.15.0

20 May 16:32
23691a9

Choose a tag to compare

CHANGELOG

1.15.0 (May 20, 2021)

FEATURES:

  • Deprecated Argument: rancher2_cluster.aks_config.tag - (Deprecated) Use tags argument instead as []string
  • New Argument: rancher2_cluster.aks_config.tags - (Optional/Computed) Tags for Kubernetes cluster. For example, ["foo=bar","bar=foo"] (list)
  • New Argument: rancher2_cluster.agent_env_vars - (Optional) Optional Agent Env Vars for Rancher agent. For Rancher v2.5.6 and above (list)
  • Deprecated provider Argument: retries - (Deprecated) Use timeout instead
  • New provider Argument: timeout - (Optional) Timeout duration to retry for Rancher connectivity and resource operations. Default: "120s"
  • New Argument: rancher2_cluster.oke_config.pod_cidr - (Optional) A CIDR IP range from which to assign Kubernetes Pod IPs (string)
  • New Argument: rancher2_cluster.oke_config.service_cidr - (Optional) A CIDR IP range from which to assign Kubernetes Service IPs (string)

ENHANCEMENTS:

  • Added timeout to CatalogV2Client function when getting new catalog v2 client

BUG FIXES:

  • Fixed rancher2_cluster.hetzner_config.UsePrivateNetwork with proper json field name

v1.14.0

07 May 18:18
12451d6

Choose a tag to compare

CHANGELOG

1.14.0 (May 7, 2021)

FEATURES:

  • New Argument: rancher2_cluster.oke_config.limit_node_count - (Optional) The maximum number of worker nodes. Can limit quantity_per_subnet. Default 0 (no limit) (int)
  • New Argument: rancher2_cluster.rke_config.ingress.default_backend - (Optional) Enable ingress default backend. Default: true (bool)
  • New Argument: rancher2_cluster.rke_config.ingress.http_port - (Optional/Computed) HTTP port for RKE Ingress (int)
  • New Argument: rancher2_cluster.rke_config.ingress.https_port - (Optional/Computed) HTTPS port for RKE Ingress (int)
  • New Argument: rancher2_cluster.rke_config.ingress.network_mode - (Optional/Computed) Network mode for RKE Ingress (string)
  • New Argument: rancher2_cluster.rke_config.ingress.update_strategy - (Optional) RKE ingress update strategy (list Maxitems: 1)
  • New Argument: rancher2_cluster.rke2_config - (Optional/Computed) The RKE2 configuration for rke2 Clusters. Conflicts with aks_config, eks_config, gke_config, oke_config, k3s_config and rke_config (list maxitems:1)
  • New Argument: rancher2_cluster_sync.wait_alerting - (Optional) Wait until alerting is up and running. Default: false (bool)
  • New Argument: rancher2_cluster.gke_config_v2 - (Optional) The Google GKE V2 configuration for gke Clusters. Conflicts with aks_config, eks_config, eks_config_v2, gke_config, oke_config, k3s_config and rke_config. For Rancher v2.5.8 or above (list maxitems:1)
  • New Argument: rancher2_cloud_credential.google_credential_config - (Optional) Google config for the Cloud Credential (list maxitems:1)

ENHANCEMENTS:

  • Updated rancher2_catalog_v2 schema resource, defining conflict between git_repo and url arguments
  • Improved rancher2_cluster_sync with new cluster state check method and new option to wait until alerting is enabled
  • Updated go mod to support Rancher v2.5.8
  • Updated acceptance tests to use Rancher v2.5.8

BUG FIXES:

  • Fix rancher2_node_pool resource, adding forcenew property to not updatable arguments
  • Fix rancher2_cluster resource, fixing provider crash if cluster_monitoring_input argument is deleted
  • Fix rancher2_project resource, fixing provider crash if project_monitoring_input argument is deleted
  • Fix rancher2_catalog_v2 resource, just setting default git_branch value if git_repo is specified
  • Fix rancher2_cluster.eks_config_v2 argument, setting private_access, public_access and secrets_encryption as computed argument, removing default value

v1.13.0

31 Mar 18:57
1b39891

Choose a tag to compare

CHANGELOG

1.13.0 (March 31, 2021)

FEATURES:

  • New Argument: rancher2_cluster.eks_config_v2.node_groups.image_id - (Optional) The EKS node group image ID (string)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.launch_template - (Optional) The EKS node groups launch template (list Maxitem: 1)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.launch_template.id - (Required) The EKS node group launch template ID (string)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.launch_template.name - (Optional/Computed) The EKS node group launch template name (string)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.launch_template.version - (Optional) The EKS node group launch template version. Default: 1 (int)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.request_spot_instances - (Optional) Enable EKS node group request spot instances (bool)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.resource_tags - (Optional) The EKS node group resource tags (map)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.spot_instance_types - (Optional) The EKS node group sport instace types (list string)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.subnets - (Optional) The EKS node group subnets (list string)
  • New Argument: rancher2_cluster.eks_config_v2.node_groups.user_data - (Optional) The EKS node group user data (string)
  • New Argument: rancher2_cluster_sync.wait_catalogs - (Optional) Wait until all catalogs are downloaded and active. Default: false (bool)
  • New Attribute: rancher2_cluster.eks_config_v2.node_groups.version - (Computed) The EKS node group version (string)
  • New Attribute: rancher2_app_v2.system_default_registry - (Computed) The system default registry of the app (string)
  • New Data Source: rancher2_secret_v2 - Provides a Rancher V2 Secret V2 data source
  • New Resource: rancher2_secret_v2 - Provides a Rancher V2 Secret V2 resource

ENHANCEMENTS:

  • Updated go mod to support Rancher v2.5.7
  • Updated acceptance tests to use Rancher v2.5.7
  • Updated rancher2_cluster_sync to allow wait until all catalogs are downloaded and active

BUG FIXES:

  • Fix rancher2_app_v2 to respect Rancher system default registry
  • Fix rancher2_cluster.eks_config_v2 to deploy properly EKS clusters
  • Fix rancher2_catalog_v2 to wait until downloaded status

v1.12.0

05 Mar 15:26
ea1aee4

Choose a tag to compare

CHANGELOG

1.12.0 (March 05, 2021)

FEATURES:

  • New Argument: rancher2_node_template.node_taints - (Optional) Node taints. For Rancher v2.3.3 or above (List)
  • New Argument: rancher2_cluster.aks_config.load_balancer_sku - (Optional/Computed) Load balancer type (basic | standard). Must be standard for auto-scaling
  • New Argument: rancher2_cluster.rke_config.services.etc.backup_config.timeout - (Optional/Computed) Set timeout in seconds for etcd backup. Just for Rancher v2.5.6 and above
  • New Data Source: rancher2_global_role - Provides a Rancher V2 Global Role data source
  • New Resource: rancher2_global_role - Provides a Rancher V2 Global Role resource
  • New Resource: rancher2_feature - Provides a Rancher V2 Feature resource. Just for Rancher v2.5.0 and above

ENHANCEMENTS:

  • Updated rancher2_node_template.openstack_config to support boot_from_volume and related arguments
  • Added password as valid cluster_template_questions type to rancher2_cluster resource
  • Preserve cluster_template_answers for cluster_template_questions of type password in rancher2_cluster resource to avoid misleading diffs
  • Added nodes attribute reference to rancher2_cluster_sync resource
  • Updated go mod to support Rancher v2.5.6
  • Updated acceptance tests to use Rancher v2.5.6
  • Added retry to get k8s default version, if getting forbidden or server error
  • Added retry to get V2 catalogs and apps, if getting server error