From aeeee98808a34696175a812669bc95d521e1288a Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:48:49 +0200 Subject: [PATCH] fix: Removed file not needed (#1) --- .devops/selfcare-ar-deploy-pipelines.yml | 102 ------------------ .devops/selfcare-pnpg-deploy-pipelines.yml | 89 --------------- .flake8 | 8 -- .../workflows/aks-helm-devopslab-diego.yml | 90 ---------------- .github/workflows/aks-helm-pagopa-afm-dev.yml | 90 ---------------- .github/workflows/pr-title.yml | 2 +- .identity/.terraform.lock.hcl | 56 ---------- .identity/01_github_runner.tf | 65 ----------- .identity/99_main.tf | 32 ------ .identity/99_main.tf.ci | 30 ------ .identity/99_outputs.tf | 15 --- .identity/99_variables.tf | 69 ------------ .identity/README.md | 53 --------- .identity/env/devopslab_dev/backend.ini | 1 - .identity/env/devopslab_dev/backend.tfvars | 4 - .identity/env/devopslab_dev/terraform.tfvars | 28 ----- .identity/env/pagopa_afm_dev/backend.ini | 1 - .identity/env/pagopa_afm_dev/backend.tfvars | 4 - .identity/env/pagopa_afm_dev/terraform.tfvars | 29 ----- .identity/terraform.sh | 64 ----------- .vscode/fastapi.code-workspace | 11 -- .vscode/launch.json | 38 ------- .vscode/settings.json | 6 -- app/main.py | 25 ----- core-dns/Corefile | 9 ++ helm/devopslab/diego/.helmignore | 23 ---- helm/devopslab/diego/Chart.lock | 6 -- helm/devopslab/diego/Chart.yaml | 10 -- helm/devopslab/diego/values-dev.yaml | 93 ---------------- helm/devopslab/diego/values-prod.yaml | 0 helm/devopslab/diego/values-uat.yaml | 0 helm/selfcare/ar/.helmignore | 23 ---- helm/selfcare/ar/Chart.lock | 6 -- helm/selfcare/ar/Chart.yaml | 10 -- helm/selfcare/ar/values-dev.yaml | 93 ---------------- helm/selfcare/ar/values-prod.yaml | 0 helm/selfcare/ar/values-uat.yaml | 0 helm/selfcare/pnpg/.helmignore | 23 ---- helm/selfcare/pnpg/Chart.lock | 6 -- helm/selfcare/pnpg/Chart.yaml | 10 -- helm/selfcare/pnpg/values-dev.yaml | 93 ---------------- helm/selfcare/pnpg/values-prod.yaml | 93 ---------------- helm/selfcare/pnpg/values-uat.yaml | 93 ---------------- 43 files changed, 10 insertions(+), 1493 deletions(-) delete mode 100644 .devops/selfcare-ar-deploy-pipelines.yml delete mode 100644 .devops/selfcare-pnpg-deploy-pipelines.yml delete mode 100644 .flake8 delete mode 100644 .github/workflows/aks-helm-devopslab-diego.yml delete mode 100644 .github/workflows/aks-helm-pagopa-afm-dev.yml delete mode 100644 .identity/.terraform.lock.hcl delete mode 100644 .identity/01_github_runner.tf delete mode 100644 .identity/99_main.tf delete mode 100644 .identity/99_main.tf.ci delete mode 100644 .identity/99_outputs.tf delete mode 100644 .identity/99_variables.tf delete mode 100644 .identity/README.md delete mode 100644 .identity/env/devopslab_dev/backend.ini delete mode 100644 .identity/env/devopslab_dev/backend.tfvars delete mode 100644 .identity/env/devopslab_dev/terraform.tfvars delete mode 100644 .identity/env/pagopa_afm_dev/backend.ini delete mode 100644 .identity/env/pagopa_afm_dev/backend.tfvars delete mode 100644 .identity/env/pagopa_afm_dev/terraform.tfvars delete mode 100755 .identity/terraform.sh delete mode 100644 .vscode/fastapi.code-workspace delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/settings.json delete mode 100644 app/main.py create mode 100644 core-dns/Corefile delete mode 100644 helm/devopslab/diego/.helmignore delete mode 100644 helm/devopslab/diego/Chart.lock delete mode 100644 helm/devopslab/diego/Chart.yaml delete mode 100644 helm/devopslab/diego/values-dev.yaml delete mode 100644 helm/devopslab/diego/values-prod.yaml delete mode 100644 helm/devopslab/diego/values-uat.yaml delete mode 100644 helm/selfcare/ar/.helmignore delete mode 100644 helm/selfcare/ar/Chart.lock delete mode 100644 helm/selfcare/ar/Chart.yaml delete mode 100644 helm/selfcare/ar/values-dev.yaml delete mode 100644 helm/selfcare/ar/values-prod.yaml delete mode 100644 helm/selfcare/ar/values-uat.yaml delete mode 100644 helm/selfcare/pnpg/.helmignore delete mode 100644 helm/selfcare/pnpg/Chart.lock delete mode 100644 helm/selfcare/pnpg/Chart.yaml delete mode 100644 helm/selfcare/pnpg/values-dev.yaml delete mode 100644 helm/selfcare/pnpg/values-prod.yaml delete mode 100644 helm/selfcare/pnpg/values-uat.yaml diff --git a/.devops/selfcare-ar-deploy-pipelines.yml b/.devops/selfcare-ar-deploy-pipelines.yml deleted file mode 100644 index 5182766..0000000 --- a/.devops/selfcare-ar-deploy-pipelines.yml +++ /dev/null @@ -1,102 +0,0 @@ -# Azure DevOps pipeline to release a new version and deploy to production. - -# Only manual activations are intended -trigger: none -pr: none - -parameters: - - name: environment - displayName: Target Environment - type: string - default: DEV - values: - - DEV - - UAT - - PROD - - name: version - displayName: Version of the docker image - type: string - default: v1.0.0 - -variables: - vmImageNameDefault: "ubuntu-latest" - deployNamespace: "$(DEPLOY_NAMESPACE)" - - ${{ if eq(parameters['environment'], 'DEV') }}: - environment: "DEV" - dockerRegistryServiceConnection: "$(DEV_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(DEV_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(DEV_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(DEV_AGENT_POOL) - ${{ if eq(parameters['environment'], 'UAT') }}: - environment: "UAT" - dockerRegistryServiceConnection: "$(UAT_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(UAT_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(UAT_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(UAT_AGENT_POOL) - ${{ if eq(parameters['environment'], 'PROD') }}: - environment: "PROD" - dockerRegistryServiceConnection: "$(PROD_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(PROD_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(PROD_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(PROD_AGENT_POOL) - -pool: - vmImage: "ubuntu-latest" - -resources: - - repo: self - -stages: - - stage: "Deploy" - displayName: "Deploy_to_${{ parameters.environment }}" - dependsOn: [] #"Publish_artifact_helm" - condition: succeeded() - jobs: - - deployment: "Deploy_to_${{ parameters.environment }}" - displayName: "Deploy_to_${{ parameters.environment }}" - pool: - name: $(selfHostedAgentPool) - environment: "${{ parameters.environment }}" - strategy: - runOnce: - deploy: - steps: - - checkout: self - - task: Bash@3 - displayName: Get POM version - name: getpomversion - condition: succeeded() - inputs: - targetType: "inline" - script: | - pwd - printenv - ls -la - ls -la $(Pipeline.Workspace) - ls -la $(System.DefaultWorkingDirectory) - failOnStderr: true - - task: Bash@3 - name: helm_dependency_build - displayName: Helm dependency build - inputs: - workingDirectory: '$(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace)' - targetType: 'inline' - script: | - helm repo add pagopa-microservice https://pagopa.github.io/aks-microservice-chart-blueprint - helm dep build - failOnStderr: true - - task: HelmDeploy@0 - displayName: Helm upgrade - inputs: - kubernetesServiceEndpoint: ${{ variables.kubernetesServiceConnection }} - namespace: "$(deployNamespace)" - command: upgrade - chartType: filepath - chartName: $(K8S_IMAGE_REPOSITORY_NAME) - releaseName: $(K8S_IMAGE_REPOSITORY_NAME) - chartPath: $(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace) - valueFile: "$(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace)/values-${{ lower(variables.environment) }}.yaml" - install: true - waitForExecution: true - arguments: "--timeout 2m0s" diff --git a/.devops/selfcare-pnpg-deploy-pipelines.yml b/.devops/selfcare-pnpg-deploy-pipelines.yml deleted file mode 100644 index aa63c57..0000000 --- a/.devops/selfcare-pnpg-deploy-pipelines.yml +++ /dev/null @@ -1,89 +0,0 @@ -# Azure DevOps pipeline to release a new version and deploy to production. - -# Only manual activations are intended -trigger: none -pr: none - -parameters: - - name: environment - displayName: Target Environment - type: string - default: DEV - values: - - DEV - - UAT - - PROD - - name: version - displayName: Version of the docker image - type: string - default: v1.0.0 - -variables: - vmImageNameDefault: "ubuntu-latest" - deployNamespace: "$(DEPLOY_NAMESPACE)" - - ${{ if eq(parameters['environment'], 'DEV') }}: - environment: "DEV" - dockerRegistryServiceConnection: "$(DEV_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(DEV_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(DEV_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(DEV_AGENT_POOL) - ${{ if eq(parameters['environment'], 'UAT') }}: - environment: "UAT" - dockerRegistryServiceConnection: "$(UAT_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(UAT_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(UAT_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(UAT_AGENT_POOL) - ${{ if eq(parameters['environment'], 'PROD') }}: - environment: "PROD" - dockerRegistryServiceConnection: "$(PROD_CONTAINER_REGISTRY_SERVICE_CONN)" - kubernetesServiceConnection: "$(PROD_KUBERNETES_SERVICE_CONN)" - containerRegistry: "$(PROD_CONTAINER_REGISTRY_NAME)" - selfHostedAgentPool: $(PROD_AGENT_POOL) - -pool: - vmImage: "ubuntu-latest" - -resources: - - repo: self - -stages: - - stage: "Deploy" - displayName: "Deploy_to_${{ parameters.environment }}" - dependsOn: [] #"Publish_artifact_helm" - condition: succeeded() - jobs: - - deployment: "Deploy_to_${{ parameters.environment }}" - displayName: "Deploy_to_${{ parameters.environment }}" - pool: - name: $(selfHostedAgentPool) - environment: "${{ parameters.environment }}" - strategy: - runOnce: - deploy: - steps: - - checkout: self - - task: Bash@3 - name: helm_dependency_build - displayName: Helm dependency build - inputs: - workingDirectory: '$(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace)' - targetType: 'inline' - script: | - helm repo add pagopa-microservice https://pagopa.github.io/aks-microservice-chart-blueprint - helm dep build - failOnStderr: true - - task: HelmDeploy@0 - displayName: Helm upgrade - inputs: - kubernetesServiceEndpoint: ${{ variables.kubernetesServiceConnection }} - namespace: "$(deployNamespace)" - command: upgrade - chartType: filepath - chartName: $(K8S_IMAGE_REPOSITORY_NAME) - releaseName: $(K8S_IMAGE_REPOSITORY_NAME) - chartPath: $(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace) - valueFile: "$(System.DefaultWorkingDirectory)/helm/selfcare/$(deployNamespace)/values-${{ lower(variables.environment) }}.yaml" - install: true - waitForExecution: true - arguments: "--timeout 2m0s" diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 7c3a63b..0000000 --- a/.flake8 +++ /dev/null @@ -1,8 +0,0 @@ -[flake8] -max-line-length = 120 -exclude = .venv, docs, .vscode, pychache, .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache -ignore = E501, W503, E226, E203, W503, W293, I004, E266, W391, W292, I001 -# E501: Line too long -# W503: Line break occurred before binary operator -# E226: Missing white space around arithmetic operator -# I001: Import wrong positions diff --git a/.github/workflows/aks-helm-devopslab-diego.yml b/.github/workflows/aks-helm-devopslab-diego.yml deleted file mode 100644 index d13f41b..0000000 --- a/.github/workflows/aks-helm-devopslab-diego.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Helm@devopslab/diego - -on: - workflow_dispatch: - inputs: - environment: - required: true - description: The name of the environment where to deploy - type: environment - secrets: - token: - required: true - description: Github Token - -env: - NAMESPACE: diego - APP_NAME: diegoappstatus - -permissions: - id-token: write - contents: read - -jobs: - create_runner: - name: Create Runner - runs-on: ubuntu-22.04 - environment: ${{ inputs.environment }} - outputs: - runner_name: ${{ steps.create_github_runner.outputs.runner_name }} - steps: - - name: Create GitHub Runner - id: create_github_runner - # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-create-action - uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-create-action@0ee2f58fd46d10ac7f00bce4304b98db3dbdbe9a - with: - client_id: ${{ secrets.AZURE_CLIENT_ID }} - tenant_id: ${{ secrets.AZURE_TENANT_ID }} - subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - container_app_environment_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_NAME }} - resource_group_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} - pat_token: ${{ secrets.BOT_TOKEN }} - # self_hosted_runner_image_tag: "v1.4.0" - - deploy_helm: - name: Deploy on AKS - runs-on: [ self-hosted, "${{ needs.create_runner.outputs.runner_name }}" ] - needs: [ create_runner ] - environment: ${{ inputs.environment }} - steps: - - name: Checkout - id: checkout - # from https://github.com/actions/checkout/commits/main - uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Deploy Aks blueprint chart - # from https://github.com/pagopa/github-actions-template - uses: pagopa/github-actions-template/aks-blueprint-helm-deploy@dd79d69bbc777cd4f79e14e332267b9c728e2d63 - with: - namespace: ${{ env.NAMESPACE }} - release-name: ${{ env.APP_NAME }} - helm-upgrade-options: "--debug" - chart-path: "helm/devopslab/diego" - values-file-name: values-${{ vars.ENV }}.yaml - aks-name: ${{ vars.AKS_NAME }} - aks-resource-group: ${{ vars.AKS_RESOURCE_GROUP }} - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - cleanup_runner: - name: Cleanup Runner - if: always() - runs-on: ubuntu-22.04 - environment: ${{ inputs.environment }} - needs: [create_runner, deploy_helm] - steps: - - name: Cleanup GitHub Runner - id: cleanup_github_runner - # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-cleanup-action - uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-cleanup-action@0ee2f58fd46d10ac7f00bce4304b98db3dbdbe9a - with: - client_id: ${{ secrets.AZURE_CLIENT_ID }} - tenant_id: ${{ secrets.AZURE_TENANT_ID }} - subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - resource_group_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} - runner_name: ${{ needs.create_runner.outputs.runner_name }} - pat_token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/aks-helm-pagopa-afm-dev.yml b/.github/workflows/aks-helm-pagopa-afm-dev.yml deleted file mode 100644 index b981898..0000000 --- a/.github/workflows/aks-helm-pagopa-afm-dev.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Helm@pagopa-afm-dev - -on: - workflow_dispatch: - inputs: - environment: - required: true - description: The name of the environment where to deploy - type: environment - secrets: - token: - required: true - description: Github Token - -env: - NAMESPACE: ${{ vars.DOMAIN }} - APP_NAME: app-status - -permissions: - id-token: write - contents: read - -jobs: - create_runner: - name: Create Runner - runs-on: ubuntu-22.04 - environment: ${{ inputs.environment }} - outputs: - runner_name: ${{ steps.create_github_runner.outputs.runner_name }} - steps: - - name: Create GitHub Runner - id: create_github_runner - # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-create-action - uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-create-action@main - with: - client_id: ${{ secrets.AZURE_CLIENT_ID }} - tenant_id: ${{ secrets.AZURE_TENANT_ID }} - subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - container_app_environment_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_NAME }} - resource_group_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} - pat_token: ${{ secrets.BOT_TOKEN }} - # self_hosted_runner_image_tag: "v1.4.0" - - deploy_helm: - name: Deploy on AKS - runs-on: [ self-hosted, "${{ needs.create_runner.outputs.runner_name }}" ] - needs: [ create_runner ] - environment: ${{ inputs.environment }} - steps: - - name: Checkout - id: checkout - # from https://github.com/actions/checkout/commits/main - uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Deploy Aks blueprint chart - # from https://github.com/pagopa/github-actions-template - uses: pagopa/github-actions-template/aks-blueprint-helm-deploy@dd79d69bbc777cd4f79e14e332267b9c728e2d63 - with: - namespace: ${{ env.NAMESPACE }} - release-name: ${{ env.APP_NAME }} - helm-upgrade-options: "--debug" - chart-path: "helm/devopslab/diego" - values-file-name: values-${{ vars.ENV }}.yaml - aks-name: ${{ vars.AKS_NAME }} - aks-resource-group: ${{ vars.AKS_RESOURCE_GROUP }} - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - cleanup_runner: - name: Cleanup Runner - if: always() - runs-on: ubuntu-22.04 - environment: ${{ inputs.environment }} - needs: [create_runner, deploy_helm] - steps: - - name: Cleanup GitHub Runner - id: cleanup_github_runner - # from https://github.com/pagopa/eng-github-actions-iac-template/tree/main/azure/github-self-hosted-runner-azure-cleanup-action - uses: pagopa/eng-github-actions-iac-template/azure/github-self-hosted-runner-azure-cleanup-action@0ee2f58fd46d10ac7f00bce4304b98db3dbdbe9a - with: - client_id: ${{ secrets.AZURE_CLIENT_ID }} - tenant_id: ${{ secrets.AZURE_TENANT_ID }} - subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - resource_group_name: ${{ vars.AZURE_CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} - runner_name: ${{ needs.create_runner.outputs.runner_name }} - pat_token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 3262661..0ebfea1 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -31,7 +31,7 @@ jobs: requireScope: false # Configure additional validation for the subject based on a regex. # This example ensures the subject starts with an uppercase character. - subjectPattern: ^[A-Z].+$ + subjectPattern: ^[A-Zaz].+$ # If `subjectPattern` is configured, you can use this property to override # the default error message that is shown when the pattern doesn't match. # The variables `subject` and `title` can be used within the message. diff --git a/.identity/.terraform.lock.hcl b/.identity/.terraform.lock.hcl deleted file mode 100644 index 067fdb6..0000000 --- a/.identity/.terraform.lock.hcl +++ /dev/null @@ -1,56 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/hashicorp/azuread" { - version = "2.30.0" - constraints = "2.30.0" - hashes = [ - "h1:MimDtBEnmdMwbriZQzga/kCjDZ1G0+QLVQjrYdBEpdc=", - "h1:Uw4TcmJBEJ71h+oCwwidlkk5jFpyFRDPAFCMs/bT/cw=", - "h1:WnSPiREAFwnBUKREokMdHQ8Cjs47MzvS9pG8VS1ktec=", - "h1:xzNKb+lWPsBTxJiaAJ8ECZnY+D6QNM9tA1qpEncIba0=", - "zh:1c3e89cf19118fc07d7b04257251fc9897e722c16e0a0df7b07fcd261f8c12e7", - "zh:2e62c193030e04ebb10cc0526119cf69824bf2d7e4ea5a2f45bd5d5fb7221d36", - "zh:2f3c7a35257332d68b778cefc5201a5f044e4914dd03794a4da662ddfe756483", - "zh:35d0d3a1b58fdb8b8c4462d6b7e7016042da43ea9cc734ce897f52a73407d9b0", - "zh:47ede0cd0206ec953d40bf4a80aa6e59af64e26cbbd877614ac424533dbb693b", - "zh:48c190307d4d42ea67c9b8cc544025024753f46cef6ea64db84735e7055a72da", - "zh:6fff9b2c6a962252a70a15b400147789ab369b35a781e9d21cce3804b04d29af", - "zh:7646980cf3438bff29c91ffedb74458febbb00a996638751fbd204ab1c628c9b", - "zh:77aa2fa7ca6d5446afa71d4ff83cb87b70a2f3b72110fc442c339e8e710b2928", - "zh:e20b2b2c37175b89dd0db058a096544d448032e28e3b56e2db368343533a9684", - "zh:eab175b1dfe9865ad9404dccb6d5542899f8c435095aa7c679314b811c717ce7", - "zh:efc862bd78c55d2ff089729e2a34c1831ab4b0644fc11b36ee4ebed00a4797ba", - ] -} - -provider "registry.terraform.io/hashicorp/azurerm" { - version = "3.45.0" - constraints = "3.45.0" - hashes = [ - "h1:4BOYXFMiLk4ozEZHUhquRnE5urebcWvaCUV3uys646o=", - "h1:V3CLlXij3vZzxw51hvCBnqriy73llPG21NjO+7sLr+U=", - "h1:VQWxV5+qelZeUCjpdLvZ7iAom4RvG+fVVgK6ELvw/cs=", - "h1:gQLNY1I5e9kcle1p/VYEWb0eteQ/t5kUfnqVu2/GBNY=", - "zh:04c5dbb8845366ce5eb0dc2d55e151270cc2c0ace20993867fdae9af43b953ad", - "zh:2589585da615ccae341400d45d672ee3fae413fdd88449b5befeff12a85a44b2", - "zh:603869ed98fff5d9bf841a51afd9e06b628533c59356c8433aef4b15df63f5f7", - "zh:853fecab9c987b6772c8d9aa10362675f6c626b60ebc7118aa33ce91366fcc38", - "zh:979848c45e8e058862c36ba3a661457f7c81ef26ebb6634f479600de9c203d65", - "zh:9b512c8588ecc9c1b803b746a3a8517422561a918f0dfb0faaa707ed53ef1760", - "zh:a9601ffb58043426bcff1220662d6d137f0b2857a24f2dcf180aeac2c9cea688", - "zh:d52d2652328f0ed3ba202561d88cb9f43c174edbfaab1abf69f772125dbfe15e", - "zh:d92d91ca597c47f575bf3ae129f4b723be9b7dcb71b906ec6ec740fac29b1aaa", - "zh:ded73b730e4197b70fda9e83447c119f92f75dc37be3ff2ed45730c8f0348c28", - "zh:ec37ac332d50f8ca5827f97198346b0f8ecbf470e2e3ba1e027bb389d826b902", - "zh:f569b65999264a9416862bca5cd2a6177d94ccb0424f3a4ef424428912b9cb3c", - ] -} - -provider "registry.terraform.io/integrations/github" { - version = "5.18.3" - constraints = "5.18.3" - hashes = [ - "h1:rv3mwpUeJ0n13sY+KZMI25WAVCSeipX4n8JMWKD1XcE=", - ] -} diff --git a/.identity/01_github_runner.tf b/.identity/01_github_runner.tf deleted file mode 100644 index 7ae6a4f..0000000 --- a/.identity/01_github_runner.tf +++ /dev/null @@ -1,65 +0,0 @@ -data "github_organization_teams" "all" { - root_teams_only = true - summary_only = true -} - -module "github_runner_aks" { - source = "git::https://github.com/pagopa/github-actions-tf-modules.git//app-github-runner-creator?ref=main" - - app_name = local.app_name - - subscription_id = data.azurerm_subscription.current.id - - github_org = var.github.org - github_repository = var.github.repository - github_environment_name = local.github_env_name - - container_app_github_runner_env_rg = var.container_app_github_runner_env_rg -} - -locals { - env_secrets = { - "AZURE_CLIENT_ID" : module.github_runner_aks.client_id, - "AZURE_TENANT_ID" : data.azurerm_client_config.current.tenant_id, - "AZURE_SUBSCRIPTION_ID" : data.azurerm_subscription.current.subscription_id, - } - env_variables = { - "AZURE_CONTAINER_APP_ENVIRONMENT_NAME" : var.container_app_github_runner_env_name, - "AZURE_CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME" : var.container_app_github_runner_env_rg, - "ENV" : var.env, - "AKS_NAME" : var.aks_name, - "AKS_RESOURCE_GROUP" : var.aks_resource_group, - "AZURE_AD_APPNAME" : local.app_name, - "DOMAIN": var.domain, - } -} - -resource "github_repository_environment" "github_repository_environment_runner" { - environment = local.github_env_name - repository = var.github.repository - deployment_branch_policy { - protected_branches = false - custom_branch_policies = true - } -} - -resource "github_actions_environment_secret" "github_environment_runner_secrets" { - for_each = local.env_secrets - repository = var.github.repository - environment = local.github_env_name - secret_name = each.key - plaintext_value = each.value - - depends_on = [ github_repository_environment.github_repository_environment_runner ] -} - -resource "github_actions_environment_variable" "github_environment_runner_variables" { - for_each = local.env_variables - repository = var.github.repository - environment = local.github_env_name - variable_name = each.key - value = each.value - - depends_on = [ github_repository_environment.github_repository_environment_runner ] - -} diff --git a/.identity/99_main.tf b/.identity/99_main.tf deleted file mode 100644 index 128de3a..0000000 --- a/.identity/99_main.tf +++ /dev/null @@ -1,32 +0,0 @@ -terraform { - required_version = ">=1.3.0" - - required_providers { - azuread = { - source = "hashicorp/azuread" - version = "2.30.0" - } - azurerm = { - source = "hashicorp/azurerm" - version = "3.45.0" - } - github = { - source = "integrations/github" - version = "5.18.3" - } - } - - backend "azurerm" {} -} - -provider "azurerm" { - features {} -} - -provider "github" { - owner = var.github.org -} - -data "azurerm_subscription" "current" {} - -data "azurerm_client_config" "current" {} diff --git a/.identity/99_main.tf.ci b/.identity/99_main.tf.ci deleted file mode 100644 index 8b47e83..0000000 --- a/.identity/99_main.tf.ci +++ /dev/null @@ -1,30 +0,0 @@ -terraform { - required_version = ">=1.3.0" - - required_providers { - azuread = { - source = "hashicorp/azuread" - version = "2.30.0" - } - azurerm = { - source = "hashicorp/azurerm" - version = "3.45.0" - } - github = { - source = "integrations/github" - version = "5.18.0" - } - } -} - -provider "azurerm" { - features {} -} - -provider "github" { - owner = var.github.org -} - -data "azurerm_subscription" "current" {} - -data "azurerm_client_config" "current" {} diff --git a/.identity/99_outputs.tf b/.identity/99_outputs.tf deleted file mode 100644 index 64c2fc1..0000000 --- a/.identity/99_outputs.tf +++ /dev/null @@ -1,15 +0,0 @@ -output "tenant_id" { - value = data.azurerm_client_config.current.tenant_id -} - -output "subscription_id" { - value = data.azurerm_subscription.current.subscription_id -} - -output "service_principal_github_action_name" { - value = module.github_runner_aks.display_name -} - -output "service_principal_github_action_client_id" { - value = module.github_runner_aks.client_id -} diff --git a/.identity/99_variables.tf b/.identity/99_variables.tf deleted file mode 100644 index f3262ee..0000000 --- a/.identity/99_variables.tf +++ /dev/null @@ -1,69 +0,0 @@ -locals { - product = "${var.prefix}-${var.env_short}" - app_name = "github-${var.github.org}-${var.github.repository}-${var.prefix}-${var.domain}-${var.env}-aks" - github_env_name = "${var.domain}-${var.env}" -} - -variable "prefix" { - type = string - validation { - condition = ( - length(var.prefix) <= 6 - ) - error_message = "Max length is 6 chars." - } -} - -variable "env" { - type = string - description = "Environment" -} - -variable "env_short" { - type = string - validation { - condition = ( - length(var.env_short) <= 1 - ) - error_message = "Max length is 1 chars." - } -} - -variable "domain" { - type = string - description = "Domain name" -} - -variable "github" { - type = object({ - org = string - repository = string - }) - description = "GitHub Organization and repository name" -} - -variable "github_token" { - type = string - sensitive = true - description = "GitHub Organization and repository name" -} - -variable "container_app_github_runner_env_name" { - type = string - description = "Container app env name dedicated for github runners" -} - -variable "container_app_github_runner_env_rg" { - type = string - description = "Container app resource group env dedicated for github runners" -} - -variable "aks_name" { - type = string - description = "Aks cluster name" -} - -variable "aks_resource_group" { - type = string - description = "Aks cluster resource group name" -} diff --git a/.identity/README.md b/.identity/README.md deleted file mode 100644 index a8bec34..0000000 --- a/.identity/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# .identity - - - -## Requirements - -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >=1.3.0 | -| [azuread](#requirement\_azuread) | 2.30.0 | -| [azurerm](#requirement\_azurerm) | 3.45.0 | -| [github](#requirement\_github) | 5.18.3 | - -## Modules - -| Name | Source | Version | -|------|--------|---------| -| [github\_runner\_aks](#module\_github\_runner\_aks) | ./modules/app-github-runner-aks | n/a | - -## Resources - -| Name | Type | -|------|------| -| [github_actions_environment_secret.github_environment_runner_secrets](https://registry.terraform.io/providers/integrations/github/5.18.3/docs/resources/actions_environment_secret) | resource | -| [github_actions_environment_variable.github_environment_runner_variables](https://registry.terraform.io/providers/integrations/github/5.18.3/docs/resources/actions_environment_variable) | resource | -| [github_repository_environment.github_repository_environment_runner](https://registry.terraform.io/providers/integrations/github/5.18.3/docs/resources/repository_environment) | resource | -| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/3.45.0/docs/data-sources/client_config) | data source | -| [azurerm_subscription.current](https://registry.terraform.io/providers/hashicorp/azurerm/3.45.0/docs/data-sources/subscription) | data source | -| [github_organization_teams.all](https://registry.terraform.io/providers/integrations/github/5.18.3/docs/data-sources/organization_teams) | data source | - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [aks\_name](#input\_aks\_name) | Aks cluster name | `string` | n/a | yes | -| [aks\_resource\_group](#input\_aks\_resource\_group) | Aks cluster resource group name | `string` | n/a | yes | -| [container\_app\_github\_runner\_env\_name](#input\_container\_app\_github\_runner\_env\_name) | Container app env name dedicated for github runners | `string` | n/a | yes | -| [container\_app\_github\_runner\_env\_rg](#input\_container\_app\_github\_runner\_env\_rg) | Container app resource group env dedicated for github runners | `string` | n/a | yes | -| [env](#input\_env) | Environment | `string` | n/a | yes | -| [env\_short](#input\_env\_short) | n/a | `string` | n/a | yes | -| [github](#input\_github) | GitHub Organization and repository name |
object({
org = string
repository = string
})
| n/a | yes | -| [github\_token](#input\_github\_token) | GitHub Organization and repository name | `string` | n/a | yes | -| [prefix](#input\_prefix) | n/a | `string` | n/a | yes | - -## Outputs - -| Name | Description | -|------|-------------| -| [service\_principal\_github\_action\_client\_id](#output\_service\_principal\_github\_action\_client\_id) | n/a | -| [service\_principal\_github\_action\_name](#output\_service\_principal\_github\_action\_name) | n/a | -| [subscription\_id](#output\_subscription\_id) | n/a | -| [tenant\_id](#output\_tenant\_id) | n/a | - diff --git a/.identity/env/devopslab_dev/backend.ini b/.identity/env/devopslab_dev/backend.ini deleted file mode 100644 index a017021..0000000 --- a/.identity/env/devopslab_dev/backend.ini +++ /dev/null @@ -1 +0,0 @@ -subscription=devopslab diff --git a/.identity/env/devopslab_dev/backend.tfvars b/.identity/env/devopslab_dev/backend.tfvars deleted file mode 100644 index 4fd58b6..0000000 --- a/.identity/env/devopslab_dev/backend.tfvars +++ /dev/null @@ -1,4 +0,0 @@ -resource_group_name = "io-infra-rg" -storage_account_name = "dvopladstinfraterraform" -container_name = "azurermstate" -key = "github-runner_devops-app-status.tfstate" diff --git a/.identity/env/devopslab_dev/terraform.tfvars b/.identity/env/devopslab_dev/terraform.tfvars deleted file mode 100644 index 96677f5..0000000 --- a/.identity/env/devopslab_dev/terraform.tfvars +++ /dev/null @@ -1,28 +0,0 @@ -prefix = "dvopla" -env_short = "d" -env = "dev" - -github = { - org = "pagopa" - repository = "devops-app-status" -} - -github_repository_environment_ci = { - protected_branches = false - custom_branch_policies = true -} - -github_repository_environment_cd = { - protected_branches = false - custom_branch_policies = true - reviewers_teams = ["infrastructure-admins"] -} - -# -# Container app -# -container_app_github_runner_env_name = "dvopla-d-neu-core-github-runner-cae" -container_app_github_runner_env_rg = "dvopla-d-neu-core-github-runner-rg" - -aks_name= "dvopla-d-neu-dev01-aks" -aks_resource_group= "dvopla-d-neu-dev01-aks-rg" diff --git a/.identity/env/pagopa_afm_dev/backend.ini b/.identity/env/pagopa_afm_dev/backend.ini deleted file mode 100644 index 2f65cda..0000000 --- a/.identity/env/pagopa_afm_dev/backend.ini +++ /dev/null @@ -1 +0,0 @@ -subscription=dev-pagopa diff --git a/.identity/env/pagopa_afm_dev/backend.tfvars b/.identity/env/pagopa_afm_dev/backend.tfvars deleted file mode 100644 index f023a10..0000000 --- a/.identity/env/pagopa_afm_dev/backend.tfvars +++ /dev/null @@ -1,4 +0,0 @@ -resource_group_name = "terraform-state-rg" -storage_account_name = "tfappdevpagopa" -container_name = "terraform-state" -key = "github-runner_devops-app-status_afm-dev.tfstate" diff --git a/.identity/env/pagopa_afm_dev/terraform.tfvars b/.identity/env/pagopa_afm_dev/terraform.tfvars deleted file mode 100644 index 0767a3a..0000000 --- a/.identity/env/pagopa_afm_dev/terraform.tfvars +++ /dev/null @@ -1,29 +0,0 @@ -prefix = "pagopa" -env_short = "d" -env = "dev" -domain = "afm" - -github = { - org = "pagopa" - repository = "devops-app-status" -} - -github_repository_environment_ci = { - protected_branches = false - custom_branch_policies = true -} - -github_repository_environment_cd = { - protected_branches = false - custom_branch_policies = true - reviewers_teams = ["infrastructure-admins"] -} - -# -# Container app -# -container_app_github_runner_env_name = "pagopa-d-weu-github-runner-cae" -container_app_github_runner_env_rg = "pagopa-d-weu-github-runner-rg" - -aks_name= "pagopa-d-neu-dev-aks" -aks_resource_group= "pagopa-d-neu-dev-aks-rg" diff --git a/.identity/terraform.sh b/.identity/terraform.sh deleted file mode 100755 index d14425b..0000000 --- a/.identity/terraform.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -set -e - -ACTION=$1 -ENV=$2 -shift 2 -other="$@" -# must be subscription in lower case -subscription="" -BACKEND_CONFIG_PATH="./env/${ENV}/backend.tfvars" - -if [ -z "$ACTION" ]; then - echo "[ERROR] Missed ACTION: init, apply, plan" - exit 0 -fi - -if [ -z "$ENV" ]; then - echo "[ERROR] ENV should be: dev, uat or prod." - exit 0 -fi - -# -# 🏁 Source & init shell -# - -# shellcheck source=/dev/null -source "./env/$ENV/backend.ini" - -# Subscription set -az account set -s "${subscription}" - -# if using cygwin, we have to transcode the WORKDIR -if [[ $WORKDIR == /cygdrive/* ]]; then - WORKDIR=$(cygpath -w $WORKDIR) -fi - -# Helm -export HELM_DEBUG=1 -export TF_VAR_github_token="${GITHUB_TOKEN}" - -# -# 🌎 Terraform -# -if echo "init plan apply refresh import output state taint destroy" | grep -w "$ACTION" > /dev/null; then - if [ "$ACTION" = "init" ]; then - echo "[INFO] init tf on ENV: ${ENV}" - terraform "$ACTION" -backend-config="${BACKEND_CONFIG_PATH}" $other - elif [ "$ACTION" = "output" ] || [ "$ACTION" = "state" ] || [ "$ACTION" = "taint" ]; then - # init terraform backend - terraform init -reconfigure -backend-config="${BACKEND_CONFIG_PATH}" - terraform "$ACTION" $other - else - # init terraform backend - echo "[INFO] init tf on ENV: ${ENV}" - terraform init -reconfigure -backend-config="${BACKEND_CONFIG_PATH}" - - echo "[INFO] run tf with: ${ACTION} on ENV: ${ENV} and other: >${other}<" - terraform "${ACTION}" -var-file="./env/${ENV}/terraform.tfvars" -compact-warnings $other - fi -else - echo "[ERROR] ACTION not allowed." - exit 1 -fi diff --git a/.vscode/fastapi.code-workspace b/.vscode/fastapi.code-workspace deleted file mode 100644 index e67378f..0000000 --- a/.vscode/fastapi.code-workspace +++ /dev/null @@ -1,11 +0,0 @@ -{ - "folders": [ - { - "path": ".." - }, - { - "path": "../../FastCash" - } - ], - "settings": {} -} diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 2d83abc..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Python: Current File", - "type": "python", - "request": "launch", - "program": "${file}", - "console": "integratedTerminal", - "cwd": "${workspaceFolder}", - "env": { - "PYTHONPATH": "${cwd}", - "VERBOSITY": "DEBUG", - } - }, - { - "name": "FastAPI", - "type": "python", - "request": "launch", - "module": "uvicorn", - "args": [ - "app.main:app", - "--reload", - "--port", - "8044" - ], - "env": { - "PYTHONPATH": "${cwd}", - "API_ENDPOINT_PORT": "8044", - "API_ENDPOINT_HOST": "localhost", - "APP_VERBOSITY": "DEBUG", - } - }, - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index f47a7b9..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "python.pythonPath": "/Users/diego/Library/Caches/pypoetry/virtualenvs/devops-webapp-python-W4rvqIgc-py3.10/bin/python", - "python.linting.flake8Enabled": true, - "python.linting.mypyEnabled": false, - "python.linting.enabled": true, -} diff --git a/app/main.py b/app/main.py deleted file mode 100644 index e1520e7..0000000 --- a/app/main.py +++ /dev/null @@ -1,25 +0,0 @@ -from fastapi import FastAPI, Response -from http import HTTPStatus - - -app = FastAPI() - - -@app.get("/") -async def home_root(): - return Response(status_code=HTTPStatus.OK) - - -@app.get("/status") -async def status(): - return Response(status_code=HTTPStatus.OK) - - -@app.get("/health") -async def health(): - return Response(status_code=HTTPStatus.OK) - - -@app.get("/healthz") -async def healthz(): - return Response(status_code=HTTPStatus.OK) diff --git a/core-dns/Corefile b/core-dns/Corefile new file mode 100644 index 0000000..e1583a2 --- /dev/null +++ b/core-dns/Corefile @@ -0,0 +1,9 @@ +.:53 { + errors + ready + health + forward . 168.63.129.16 + cache 30 + loop + reload +} diff --git a/helm/devopslab/diego/.helmignore b/helm/devopslab/diego/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/helm/devopslab/diego/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/devopslab/diego/Chart.lock b/helm/devopslab/diego/Chart.lock deleted file mode 100644 index 55a0b08..0000000 --- a/helm/devopslab/diego/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: microservice-chart - repository: https://pagopa.github.io/aks-microservice-chart-blueprint - version: 2.8.0 -digest: sha256:379d9a7c312874dd1771386d92d8f597cb3fed497bb80dfde102513b582123d4 -generated: "2023-02-20T15:50:38.149796+01:00" diff --git a/helm/devopslab/diego/Chart.yaml b/helm/devopslab/diego/Chart.yaml deleted file mode 100644 index 0f0aa2a..0000000 --- a/helm/devopslab/diego/Chart.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v2 -name: devops-app-status -description: App that allow to expose a simple health checks endpoints -type: application -version: 1.0.0 -appVersion: 1.0.0 -dependencies: -- name: microservice-chart - version: 2.8.0 - repository: "https://pagopa.github.io/aks-microservice-chart-blueprint" diff --git a/helm/devopslab/diego/values-dev.yaml b/helm/devopslab/diego/values-dev.yaml deleted file mode 100644 index 0efd6a7..0000000 --- a/helm/devopslab/diego/values-dev.yaml +++ /dev/null @@ -1,93 +0,0 @@ -microservice-chart: - namespace: "diego" - nameOverride: "" - fullnameOverride: "" - -# -# Deploy -# - deployment: - create: true - # forceRedeploy: true - - image: - repository: ghcr.io/pagopa/devops-app-status - tag: v1.0.0 - pullPolicy: Always - - livenessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - readinessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - -# -# Network -# - service: - create: true - type: ClusterIP - ports: - - 8000 - - ingress: - create: true - host: "dev01.diego.internal.devopslab.pagopa.it" - path: /diego/status(/|$)(.*) - rewriteTarget: /$2 - servicePort: 8000 - # proxyBodySize: 2m - annotations: { - nginx.ingress.kubernetes.io/satisfy: "any" - } - - serviceAccount: - create: false - annotations: {} - name: "" - - podAnnotations: {} - - podSecurityContext: - seccompProfile: - type: RuntimeDefault - - securityContext: - allowPrivilegeEscalation: false - - resources: - requests: - memory: "128Mi" - cpu: "40m" - limits: - memory: "128Mi" - cpu: "40m" - - autoscaling: - enable: true - minReplica: 1 - maxReplica: 3 - pollingInterval: 30 # seconds - cooldownPeriod: 300 # seconds - triggers: - - type: cpu - metadata: - type: Utilization - value: "60" - - # nodeSelector: {} - - # tolerations: [] - - # affinity: {} diff --git a/helm/devopslab/diego/values-prod.yaml b/helm/devopslab/diego/values-prod.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/helm/devopslab/diego/values-uat.yaml b/helm/devopslab/diego/values-uat.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/helm/selfcare/ar/.helmignore b/helm/selfcare/ar/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/helm/selfcare/ar/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/selfcare/ar/Chart.lock b/helm/selfcare/ar/Chart.lock deleted file mode 100644 index 55a0b08..0000000 --- a/helm/selfcare/ar/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: microservice-chart - repository: https://pagopa.github.io/aks-microservice-chart-blueprint - version: 2.8.0 -digest: sha256:379d9a7c312874dd1771386d92d8f597cb3fed497bb80dfde102513b582123d4 -generated: "2023-02-20T15:50:38.149796+01:00" diff --git a/helm/selfcare/ar/Chart.yaml b/helm/selfcare/ar/Chart.yaml deleted file mode 100644 index 0f0aa2a..0000000 --- a/helm/selfcare/ar/Chart.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v2 -name: devops-app-status -description: App that allow to expose a simple health checks endpoints -type: application -version: 1.0.0 -appVersion: 1.0.0 -dependencies: -- name: microservice-chart - version: 2.8.0 - repository: "https://pagopa.github.io/aks-microservice-chart-blueprint" diff --git a/helm/selfcare/ar/values-dev.yaml b/helm/selfcare/ar/values-dev.yaml deleted file mode 100644 index 963fe3c..0000000 --- a/helm/selfcare/ar/values-dev.yaml +++ /dev/null @@ -1,93 +0,0 @@ -microservice-chart: - namespace: "ar" - nameOverride: "" - fullnameOverride: "" - -# -# Deploy -# - deployment: - create: true - # forceRedeploy: true - - image: - repository: ghcr.io/pagopa/devops-app-status - tag: v1.0.0 - pullPolicy: Always - - livenessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - readinessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - -# -# Network -# - service: - create: true - type: ClusterIP - ports: - - 8000 - - ingress: - create: true - host: "dev01.ar.internal.dev.selfcare.pagopa.it" - path: /ar/status(/|$)(.*) - rewriteTarget: /$2 - servicePort: 8000 - # proxyBodySize: 2m - annotations: { - nginx.ingress.kubernetes.io/satisfy: "any" - } - - serviceAccount: - create: false - annotations: {} - name: "" - - podAnnotations: {} - - podSecurityContext: - seccompProfile: - type: RuntimeDefault - - securityContext: - allowPrivilegeEscalation: false - - resources: - requests: - memory: "128Mi" - cpu: "40m" - limits: - memory: "128Mi" - cpu: "40m" - - autoscaling: - enable: true - minReplica: 1 - maxReplica: 3 - pollingInterval: 30 # seconds - cooldownPeriod: 300 # seconds - triggers: - - type: cpu - metadata: - type: Utilization - value: "60" - - # nodeSelector: {} - - # tolerations: [] - - # affinity: {} diff --git a/helm/selfcare/ar/values-prod.yaml b/helm/selfcare/ar/values-prod.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/helm/selfcare/ar/values-uat.yaml b/helm/selfcare/ar/values-uat.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/helm/selfcare/pnpg/.helmignore b/helm/selfcare/pnpg/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/helm/selfcare/pnpg/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/selfcare/pnpg/Chart.lock b/helm/selfcare/pnpg/Chart.lock deleted file mode 100644 index 55a0b08..0000000 --- a/helm/selfcare/pnpg/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: microservice-chart - repository: https://pagopa.github.io/aks-microservice-chart-blueprint - version: 2.8.0 -digest: sha256:379d9a7c312874dd1771386d92d8f597cb3fed497bb80dfde102513b582123d4 -generated: "2023-02-20T15:50:38.149796+01:00" diff --git a/helm/selfcare/pnpg/Chart.yaml b/helm/selfcare/pnpg/Chart.yaml deleted file mode 100644 index 0f0aa2a..0000000 --- a/helm/selfcare/pnpg/Chart.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v2 -name: devops-app-status -description: App that allow to expose a simple health checks endpoints -type: application -version: 1.0.0 -appVersion: 1.0.0 -dependencies: -- name: microservice-chart - version: 2.8.0 - repository: "https://pagopa.github.io/aks-microservice-chart-blueprint" diff --git a/helm/selfcare/pnpg/values-dev.yaml b/helm/selfcare/pnpg/values-dev.yaml deleted file mode 100644 index cb6ed22..0000000 --- a/helm/selfcare/pnpg/values-dev.yaml +++ /dev/null @@ -1,93 +0,0 @@ -microservice-chart: - namespace: "pnpg" - nameOverride: "" - fullnameOverride: "" - -# -# Deploy -# - deployment: - create: true - # forceRedeploy: true - - image: - repository: ghcr.io/pagopa/devops-app-status - tag: v1.0.0 - pullPolicy: Always - - livenessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - readinessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - -# -# Network -# - service: - create: true - type: ClusterIP - ports: - - 8000 - - ingress: - create: true - host: "dev01.pnpg.internal.dev.selfcare.pagopa.it" - path: /pnpg/status(/|$)(.*) - rewriteTarget: /$2 - servicePort: 8000 - # proxyBodySize: 2m - annotations: { - nginx.ingress.kubernetes.io/satisfy: "any" - } - - serviceAccount: - create: false - annotations: {} - name: "" - - podAnnotations: {} - - podSecurityContext: - seccompProfile: - type: RuntimeDefault - - securityContext: - allowPrivilegeEscalation: false - - resources: - requests: - memory: "128Mi" - cpu: "40m" - limits: - memory: "128Mi" - cpu: "40m" - - autoscaling: - enable: true - minReplica: 1 - maxReplica: 3 - pollingInterval: 30 # seconds - cooldownPeriod: 300 # seconds - triggers: - - type: cpu - metadata: - type: Utilization - value: "60" - - # nodeSelector: {} - - # tolerations: [] - - # affinity: {} diff --git a/helm/selfcare/pnpg/values-prod.yaml b/helm/selfcare/pnpg/values-prod.yaml deleted file mode 100644 index 946641e..0000000 --- a/helm/selfcare/pnpg/values-prod.yaml +++ /dev/null @@ -1,93 +0,0 @@ -microservice-chart: - namespace: "pnpg" - nameOverride: "" - fullnameOverride: "" - -# -# Deploy -# - deployment: - create: true - # forceRedeploy: true - - image: - repository: ghcr.io/pagopa/devops-app-status - tag: v1.0.0 - pullPolicy: Always - - livenessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - readinessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - -# -# Network -# - service: - create: true - type: ClusterIP - ports: - - 8000 - - ingress: - create: true - host: "prod01.pnpg.internal.selfcare.pagopa.it" - path: /pnpg/status(/|$)(.*) - rewriteTarget: /$2 - servicePort: 8000 - # proxyBodySize: 2m - annotations: { - nginx.ingress.kubernetes.io/satisfy: "any" - } - - serviceAccount: - create: false - annotations: {} - name: "" - - podAnnotations: {} - - podSecurityContext: - seccompProfile: - type: RuntimeDefault - - securityContext: - allowPrivilegeEscalation: false - - resources: - requests: - memory: "128Mi" - cpu: "40m" - limits: - memory: "128Mi" - cpu: "40m" - - autoscaling: - enable: true - minReplica: 1 - maxReplica: 3 - pollingInterval: 30 # seconds - cooldownPeriod: 300 # seconds - triggers: - - type: cpu - metadata: - type: Utilization - value: "60" - - # nodeSelector: {} - - # tolerations: [] - - # affinity: {} diff --git a/helm/selfcare/pnpg/values-uat.yaml b/helm/selfcare/pnpg/values-uat.yaml deleted file mode 100644 index 0d82942..0000000 --- a/helm/selfcare/pnpg/values-uat.yaml +++ /dev/null @@ -1,93 +0,0 @@ -microservice-chart: - namespace: "pnpg" - nameOverride: "" - fullnameOverride: "" - -# -# Deploy -# - deployment: - create: true - # forceRedeploy: true - - image: - repository: ghcr.io/pagopa/devops-app-status - tag: v1.0.0 - pullPolicy: Always - - livenessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - readinessProbe: - httpGet: - path: /status - port: 8000 - initialDelaySeconds: 60 - failureThreshold: 6 - periodSeconds: 10 - - -# -# Network -# - service: - create: true - type: ClusterIP - ports: - - 8000 - - ingress: - create: true - host: "uat01.pnpg.internal.uat.selfcare.pagopa.it" - path: /pnpg/status(/|$)(.*) - rewriteTarget: /$2 - servicePort: 8000 - # proxyBodySize: 2m - annotations: { - nginx.ingress.kubernetes.io/satisfy: "any" - } - - serviceAccount: - create: false - annotations: {} - name: "" - - podAnnotations: {} - - podSecurityContext: - seccompProfile: - type: RuntimeDefault - - securityContext: - allowPrivilegeEscalation: false - - resources: - requests: - memory: "128Mi" - cpu: "40m" - limits: - memory: "128Mi" - cpu: "40m" - - autoscaling: - enable: true - minReplica: 1 - maxReplica: 3 - pollingInterval: 30 # seconds - cooldownPeriod: 300 # seconds - triggers: - - type: cpu - metadata: - type: Utilization - value: "60" - - # nodeSelector: {} - - # tolerations: [] - - # affinity: {}