Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit c1c18349 authored by Nicolas's avatar Nicolas
Browse files

refactoring: Add version in variable

parent a488790f
No related branches found
No related tags found
No related merge requests found
Pipeline #3701 failed
...@@ -83,7 +83,6 @@ apply-gke: ...@@ -83,7 +83,6 @@ apply-gke:
gitlab-terraform init gitlab-terraform init
gitlab-terraform apply -auto-approve gitlab-terraform apply -auto-approve
gcloud-psc: gcloud-psc:
stage: psc stage: psc
needs: needs:
...@@ -134,6 +133,7 @@ check-elastic: ...@@ -134,6 +133,7 @@ check-elastic:
variables: variables:
TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/elastic TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/elastic
TF_VAR_ec_apikey: $EC_API_KEY TF_VAR_ec_apikey: $EC_API_KEY
TF_var_ec_version: $EC_VERSION
before_script: before_script:
- | - |
export TF_VAR_psc_connection_id=$(cat ${CI_PROJECT_DIR}/pscConnectionId.env | grep GCP_PSC_CONNECTION_ID | cut -d = -f2) export TF_VAR_psc_connection_id=$(cat ${CI_PROJECT_DIR}/pscConnectionId.env | grep GCP_PSC_CONNECTION_ID | cut -d = -f2)
......
...@@ -15,7 +15,7 @@ provider "ec" { ...@@ -15,7 +15,7 @@ provider "ec" {
} }
data "ec_stack" "stack" { data "ec_stack" "stack" {
version_regex = "7.16.1" version_regex = var.ec_version
region = var.region region = var.region
} }
......
...@@ -16,3 +16,7 @@ variable "cluster_name" { ...@@ -16,3 +16,7 @@ variable "cluster_name" {
type = string type = string
default = "elastic-for-gke" default = "elastic-for-gke"
} }
variable "ec_version" {
type = string
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment