Skip to content

Commit

Permalink
Apply wait for cluster ready options in examples (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
apasyniuk authored Aug 1, 2023
1 parent 0b057a3 commit 64cc875
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/aks/aks_cluster/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module "castai-aks-cluster" {
source = "castai/aks/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
aks_cluster_region = var.cluster_region
Expand Down
4 changes: 3 additions & 1 deletion examples/aks/aks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ provider "helm" {
module "castai-aks-cluster" {
source = "castai/aks/castai"

api_url = var.castai_api_url
api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
aks_cluster_region = var.cluster_region
Expand Down
2 changes: 2 additions & 0 deletions examples/aks/aks_cluster_azure_cni/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module "castai-aks-cluster" {
source = "castai/aks/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aks_cluster_name = var.cluster_name
aks_cluster_region = var.cluster_region
Expand Down
2 changes: 2 additions & 0 deletions examples/eks/eks_cluster_assumerole/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ resource "castai_eks_clusterid" "cluster_id" {
module "castai-eks-cluster" {
source = "castai/eks-cluster/castai"
api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
aws_cluster_region = var.cluster_region
Expand Down
2 changes: 2 additions & 0 deletions examples/eks/eks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ module "castai-eks-cluster" {
source = "castai/eks-cluster/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
aws_cluster_region = var.cluster_region
Expand Down
2 changes: 2 additions & 0 deletions examples/eks/eks_cluster_custom_iam/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module "castai-eks-cluster" {
source = "castai/eks-cluster/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

aws_account_id = data.aws_caller_identity.current.account_id
aws_cluster_region = var.cluster_region
Expand Down
2 changes: 2 additions & 0 deletions examples/gke/gke_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module "castai-gke-cluster" {
source = "castai/gke-cluster/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true

project_id = var.project_id
gke_cluster_name = var.cluster_name
Expand Down
2 changes: 2 additions & 0 deletions examples/gke/gke_cluster_zonal_autoscaler/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module "castai-gke-cluster" {
source = "castai/gke-cluster/castai"

api_url = var.castai_api_url
castai_api_token = var.castai_api_token
wait_for_cluster_ready = true
project_id = var.project_id
gke_cluster_name = var.cluster_name
gke_cluster_location = module.gke.location
Expand Down

0 comments on commit 64cc875

Please sign in to comment.