Skip to content

Commit

Permalink
[examples] add depends_on to controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpSy committed May 10, 2023
1 parent 121a753 commit 1f9a61d
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 21 deletions.
8 changes: 6 additions & 2 deletions examples/azure-from-scratch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ provider "kubernetes" {
}

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand Down Expand Up @@ -135,5 +136,8 @@ module "ocean-spark" {

ocean_cluster_id = module.ocean-aks-np.ocean_id

depends_on = [module.ocean-aks-np]
depends_on = [
module.ocean-aks-np,
module.ocean-controller,
]
}
8 changes: 6 additions & 2 deletions examples/azure-from-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ provider "kubernetes" {
}

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand Down Expand Up @@ -113,5 +114,8 @@ module "ocean-spark" {

ocean_cluster_id = module.ocean-aks-np.ocean_id

depends_on = [module.ocean-aks-np]
depends_on = [
module.ocean-aks-np,
module.ocean-controller,
]
}
8 changes: 6 additions & 2 deletions examples/azure-import-aks-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ provider "kubernetes" {
}

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand Down Expand Up @@ -94,5 +95,8 @@ module "ocean-spark" {

ocean_cluster_id = module.ocean-aks-np.ocean_id

depends_on = [module.ocean-aks-np]
depends_on = [
module.ocean-aks-np,
module.ocean-controller,
]
}
7 changes: 6 additions & 1 deletion examples/from-private-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ provider "kubernetes" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -158,4 +158,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = module.ocean-aws-k8s.ocean_id

depends_on = [
module.ocean-aws-k8s,
module.ocean-controller,
]
}
8 changes: 4 additions & 4 deletions examples/from-scratch-eks-blueprint/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ provider "spotinst" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

# Credentials.
spotinst_token = var.spotinst_token
Expand All @@ -223,12 +223,12 @@ module "ocean-controller" {
}

module "ocean-spark" {
source = "spotinst/ocean-spark/spotinst"
version = "1.1.1"
source = "../.."

ocean_cluster_id = module.ocean-aws-k8s.ocean_id

depends_on = [
module.ocean-aws-k8s
module.ocean-aws-k8s,
module.ocean-controller,
]
}
7 changes: 6 additions & 1 deletion examples/from-scratch-with-private-link/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ provider "kubernetes" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -311,4 +311,9 @@ module "ocean-spark" {

enable_private_link = true
ingress_private_link_endpoint_service_address = aws_vpc_endpoint_service.this.service_name

depends_on = [
module.ocean-aws-k8s,
module.ocean-controller,
]
}
7 changes: 6 additions & 1 deletion examples/from-scratch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ provider "kubernetes" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -202,4 +202,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = module.ocean-aws-k8s.ocean_id

depends_on = [
module.ocean-aws-k8s,
module.ocean-controller,
]
}
8 changes: 4 additions & 4 deletions examples/from-vpc-eks-blueprint/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ provider "spotinst" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

# Credentials.
spotinst_token = var.spotinst_token
Expand All @@ -182,12 +182,12 @@ module "ocean-controller" {
}

module "ocean-spark" {
source = "spotinst/ocean-spark/spotinst"
version = "1.1.1"
source = "../.."

ocean_cluster_id = module.ocean-aws-k8s.ocean_id

depends_on = [
module.ocean-aws-k8s
module.ocean-aws-k8s,
module.ocean-controller,
]
}
8 changes: 7 additions & 1 deletion examples/gcp-from-scratch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ provider "kubernetes" {

### Deploy Ocean Controller Pod into Cluster ###
module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -120,4 +121,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = spotinst_ocean_gke_import.ocean.id

depends_on = [
spotinst_ocean_gke_import.ocean,
module.ocean-controller,
]
}
8 changes: 7 additions & 1 deletion examples/gcp-from-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ provider "kubernetes" {

### Deploy Ocean Controller Pod into Cluster ###
module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -78,4 +79,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = spotinst_ocean_gke_import.ocean.id

depends_on = [
spotinst_ocean_gke_import.ocean,
module.ocean-controller,
]
}
8 changes: 7 additions & 1 deletion examples/gcp-import-gke-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ provider "kubernetes" {

### Deploy Ocean Controller Pod into Cluster ###
module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
source = "spotinst/ocean-controller/spotinst"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -56,4 +57,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = spotinst_ocean_gke_import.ocean.id

depends_on = [
spotinst_ocean_gke_import.ocean,
module.ocean-controller,
]
}
7 changes: 6 additions & 1 deletion examples/import-eks-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ provider "kubernetes" {

module "ocean-controller" {
source = "spotinst/ocean-controller/spotinst"
version = "0.41.0"
version = "0.43.0"

spotinst_token = var.spotinst_token
spotinst_account = var.spotinst_account
Expand All @@ -63,4 +63,9 @@ module "ocean-spark" {
source = "../.."

ocean_cluster_id = module.ocean-aws-k8s.ocean_id

depends_on = [
module.ocean-aws-k8s,
module.ocean-controller,
]
}

0 comments on commit 1f9a61d

Please sign in to comment.