Best practice for Terraform with Rancher (app vs app_v2)

Hi,
we started to use Rancher with Terraform.
We have succesfully started and updated the quickstart example by ourselves, too v2.5.6. We were able to add a joomla app with:

resource "rancher2_catalog_v2" "bitnami" {
  provider = rancher2.admin
  cluster_id = rancher2_cluster.quickstart_workload.id
  name = "bitnami"
  url = "https://charts.bitnami.com/bitnami"
  enabled = true
  depends_on = [
    rancher2_cluster.quickstart_workload
  ]
}
resource "rancher2_app_v2" "joomla" {
  provider = rancher2.admin
  cluster_id = rancher2_cluster.quickstart_workload.id
  name = "joomla"
  namespace = "joomla-system"
  repo_name = rancher2_catalog_v2.bitnami.name
  chart_name = "joomla"
  depends_on = [
    rancher2_catalog_v2.bitnami
  ]
}

What we don’t understand:
Why is there a rancher2_app and a rancher2_app_v2 ?
The rancher2_app seems a little bit older, but it has much more options.

Should we switch to rancher2_app?
Or is it better to use everywhere the _v2 ?

Best regards

1 Like