Skip to content

Commit

Permalink
Get rid of dependency to btp-operator's secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Nov 29, 2024
1 parent 9431143 commit 69f2bd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion examples/kyma-on-btp-new-sa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module "kyma" {
BTP_NEW_SUBACCOUNT_NAME = var.BTP_NEW_SUBACCOUNT_NAME
BTP_KYMA_REGION = var.BTP_KYMA_REGION
BTP_NEW_SUBACCOUNT_REGION = var.BTP_NEW_SUBACCOUNT_REGION
BTP_KYMA_MODULES = var.BTP_KYMA_MODULES
BTP_KYMA_MODULES = []
BTP_KYMA_CUSTOM_ADMINISTRATORS = var.BTP_KYMA_CUSTOM_ADMINISTRATORS
BTP_KYMA_AUTOSCALER_MIN = 1
BTP_KYMA_AUTOSCALER_MAX = 2
Expand Down
22 changes: 0 additions & 22 deletions examples/kyma-on-btp-new-sa/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,6 @@ variable "BTP_KYMA_REGION" {
default = "westeurope"
}

variable "BTP_KYMA_MODULES" {
type = list(object({
name = string
channel = string
}))
default = [
{
name = "istio"
channel = "fast"
},
{
name = "api-gateway"
channel = "fast"
},
{
name = "btp-operator"
channel = "fast"
}
]
description = "The list of kyma modules to install"
}

variable "BTP_KYMA_CUSTOM_ADMINISTRATORS" {
type = list(string)
default = []
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ resource "terraform_data" "wait-for-kyma-readiness" {
kubectl wait --for condition=established crd/kymas.operator.kyma-project.io --kubeconfig $KUBECONFIG
while ! kubectl get kyma default -n kyma-system --kubeconfig $KUBECONFIG; do echo "Waiting for default kyma CR..."; sleep 1; done
kubectl wait --for='jsonpath={.status.state}=Ready' kymas.operator.kyma-project.io/default -n kyma-system --kubeconfig $KUBECONFIG --timeout=480s
while ! kubectl get secret sap-btp-operator-clusterid -n kyma-system --kubeconfig $KUBECONFIG; do echo "Waiting for sap-btp-operator-clusterid..."; sleep 1; done
kubectl get secret sap-btp-operator-clusterid -n kyma-system -ojsonpath={.data.INITIAL_CLUSTER_ID} --kubeconfig $KUBECONFIG > cluster_id.txt
while ! kubectl get secret sap-btp-manager -n kyma-system --kubeconfig $KUBECONFIG; do echo "Waiting for sap-btp-manager..."; sleep 1; done
kubectl get secret sap-btp-manager -n kyma-system -ojsonpath={.data.cluster_id} --kubeconfig $KUBECONFIG > cluster_id.txt
while ! kubectl get cm shoot-info -n kube-system --kubeconfig $KUBECONFIG; do echo "Waiting for shoot-info cm..."; sleep 1; done
kubectl get cm shoot-info -n kube-system -ojsonpath={.data.domain} --kubeconfig $KUBECONFIG > domain.txt
)
Expand Down

0 comments on commit 69f2bd4

Please sign in to comment.