Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5f1dfc7
release: prepare 17.0.0
Ngwerume Aug 28, 2026
7b0ab9f
changed rabbit mq values
Ngwerume Aug 28, 2026
340cf09
Fixed requirements.lock
Ngwerume Aug 28, 2026
e2fd2b3
Dependencies update
Ngwerume Aug 28, 2026
297e074
regenerated lock file due to digest sha
Ngwerume Aug 28, 2026
02cad8a
Rabbit MQ version pinned
Ngwerume Aug 28, 2026
7a974b4
Fixed makefile to inlcude snapshot repo
Ngwerume Aug 28, 2026
fc81086
Merge branch 'master' into release-17.0.0
nfcodacy Aug 28, 2026
c9485f2
Increasing the make timeout
ricardobernardino2024 Aug 31, 2026
bf2bcb1
Increasing the make timeout
ricardobernardino2024 Aug 31, 2026
c5d8571
Increasing the make timeout
ricardobernardino2024 Aug 31, 2026
d8293ea
Increase helm deploy timeout to fix release job timeout (#834)
circleci-app[bot] Aug 31, 2026
2b42911
Clean up stale hook jobs before helm upgrade to fix BackoffLimitExcee…
circleci-app[bot] Aug 31, 2026
e4c8bdd
Fix clean_jobs missing --namespace flag causing BackoffLimitExceeded …
circleci-app[bot] Aug 31, 2026
b6dec04
Add retry logic to deploy_to_doks_from_chartmuseum for hook failures …
circleci-app[bot] Sep 1, 2026
2632250
Fix fluentd lifecycle hook BackoffLimitExceeded by adding MinIO readi…
circleci-app[bot] Sep 1, 2026
82b1310
Fix fluentd lifecycle hook BackoffLimitExceeded: add Filter field and…
circleci-app[bot] Sep 1, 2026
f5b218f
Fix fluentd lifecycle hook waiting for bucket existence, not just Min…
circleci-app[bot] Sep 1, 2026
1f73fa0
Fix minio-make-bucket-job lingering after failed upgrade (#842)
circleci-app[bot] Sep 1, 2026
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
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ references:
size: 10Gi
rabbitmq-ha:
replicaCount: 1
image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.5"
ulimitNofiles: 32768

qa_automation_image: &qa_automation_image
Expand Down Expand Up @@ -327,9 +330,10 @@ references:
steps:
- <<: *attach_workspace
- <<: *doctl_authenticate
- codacy/run_skip_ssh:
cmd_name: Install Codacy
cmd: make -e -C .do/ deploy_to_doks_from_chartmuseum VERSION=$(cat .version)
- run:
name: Install Codacy
no_output_timeout: 30m
command: make -e -C .do/ deploy_to_doks_from_chartmuseum VERSION=$(cat .version)

helm_push: &helm_push
steps:
Expand All @@ -347,6 +351,8 @@ references:
helm dep build ./codacy
echo "Adding 'https://charts.codacy.com/${CHANNEL}'"
helm repo add --username "${CHARTS_REPO_USER}" --password "${CHARTS_REPO_PASS}" ${HELM_REPOSITORY} https://charts.codacy.com/${CHANNEL}
echo "Removing existing chart version from chart museum (if present)..."
curl -s -u "${CHARTS_REPO_USER}:${CHARTS_REPO_PASS}" -X DELETE "https://charts.codacy.com/${CHANNEL}/api/charts/codacy/$(cat .version)" || true
helm push ./codacy ${HELM_REPOSITORY}
- <<: *persist_to_workspace

Expand Down
13 changes: 10 additions & 3 deletions .do/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define call_helm_install
eval "extra_args=($$HELM_INSTALL_EXTRA_FLAGS)"; \
helm upgrade --install ${1} ${3} \
--atomic \
--timeout=900s \
--timeout=1500s \
-f ../codacy/values-production.yaml \
-f values.yaml \
--namespace ${2} \
Expand Down Expand Up @@ -85,10 +85,17 @@ update_ingress_values:
deploy_to_doks_infrastructure: set_cluster_context update_dependencies helm_install_infrastructure

.PHONY: deploy_to_doks_from_local_dir
deploy_to_doks_from_local_dir: set_cluster_context update_dependencies helm_install_from_local_dir
deploy_to_doks_from_local_dir: set_cluster_context update_dependencies clean_jobs helm_install_from_local_dir

.PHONY: clean_jobs
clean_jobs:
-kubectl delete jobs -l app.kubernetes.io/instance=${RELEASE_NAME} --namespace ${NAMESPACE} --ignore-not-found=true
-kubectl delete jobs -l release=${RELEASE_NAME} --namespace ${NAMESPACE} --ignore-not-found=true

.PHONY: deploy_to_doks_from_chartmuseum
deploy_to_doks_from_chartmuseum: set_cluster_context setup_helm_repos helm_install_from_chart_museum
deploy_to_doks_from_chartmuseum: set_cluster_context setup_helm_repos
-$(MAKE) clean_jobs
$(MAKE) helm_install_from_chart_museum || ($(MAKE) clean_jobs && $(MAKE) helm_install_from_chart_museum)

.PHONY: set_cluster_context
set_cluster_context:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: setup_helm_repos
setup_helm_repos:
# Add legacy Bitnami snapshot repo used by requirements.yaml (apiVersion v1)
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
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
48 changes: 48 additions & 0 deletions codacy/requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
dependencies:
- name: minio
repository: https://charts.helm.sh/stable
version: 5.0.33
- name: rabbitmq
repository: https://raw.githubusercontent.com/bitnami/charts/defb094c658024e4aa8245622dab202874880cbc/bitnami
version: 7.5.7
- name: postgresql
repository: https://raw.githubusercontent.com/bitnami/charts/defb094c658024e4aa8245622dab202874880cbc/bitnami
version: 8.6.4
- name: log-router
repository: https://charts.codacy.com/external
version: 0.6.4
- name: codacy-ingress-sh
repository: https://charts.codacy.com/stable
version: 0.2.3
- name: portal-sh
repository: https://charts.codacy.com/stable
version: 1.1.8
- name: ragnaros-sh
repository: https://charts.codacy.com/stable
version: 2.0.7
- name: remote-provider-service-sh
repository: https://charts.codacy.com/stable
version: 1.1.4
- name: listener-sh
repository: https://charts.codacy.com/stable
version: 1.1.10
- name: engine-sh
repository: https://charts.codacy.com/stable
version: 1.2.1
- name: codacy-tools-sh
repository: https://charts.codacy.com/stable
version: 1.2.21
- name: codacy-api-sh
repository: https://charts.codacy.com/stable
version: 1.2.9
- name: worker-manager-sh
repository: https://charts.codacy.com/stable
version: 2.0.2
- name: crow-sh
repository: https://charts.codacy.com/stable
version: 1.0.6
- name: codacy-spa-sh
repository: https://charts.codacy.com/stable
version: 1.2.4
digest: sha256:d19e971e5160470800251d2660f063c96c00de20180c13c2f7c7e90375c52862
generated: "2026-08-28T14:29:21.804571894+01:00"
2 changes: 1 addition & 1 deletion codacy/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:

- name: rabbitmq
version: 7.5.7
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
repository: https://raw.githubusercontent.com/bitnami/charts/defb094c658024e4aa8245622dab202874880cbc/bitnami
condition: global.rabbitmq.create
alias: rabbitmq-ha

Expand Down
45 changes: 34 additions & 11 deletions codacy/templates/fluentd/lifecycle-police-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ metadata:
# Minio create bucket hook doesn't define any hook weight,
# any positive value will ensure that the bucket is created before this
"helm.sh/hook-weight": "10"
"helm.sh/hook-delete-policy": hook-succeeded
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
backoffLimit: 100
backoffLimit: 0
template:
metadata:
name: "{{ .Release.Name }}"
Expand All @@ -30,14 +30,37 @@ spec:
value: "{{ .Values.global.minio.accessKey }}"
- name: AWS_SECRET_ACCESS_KEY
value: "{{ .Values.global.minio.secretKey }}"
command: ["aws"]
command: ["/bin/sh", "-c"]
args:
- s3api
- put-bucket-lifecycle-configuration
- --bucket
- {{ .Values.fluentdoperator.bucketName }}
- --endpoint-url
- http://{{ .Values.global.minio.location }}:{{ .Values.global.minio.port }}
- --lifecycle-configuration
- '{"Rules":[{"Expiration":{"Days": {{ .Values.fluentdoperator.expirationDays }} },"ID":"Delete old logs","Status":"Enabled"}]}'
- |
ENDPOINT="http://{{ .Values.global.minio.location }}:{{ .Values.global.minio.port }}"
BUCKET="{{ .Values.fluentdoperator.bucketName }}"
LIFECYCLE='{"Rules":[{"Expiration":{"Days": {{ .Values.fluentdoperator.expirationDays }} },"ID":"Delete old logs","Status":"Enabled"}]}'
MAX_WAIT=1200
ELAPSED=0
echo "Waiting for MinIO bucket ${BUCKET} at ${ENDPOINT}..."
until aws s3api head-bucket --bucket "${BUCKET}" --endpoint-url "${ENDPOINT}" > /dev/null 2>&1; do
if [ "${ELAPSED}" -ge "${MAX_WAIT}" ]; then
echo "Timed out waiting for MinIO bucket after ${MAX_WAIT}s"
exit 1
fi
echo "Bucket not ready yet (${ELAPSED}s elapsed), retrying in 10s..."
sleep 10
ELAPSED=$((ELAPSED + 10))
done
echo "MinIO bucket ${BUCKET} is ready. Setting lifecycle configuration..."
RETRY=0
until aws s3api put-bucket-lifecycle-configuration \
--bucket "${BUCKET}" \
--endpoint-url "${ENDPOINT}" \
--lifecycle-configuration "${LIFECYCLE}"; do
RETRY=$((RETRY + 1))
if [ "${RETRY}" -ge 5 ]; then
echo "Failed to set lifecycle configuration after ${RETRY} attempts"
exit 1
fi
echo "Lifecycle config failed, retrying in 10s (attempt ${RETRY}/5)..."
sleep 10
done
echo "Lifecycle configuration set successfully."
{{ end }}
2 changes: 1 addition & 1 deletion codacy/values-microk8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rabbitmq-ha:
replicaCount: 1
image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.35-debian-11-r5"
tag: "3.8.5"
resources:
limits:
cpu: 0.5
Expand Down
3 changes: 3 additions & 0 deletions codacy/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ codacy-spa:

rabbitmq-ha:
replicaCount: 1
image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.5"
rabbitmqErlangCookie: <--- erlang-cookie ---> # Generate one with `openssl rand -base64 32 | tr -dc 'a-zA-Z0-9'`
persistentVolume:
enabled: true
Expand Down
10 changes: 5 additions & 5 deletions codacy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ global:
# Trial license. Valid for 4 users until the end of 2030
license: "lV5QUFrZhlibdCP/MN8pZo76B3jhPeL/RAk4E2AL2WZlGI8Vno/LfvAwnSHm26uY817I3qvEjfhIZFCkDi8R6PngiB+UiT+h8W0Blica8Sp+d5ngnh9HuhTG6xAIf7gAQxyJpn3boV87CKTO+5nHYSeJccMd+s8esMxoS84Z2xI="
installation:
version: development
version: v17.0.0-RC-0
documentation:
version: development
version: v17.0

# github:
# enabled: "false"
Expand Down Expand Up @@ -101,7 +101,7 @@ global:
workerManager:
workers:
config:
imageVersion: stable
imageVersion: sh-1.2.1
javaOpts: '-XX:MinRAMPercentage=50.0 -XX:MaxRAMPercentage=90.0'
inactivityTimeout: 30

Expand Down Expand Up @@ -318,10 +318,10 @@ rabbitmq-ha:
fullnameOverride: codacy-rabbitmq-ha
global:
imagePullSecrets:
- docker-credentials
- docker-credentials

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ LOW RISK

Nitpick: The indentation of this list item is inconsistent with the 2-space convention used elsewhere in the file.

image:
repository: bitnamilegacy/rabbitmq
tag: "3.8.35-debian-11-r5"
tag: "3.8.5"
auth:
username: rabbitmq-codacy
password: CHANGEME
Expand Down