Skip to content

Commit

Permalink
[CES-73] Delete Beta AKS cluster (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Nov 13, 2024
1 parent 2b18985 commit 2ca102f
Show file tree
Hide file tree
Showing 90 changed files with 58 additions and 2,579 deletions.
45 changes: 2 additions & 43 deletions .devops/messages-code-review-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ parameters:
values:
- False
- True
- name: 'APP_BETA'
displayName: 'code-review APP folder@AKS BETA'
type: boolean
default: True
values:
- False
- True
- name: 'APP_PROD01'
displayName: 'code-review APP folder@AKS PROD01'
type: boolean
Expand All @@ -36,10 +29,6 @@ parameters:

variables:
TIME_OUT: 30
AKS_PLATFORM_BETA_PROD_NAME: '$(TF_AKS_PLATFORM_BETA_PROD_NAME)'
BETA_AKS_APISERVER_URL: '$(TF_BETA_AKS_APISERVER_URL)'
BETA_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_CACRT)'
BETA_AKS_AZURE_DEVOPS_SA_TOKEN: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_TOKEN)'
AKS_PLATFORM_PROD01_PROD_NAME: '$(TF_AKS_PLATFORM_PROD01_PROD_NAME)'
PROD01_AKS_APISERVER_URL: '$(TF_PROD01_AKS_APISERVER_URL)'
PROD01_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_PROD01_AKS_AZURE_DEVOPS_SA_CACRT)'
Expand Down Expand Up @@ -84,39 +73,9 @@ stages:
#
# APP
#
- stage: tf_plan_app_on_aks_beta
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_BETA}}, true))
pool:
name: io-prod-linux
jobs:
- job: tf_plan_app_on_aks_beta
timeoutInMinutes: $[variables.TIME_OUT]
strategy:
parallel: 1
steps:
- checkout: self
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# Run terraform plan messages-app
- template: templates/terraform-plan/template.yaml@terraform
parameters:
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/messages-app'
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
- stage: tf_plan_app_on_aks_on_prod01
dependsOn: [tf_plan_common_on_prod, tf_plan_app_on_aks_beta]
condition: and(
or
(
in(dependencies.tf_plan_common_on_prod.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
in(dependencies.tf_plan_app_on_aks_beta.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
),
eq(${{parameters.APP_PROD01}}, true))
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_PROD01}}, true))
pool:
name: io-prod-linux
jobs:
Expand Down
51 changes: 2 additions & 49 deletions .devops/messages-deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ parameters:
values:
- False
- True
- name: 'APP_BETA'
displayName: 'apply APP folder@AKS BETA'
type: boolean
default: True
values:
- False
- True
- name: 'APP_PROD01'
displayName: 'apply APP folder@AKS PROD01'
type: boolean
Expand All @@ -27,10 +20,6 @@ parameters:

variables:
TIME_OUT: 30
AKS_PLATFORM_BETA_PROD_NAME: '$(TF_AKS_PLATFORM_BETA_PROD_NAME)'
BETA_AKS_APISERVER_URL: '$(TF_BETA_AKS_APISERVER_URL)'
BETA_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_CACRT)'
BETA_AKS_AZURE_DEVOPS_SA_TOKEN: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_TOKEN)'
AKS_PLATFORM_PROD01_PROD_NAME: '$(TF_AKS_PLATFORM_PROD01_PROD_NAME)'
PROD01_AKS_APISERVER_URL: '$(TF_PROD01_AKS_APISERVER_URL)'
PROD01_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_PROD01_AKS_AZURE_DEVOPS_SA_CACRT)'
Expand Down Expand Up @@ -81,49 +70,13 @@ stages:
#
# APP
#
- stage: tf_apply_app_on_aks_beta
dependsOn: [tf_apply_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_BETA}}, true))
pool:
name: io-prod-linux
jobs:
- job: tf_apply_app_on_aks_beta
timeoutInMinutes: $[variables.TIME_OUT]
strategy:
parallel: 1
steps:
- checkout: self
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# 2. Run terraform plan messages-app
- template: templates/terraform-plan/template.yaml@terraform
parameters:
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/messages-app'
# 3. Run terraform apply
- template: templates/terraform-apply/template.yaml@terraform
parameters:
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/messages-app'

- stage: tf_apply_app_on_aks_on_prod01
dependsOn: [tf_apply_common_on_prod, tf_apply_app_on_aks_beta]
dependsOn: [tf_apply_common_on_prod]
condition: and(
or
(
in(dependencies.tf_apply_common_on_prod.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
in(dependencies.tf_apply_app_on_aks_beta.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
),
),
eq(${{parameters.APP_PROD01}}, true))
pool:
name: io-prod-linux
Expand Down
37 changes: 1 addition & 36 deletions .devops/payments-code-review-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ parameters:
values:
- False
- True
- name: 'APP_BETA'
displayName: 'code-review APP folder@AKS BETA'
type: boolean
default: True
values:
- False
- True
- name: 'APP_PROD01'
displayName: 'code-review APP folder@AKS PROD01'
type: boolean
Expand All @@ -36,10 +29,6 @@ parameters:

variables:
TIME_OUT: 30
AKS_PLATFORM_BETA_PROD_NAME: '$(TF_AKS_PLATFORM_BETA_PROD_NAME)'
BETA_AKS_APISERVER_URL: '$(TF_BETA_AKS_APISERVER_URL)'
BETA_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_CACRT)'
BETA_AKS_AZURE_DEVOPS_SA_TOKEN: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_TOKEN)'
AKS_PLATFORM_PROD01_PROD_NAME: '$(TF_AKS_PLATFORM_PROD01_PROD_NAME)'
PROD01_AKS_APISERVER_URL: '$(TF_PROD01_AKS_APISERVER_URL)'
PROD01_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_PROD01_AKS_AZURE_DEVOPS_SA_CACRT)'
Expand Down Expand Up @@ -84,32 +73,8 @@ stages:
#
# APP
#
- stage: tf_plan_app_on_aks_beta
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_BETA}}, true))
pool:
name: io-prod-linux
jobs:
- job: tf_plan_app_on_aks_beta
timeoutInMinutes: $[variables.TIME_OUT]
strategy:
parallel: 1
steps:
- checkout: self
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# Run terraform plan payments-app
- template: templates/terraform-plan/template.yaml@terraform
parameters:
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/payments-app'
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
- stage: tf_plan_app_on_aks_on_prod01
dependsOn: [tf_plan_app_on_aks_beta]
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_PROD01}}, true))
pool:
name: io-prod-linux
Expand Down
48 changes: 1 addition & 47 deletions .devops/payments-deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ parameters:
values:
- False
- True
- name: 'APP_BETA'
displayName: 'apply APP folder@AKS BETA'
type: boolean
default: True
values:
- False
- True
- name: 'APP_PROD01'
displayName: 'apply APP folder@AKS PROD01'
type: boolean
Expand All @@ -27,10 +20,6 @@ parameters:

variables:
TIME_OUT: 30
AKS_PLATFORM_BETA_PROD_NAME: '$(TF_AKS_PLATFORM_BETA_PROD_NAME)'
BETA_AKS_APISERVER_URL: '$(TF_BETA_AKS_APISERVER_URL)'
BETA_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_CACRT)'
BETA_AKS_AZURE_DEVOPS_SA_TOKEN: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_TOKEN)'
AKS_PLATFORM_PROD01_PROD_NAME: '$(TF_AKS_PLATFORM_PROD01_PROD_NAME)'
PROD01_AKS_APISERVER_URL: '$(TF_PROD01_AKS_APISERVER_URL)'
PROD01_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_PROD01_AKS_AZURE_DEVOPS_SA_CACRT)'
Expand Down Expand Up @@ -81,43 +70,8 @@ stages:
#
# APP
#
- stage: tf_apply_app_on_aks_beta
dependsOn: [tf_apply_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_BETA}}, true))
pool:
name: io-prod-linux
jobs:
- job: tf_apply_app_on_aks_beta
timeoutInMinutes: $[variables.TIME_OUT]
strategy:
parallel: 1
steps:
- checkout: self
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# 2. Run terraform plan payments-app
- template: templates/terraform-plan/template.yaml@terraform
parameters:
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/payments-app'
# 3. Run terraform apply
- template: templates/terraform-apply/template.yaml@terraform
parameters:
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/payments-app'

- stage: tf_apply_app_on_aks_on_prod01
dependsOn: [tf_apply_app_on_aks_beta]
dependsOn: [tf_apply_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_PROD01}}, true))
pool:
name: io-prod-linux
Expand Down
37 changes: 1 addition & 36 deletions .devops/profile-code-review-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ parameters:
values:
- False
- True
- name: 'APP_BETA'
displayName: 'code-review APP folder@AKS BETA'
type: boolean
default: True
values:
- False
- True
- name: 'APP_PROD01'
displayName: 'code-review APP folder@AKS PROD01'
type: boolean
Expand All @@ -36,10 +29,6 @@ parameters:

variables:
TIME_OUT: 30
AKS_PLATFORM_BETA_PROD_NAME: '$(TF_AKS_PLATFORM_BETA_PROD_NAME)'
BETA_AKS_APISERVER_URL: '$(TF_BETA_AKS_APISERVER_URL)'
BETA_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_CACRT)'
BETA_AKS_AZURE_DEVOPS_SA_TOKEN: '$(TF_BETA_AKS_AZURE_DEVOPS_SA_TOKEN)'
AKS_PLATFORM_PROD01_PROD_NAME: '$(TF_AKS_PLATFORM_PROD01_PROD_NAME)'
PROD01_AKS_APISERVER_URL: '$(TF_PROD01_AKS_APISERVER_URL)'
PROD01_AKS_AZURE_DEVOPS_SA_CACRT: '$(TF_PROD01_AKS_AZURE_DEVOPS_SA_CACRT)'
Expand Down Expand Up @@ -84,32 +73,8 @@ stages:
#
# APP
#
- stage: tf_plan_app_on_aks_beta
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_BETA}}, true))
pool:
name: io-prod-linux
jobs:
- job: tf_plan_app_on_aks_beta
timeoutInMinutes: $[variables.TIME_OUT]
strategy:
parallel: 1
steps:
- checkout: self
# 1. Install terraform
- template: templates/terraform-setup/template.yaml@terraform
# Run terraform plan profile-app
- template: templates/terraform-plan/template.yaml@terraform
parameters:
ENVIRONMENT: "weu-beta"
WORKINGDIR: 'src/domains/profile-app'
AZURE_SERVICE_CONNECTION_NAME: PROD-IO-SERVICE-CONN
AKS_NAME: ${{ variables.AKS_PLATFORM_BETA_PROD_NAME }}
AKS_API_SERVER_URL: ${{ variables.BETA_AKS_APISERVER_URL }}
AKS_AZURE_DEVOPS_SA_CA_CRT: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_CACRT }}
AKS_AZURE_DEVOPS_SA_TOKEN: ${{ variables.BETA_AKS_AZURE_DEVOPS_SA_TOKEN }}
- stage: tf_plan_app_on_aks_on_prod01
dependsOn: [tf_plan_app_on_aks_beta]
dependsOn: [tf_plan_common_on_prod]
condition: and(succeeded(), eq(${{parameters.APP_PROD01}}, true))
pool:
name: io-prod-linux
Expand Down
Loading

0 comments on commit 2ca102f

Please sign in to comment.