Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c730afe
Bump EKS to 1.33
heliocodacy Dec 9, 2025
320b533
replace bitnami with bitnamilegacy
heliocodacy Dec 9, 2025
2330fd3
Update variables.tf
ricardobernardino2024 Dec 10, 2025
759dfbc
Update requirements.yaml
ricardobernardino2024 Dec 10, 2025
502d379
Update values-microk8s.yaml
ricardobernardino2024 Dec 10, 2025
8c0c7a4
Update values-production.yaml
ricardobernardino2024 Dec 10, 2025
3399fcc
Update config.yml
ricardobernardino2024 Dec 10, 2025
a12c10b
Update Makefile
ricardobernardino2024 Dec 10, 2025
f6b6499
Update config.yml
ricardobernardino2024 Dec 10, 2025
d4c592b
Update variables.tf
ricardobernardino2024 Dec 10, 2025
3721717
Update variables.tf
ricardobernardino2024 Dec 16, 2025
dc79bd4
Update config.yml
ricardobernardino2024 Dec 16, 2025
053336b
Update Makefile
ricardobernardino2024 Dec 16, 2025
04c05f2
Update config.yml
ricardobernardino2024 Dec 16, 2025
9095da6
Update requirements.yaml
ricardobernardino2024 Dec 17, 2025
7ea4c74
test: orb with snap install
CallMeLeopoldo Dec 17, 2025
354b2a0
test: orb with snap install
CallMeLeopoldo Dec 17, 2025
06c844a
test: orb with snap install
CallMeLeopoldo Dec 17, 2025
58adb08
increase api resources
CallMeLeopoldo Dec 17, 2025
ac5979f
evaluate replicaCount
CallMeLeopoldo Dec 17, 2025
3fc964b
evaluate replicaCount
CallMeLeopoldo Dec 17, 2025
720d1e1
evaluate replicaCount
CallMeLeopoldo Dec 17, 2025
e4d1d8a
retry 20 minute timeout
CallMeLeopoldo Dec 17, 2025
165a099
trigger new commit
CallMeLeopoldo Dec 18, 2025
6ecae56
change repository for bitnami chart
CallMeLeopoldo Dec 18, 2025
7a5a255
change repository for bitnami chart rabbitmq
CallMeLeopoldo Dec 18, 2025
d3a8845
add resources to engine and portal
CallMeLeopoldo Dec 18, 2025
b95e5f9
add docker-credentials and vhost
CallMeLeopoldo Dec 19, 2025
7a98f68
test short pass and username
CallMeLeopoldo Dec 19, 2025
8cae823
test 3.8.35 for rabbitmq
CallMeLeopoldo Dec 19, 2025
3359796
trigger change
CallMeLeopoldo Dec 22, 2025
fa0faaf
test manually created credentials with existing secret
CallMeLeopoldo Dec 22, 2025
9db5ea5
pass value
CallMeLeopoldo Dec 23, 2025
c6194bb
test default values
CallMeLeopoldo Dec 23, 2025
e20039d
test rabbitmq default password
CallMeLeopoldo Dec 23, 2025
010745c
test persistence to false
CallMeLeopoldo Dec 23, 2025
3493f4e
create user in load definitions
CallMeLeopoldo Dec 23, 2025
b27b67b
create user in load definitions
CallMeLeopoldo Dec 23, 2025
11a373a
put temporary password
CallMeLeopoldo Dec 23, 2025
67e737e
cleanup
CallMeLeopoldo Dec 23, 2025
abd6e1f
cleanup
CallMeLeopoldo Dec 23, 2025
ef980f5
restore check in PR
CallMeLeopoldo Dec 23, 2025
d9fc1f7
restore check in PR
CallMeLeopoldo Dec 23, 2025
c988548
remove 1.30 unstable
CallMeLeopoldo Dec 23, 2025
60af684
change name of job
CallMeLeopoldo Dec 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
codacy: codacy/base@11.0.0
codacy: codacy/base@12.3.1
slack: circleci/[email protected]

references:
Expand Down Expand Up @@ -557,11 +557,11 @@ workflows:
requires:
- plan_dev_cluster
- codacy/microk8s_install:
name: install_k8s-1.30_helm-3.16.3_unstable
name: install-k8s-unstable
helm_repo: "https://charts.codacy.com/unstable"
chart_version: $(cat .version)
microk8s_channel: "1.30/stable"
helm_version: "v3.16.3"
microk8s_channel: "1.32/stable"
helm_version: "v3.19.0"
helm_timeout: 1200
context: CodacyDocker
docker_username: $DOCKER_USER
Expand Down Expand Up @@ -810,7 +810,7 @@ workflows:
<<: *helm_values
requires:
- helm_push_incubator

- codacy/microk8s_install:
name: install_k8s-1.30_helm-3.16.3
helm_repo: "https://charts.codacy.com/incubator"
Expand All @@ -825,6 +825,20 @@ workflows:
requires:
- helm_push_incubator

- codacy/microk8s_install:
name: install_k8s-1.32_helm-3.19.0
helm_repo: "https://charts.codacy.com/incubator"
chart_version: $(cat .version)
microk8s_channel: "1.32/stable"
helm_version: "v3.19.0"
helm_timeout: 1200
context: CodacyDocker
docker_username: $DOCKER_USER
docker_password: $DOCKER_PASS
<<: *helm_values
requires:
- helm_push_incubator

- test_api:
context: CodacyAWS
requires:
Expand Down Expand Up @@ -870,6 +884,7 @@ workflows:
- install_k8s-1.28_helm-3.9
- install_k8s-1.29_helm-3.16.3
- install_k8s-1.30_helm-3.16.3
- install_k8s-1.32_helm-3.19.0
- manual_solutions_eng_hold:
type: approval
context: CodacyDO
Expand All @@ -890,6 +905,7 @@ workflows:
- install_k8s-1.28_helm-3.9
- install_k8s-1.29_helm-3.16.3
- install_k8s-1.30_helm-3.16.3
- install_k8s-1.32_helm-3.19.0
- set_chart_version_release:
context: CodacyDO
requires:
Expand Down
2 changes: 2 additions & 0 deletions .do/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ define call_helm_install
--set global.features.cloneSubmodules=true \
--set global.workerManager.workers.config.imageVersion=${5} \
--set global.crow.config.passwordAuth.password=$${CROW_PASSWORD} \
--set rabbitmq.image.repository=bitnamilegacy/rabbitmq \

"$${extra_args[@]}"
endef

Expand Down
2 changes: 1 addition & 1 deletion .do/k8s-cluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKSPACE ?= ${DO_TF_WORKSPACE}
VARS_FILE ?= deploy.tfvars
NGINX_INGRESS_VERSION ?= 4.11.3
CERT_MANAGER_VERSION ?= v1.15.0
K8S_VERSION ?= 1.30
K8S_VERSION ?= 1.32
DO_K8S_SLUG ?= $(shell doctl kubernetes options versions | grep $(K8S_VERSION) | awk '{print $$1}')
NODE_TYPE ?= s-8vcpu-32gb
NODES_MIN ?= 1
Expand Down
2 changes: 1 addition & 1 deletion .do/k8s-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
variable "k8s_version" {
description = "Kubernetes version. See available versions with `doctl kubernetes options versions`"
type = string
default = "1.30.5-do.5"
default = "1.32.10-do.1"
}

variable "k8s_kubeconfig" {
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ release-notes-tools
.version

*.log
.*.swp
.*.swp

#Ignore vscode AI rules
.github/instructions/codacy.instructions.md
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: setup_helm_repos
setup_helm_repos:
helm repo add bitnami-pre-2022 https://raw.githubusercontent.com/bitnami/charts/defb094c658024e4aa8245622dab202874880cbc/bitnami # Github tag before bitnami truncated the index. Old link didn't work anymore
# Add legacy Bitnami snapshot repo used by requirements.yaml (apiVersion v1)
helm repo add stable https://charts.helm.sh/stable
helm repo add codacy-stable https://charts.codacy.com/stable
helm repo add codacy-unstable https://charts.codacy.com/unstable
Expand Down Expand Up @@ -53,3 +53,6 @@ get_release_notes:
git fetch --all --tags --force
# Generate release notes and create pull request on codacy/docs
release-notes-tools/run.sh selfhosted ${VERSION_NEW} ${VERSION_OLD} --push



3 changes: 1 addition & 2 deletions codacy/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ dependencies:
condition: global.minio.create
alias: minio

# Github tag before bitnami truncated the index. Old link didn't work anymore
- name: rabbitmq
version: 7.5.7
repository: https://raw.githubusercontent.com/bitnami/charts/defb094c658024e4aa8245622dab202874880cbc/bitnami
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
condition: global.rabbitmq.create
alias: rabbitmq-ha

Expand Down
7 changes: 6 additions & 1 deletion codacy/templates/rabbitmq-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ stringData:
"type": "classic",
"vhost": "/"
}
],
"vhosts": [
{
"name": "/"
}
]
}
}
3 changes: 3 additions & 0 deletions codacy/values-microk8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ crow:

rabbitmq-ha:
replicaCount: 1
image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.35-debian-11-r5"
resources:
limits:
cpu: 0.5
Expand Down
49 changes: 44 additions & 5 deletions codacy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@

rabbitmq:
create: true
rabbitmqUsername: rabbitmq-codacy
rabbitmqPassword: rabbitmq-codacy
rabbitmqUsername: "rabbitmq-codacy"
rabbitmqPassword: "CHANGEME"
rabbitmqvHost: "/"
host: codacy-rabbitmq-ha
port: 5672
Expand Down Expand Up @@ -278,16 +278,53 @@
crow:
create: true

codacy-api:
replicaCount: 2
resources:
limits:
cpu: 1000m
memory: 2000Mi
requests:
cpu: 500m
memory: 2000Mi

engine:
replicaCount: 1
resources:
limits:
cpu: 2000m
memory: 3000Mi
requests:
cpu: 200m
memory: 3000Mi

portal:
replicaCount: 1
resources:
limits:
cpu: 500m

Check warning on line 305 in codacy/values.yaml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

codacy/values.yaml#L305

When you set a fractional CPU limit on a container, the CPU cycles available will be throttled, even though most nodes can handle processes alternating between using 100% of the CPU.
memory: 1Gi
requests:
cpu: 200m
memory: 200Mi

## YOU ARE NOT ADVISED TO CHANGE BEYOND THIS POINT

## Defaults for Internal Storage coming from requirements
## These values are ignored if 'create: false' in the global variables

rabbitmq-ha:
rabbitmqErlangCookie: "PLEASE_CHANGE_ME_TO_A_RANDOM_STR" # Generate one with `cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`
fullnameOverride: codacy-rabbitmq-ha
global:
imagePullSecrets:
- docker-credentials
image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.35-debian-11-r5"
auth:
username: "rabbitmq-codacy"
password: "rabbitmq-codacy"
username: rabbitmq-codacy
password: rabbitmq-codacy

Check warning on line 327 in codacy/values.yaml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

codacy/values.yaml#L327

Base64 High Entropy String
prometheus:
operator:
enabled: false
Expand All @@ -301,7 +338,9 @@
postgres:
fullnameOverride: codacy-postgres
imageTag: "9.6.2"
image:
repository: bitnamilegacy/postgresql
tag: "11.7.0"
persistence:
enabled: false
# storageClass:
Expand Down