diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f86cc23b49fed536b5f02cb98af50f787eed4aa6..01d8071331da811adfc5e7469f16dffe5a3e74a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,12 @@ variables: HELM_HELPERS_FILE: helm-eclipse.yml APP_HELM_NAME: task DOCKER_FILE: app/deployment/ci/Dockerfile + GIT_SUBMODULE_STRATEGY: recursive + GIT_SUBMODULE_UPDATE_FLAGS: --remote --init --recursive stages: - test + - getinfo - build - manifest - lint @@ -15,11 +18,10 @@ stages: include: - project: "${HELPERS_PATH}" - file: 'build-eclipse.yml' + file: "build-eclipse.yml" - template: "Workflows/Branch-Pipelines.gitlab-ci.yml" - project: "${HELPERS_PATH}" - file: 'helm-eclipse.yml' - + file: "helm-eclipse.yml" lint: image: golangci/golangci-lint:latest @@ -34,7 +36,7 @@ lint: - cd /go/src/gitlab.com/${CI_PROJECT_PATH}/app unit tests: - image: golang:1.21.4 + image: golang:1.21.5 stage: test tags: - amd64-docker @@ -48,7 +50,7 @@ unit tests: coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/' govulncheck: - image: golang:1.21.4 + image: golang:1.21.5 stage: test tags: - amd64-docker @@ -60,6 +62,11 @@ govulncheck: - go install golang.org/x/vuln/cmd/govulncheck@latest - govulncheck ./... +check_commit: + extends: .check_commit + stage: getinfo + tags: + - amd64-docker amd64: extends: .docker-build stage: build @@ -67,7 +74,7 @@ amd64: - amd64-docker manifest: - extends: .manifest-amd64 + extends: .manifest stage: manifest cloud: diff --git a/Chart.yaml b/Chart.yaml index 152ddda9d28423913747bd1455262b21f0185720..f9ddea397cf17919be742a928645ad9e20c37d88 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -appVersion: v1.2.1 +appVersion: v1.1.0 description: task deployment name: task -version: 1.2.1 +version: 1.1.0 icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg" diff --git a/README.md b/README.md index 5fd52b04d2a36d7663af4515f5d831572003e66b..a42f8b05b835f2ac02be8cc7948975485cdbbb93 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# task + + + -  +# task ## Deployment @@ -9,63 +11,63 @@ The pipeline in this repo builds image from the source code repo in eclipse as a ### From main branch When changes to helm or the app are made and deployment is needed, execute the following steps: -1. Clone the repo and start working on a new branch. -1. Execute `git submodule update --remote --recursive --init` to update source to latest commit on eclipse main branch. + 1. Edit `Chart.yaml` with the new chart version (example: 1.4.3) and app version it's intended to use (example: v1.4.3). -1. Create merge request from the update branch. -1. Create a new tag from main branch with the intended app version (v1.4.3) -1. Wait for pipelines to finish and manually trigger deployment to either `dev-ssi` or `prod-ssi(vault)` clusters. +2. Create merge request from the update branch. +3. Create a new tag from main branch with the intended chart version (1.4.3) +4. Wait for pipelines to finish and manually trigger deployment to either `dev-ssi` or `prod-ssi(vault)` clusters. ## Values -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| addresses.cache | string | `"http://cache:8080"` | | -| addresses.policy | string | `"http://policy:8080"` | | -| autoscaling.enabled | bool | `false` | Enable autoscaling | -| autoscaling.maxReplicas | int | `3` | Maximum replicas | -| autoscaling.minReplicas | int | `1` | Minimum replicas | -| autoscaling.targetCPUUtilizationPercentage | int | `70` | CPU target for autoscaling trigger | -| autoscaling.targetMemoryUtilizationPercentage | int | `70` | Memory target for autoscaling trigger | -| image.name | string | `"gaiax/task"` | Image name | -| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | -| image.pullSecrets | string | `"deployment-key-light"` | Image pull secret when internal image is used | -| image.repository | string | `"eu.gcr.io/vrgn-infra-prj"` | | -| image.sha | string | `""` | Image sha, usually generated by the CI Uses image.tag if empty | -| image.tag | string | `""` | Image tag Uses .Chart.AppVersion if empty | -| ingress.annotations."cert-manager.io/cluster-issuer" | string | `"letsencrypt-production-http"` | | -| ingress.annotations."kubernetes.io/ingress.class" | string | `"nginx"` | | -| ingress.annotations."kubernetes.io/ingress.global-static-ip-name" | string | `"dev-light-public"` | | -| ingress.annotations."nginx.ingress.kubernetes.io/rewrite-target" | string | `"/$2"` | | -| ingress.enabled | bool | `true` | | -| ingress.frontendDomain | string | `"gaiax.vereign.com"` | | -| ingress.frontendTlsSecretName | string | `"cert-manager-tls"` | | -| ingress.tlsEnabled | bool | `true` | | -| log.encoding | string | `"json"` | | -| log.level | string | `"debug"` | | -| metrics.enabled | bool | `true` | Enable prometheus metrics | -| metrics.port | int | `2112` | Port for prometheus metrics | -| mongo.addr | string | `"mongodb://mongodb-mongodb-replicaset.infra:27017/task?replicaSet=rs0&authSource=admin"` | | -| mongo.dbname | string | `"task"` | | -| mongo.pass | string | `""` | | -| mongo.user | string | `""` | | -| name | string | `"task"` | Application name | -| nameOverride | string | `""` | Ovverwrites application name | -| podAnnotations | object | `{}` | | -| replicaCount | int | `1` | Default number of instances to start | -| resources.limits.cpu | string | `"150m"` | | -| resources.limits.memory | string | `"128Mi"` | | -| resources.requests.cpu | string | `"25m"` | | -| resources.requests.memory | string | `"64Mi"` | | -| security.runAsGid | int | `0` | Group used by the apps | -| security.runAsNonRoot | bool | `false` | by default, apps run as non-root | -| security.runAsUid | int | `0` | User used by the apps | -| service.port | int | `8080` | | -| task.http.host | string | `""` | | -| task.http.port | int | `8080` | | -| task.http.timeout.idle | string | `"120s"` | | -| task.http.timeout.read | string | `"10s"` | | -| task.http.timeout.write | string | `"10s"` | | +| Key | Type | Default | Description | +| ----------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- | +| addresses.cache | string | `"http://cache:8080"` | | +| addresses.policy | string | `"http://policy:8080"` | | +| autoscaling.enabled | bool | `false` | Enable autoscaling | +| autoscaling.maxReplicas | int | `3` | Maximum replicas | +| autoscaling.minReplicas | int | `1` | Minimum replicas | +| autoscaling.targetCPUUtilizationPercentage | int | `70` | CPU target for autoscaling trigger | +| autoscaling.targetMemoryUtilizationPercentage | int | `70` | Memory target for autoscaling trigger | +| image.name | string | `"gaiax/task"` | Image name | +| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | +| image.pullSecrets | string | `"deployment-key-light"` | Image pull secret when internal image is used | +| image.repository | string | `"eu.gcr.io/vrgn-infra-prj"` | | +| image.sha | string | `""` | Image sha, usually generated by the CI Uses image.tag if empty | +| image.tag | string | `""` | Image tag Uses .Chart.AppVersion if empty | +| ingress.annotations."cert-manager.io/cluster-issuer" | string | `"letsencrypt-production-http"` | | +| ingress.annotations."kubernetes.io/ingress.class" | string | `"nginx"` | | +| ingress.annotations."kubernetes.io/ingress.global-static-ip-name" | string | `"dev-light-public"` | | +| ingress.annotations."nginx.ingress.kubernetes.io/rewrite-target" | string | `"/$2"` | | +| ingress.enabled | bool | `true` | | +| ingress.frontendDomain | string | `"gaiax.vereign.com"` | | +| ingress.frontendTlsSecretName | string | `"cert-manager-tls"` | | +| ingress.tlsEnabled | bool | `true` | | +| log.encoding | string | `"json"` | | +| log.level | string | `"debug"` | | +| metrics.enabled | bool | `true` | Enable prometheus metrics | +| metrics.port | int | `2112` | Port for prometheus metrics | +| mongo.addr | string | `"mongodb://mongodb-mongodb-replicaset.infra:27017/task?replicaSet=rs0&authSource=admin"` | | +| mongo.dbname | string | `"task"` | | +| mongo.pass | string | `""` | | +| mongo.user | string | `""` | | +| name | string | `"task"` | Application name | +| nameOverride | string | `""` | Ovverwrites application name | +| podAnnotations | object | `{}` | | +| replicaCount | int | `1` | Default number of instances to start | +| resources.limits.cpu | string | `"150m"` | | +| resources.limits.memory | string | `"128Mi"` | | +| resources.requests.cpu | string | `"25m"` | | +| resources.requests.memory | string | `"64Mi"` | | +| security.runAsGid | int | `0` | Group used by the apps | +| security.runAsNonRoot | bool | `false` | by default, apps run as non-root | +| security.runAsUid | int | `0` | User used by the apps | +| service.port | int | `8080` | | +| task.http.host | string | `""` | | +| task.http.port | int | `8080` | | +| task.http.timeout.idle | string | `"120s"` | | +| task.http.timeout.read | string | `"10s"` | | +| task.http.timeout.write | string | `"10s"` | | + +--- ----------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.10.0](https://github.com/norwoodj/helm-docs/releases/v1.10.0) diff --git a/app b/app index c1bcf22e0cbd9509a4d0f3492750246ddfa75ebf..3a86a9e9b306b5ba332e659f9a5bab02f7669c21 160000 --- a/app +++ b/app @@ -1 +1 @@ -Subproject commit c1bcf22e0cbd9509a4d0f3492750246ddfa75ebf +Subproject commit 3a86a9e9b306b5ba332e659f9a5bab02f7669c21