Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Sep 16, 2024
1 parent a1158b5 commit 0e9a879
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions example/service/helm/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
terraform {
required_providers {
plural = {
source = "pluralsh/plural"
version = "0.2.1"
}
}
}

provider "plural" {
use_cli = true
}

data "plural_cluster" "byok_workload_cluster" {
handle = "gcp-workload-cluster"
data "plural_cluster" "cluster" {
handle = "mgmt"
}

resource "plural_service_deployment" "cd-test" {
Expand All @@ -12,7 +21,7 @@ resource "plural_service_deployment" "cd-test" {
namespace = "tf-cd-helm-test"

cluster = {
handle = data.plural_cluster.byok_workload_cluster.handle
handle = data.plural_cluster.cluster.handle
}

# Requires flux-source-controller addon to be installed and flux repo CRD for podinfo to exist
Expand Down Expand Up @@ -51,8 +60,4 @@ resource "plural_service_deployment" "cd-test" {
}
}
}

depends_on = [
data.plural_cluster.byok_workload_cluster,
]
}

0 comments on commit 0e9a879

Please sign in to comment.