Skip to content

Commit cbfe875

Browse files
Merge pull request #820 from codacy/ls/bump-kubernetes-1.32
infra: upgrade Kubernetes version to 1.32
2 parents 69903d5 + 60af684 commit cbfe875

10 files changed

Lines changed: 87 additions & 17 deletions

File tree

.circleci/config.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@11.0.0
4+
codacy: codacy/base@12.3.1
55
slack: circleci/slack@3.4.2
66

77
references:
@@ -557,11 +557,11 @@ workflows:
557557
requires:
558558
- plan_dev_cluster
559559
- codacy/microk8s_install:
560-
name: install_k8s-1.30_helm-3.16.3_unstable
560+
name: install-k8s-unstable
561561
helm_repo: "https://charts.codacy.com/unstable"
562562
chart_version: $(cat .version)
563-
microk8s_channel: "1.30/stable"
564-
helm_version: "v3.16.3"
563+
microk8s_channel: "1.32/stable"
564+
helm_version: "v3.19.0"
565565
helm_timeout: 1200
566566
context: CodacyDocker
567567
docker_username: $DOCKER_USER
@@ -810,7 +810,7 @@ workflows:
810810
<<: *helm_values
811811
requires:
812812
- helm_push_incubator
813-
813+
814814
- codacy/microk8s_install:
815815
name: install_k8s-1.30_helm-3.16.3
816816
helm_repo: "https://charts.codacy.com/incubator"
@@ -825,6 +825,20 @@ workflows:
825825
requires:
826826
- helm_push_incubator
827827

828+
- codacy/microk8s_install:
829+
name: install_k8s-1.32_helm-3.19.0
830+
helm_repo: "https://charts.codacy.com/incubator"
831+
chart_version: $(cat .version)
832+
microk8s_channel: "1.32/stable"
833+
helm_version: "v3.19.0"
834+
helm_timeout: 1200
835+
context: CodacyDocker
836+
docker_username: $DOCKER_USER
837+
docker_password: $DOCKER_PASS
838+
<<: *helm_values
839+
requires:
840+
- helm_push_incubator
841+
828842
- test_api:
829843
context: CodacyAWS
830844
requires:
@@ -870,6 +884,7 @@ workflows:
870884
- install_k8s-1.28_helm-3.9
871885
- install_k8s-1.29_helm-3.16.3
872886
- install_k8s-1.30_helm-3.16.3
887+
- install_k8s-1.32_helm-3.19.0
873888
- manual_solutions_eng_hold:
874889
type: approval
875890
context: CodacyDO
@@ -890,6 +905,7 @@ workflows:
890905
- install_k8s-1.28_helm-3.9
891906
- install_k8s-1.29_helm-3.16.3
892907
- install_k8s-1.30_helm-3.16.3
908+
- install_k8s-1.32_helm-3.19.0
893909
- set_chart_version_release:
894910
context: CodacyDO
895911
requires:

.do/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ define call_helm_install
3131
--set global.features.cloneSubmodules=true \
3232
--set global.workerManager.workers.config.imageVersion=${5} \
3333
--set global.crow.config.passwordAuth.password=$${CROW_PASSWORD} \
34+
--set rabbitmq.image.repository=bitnamilegacy/rabbitmq \
35+
3436
"$${extra_args[@]}"
3537
endef
3638

.do/k8s-cluster/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKSPACE ?= ${DO_TF_WORKSPACE}
77
VARS_FILE ?= deploy.tfvars
88
NGINX_INGRESS_VERSION ?= 4.11.3
99
CERT_MANAGER_VERSION ?= v1.15.0
10-
K8S_VERSION ?= 1.30
10+
K8S_VERSION ?= 1.32
1111
DO_K8S_SLUG ?= $(shell doctl kubernetes options versions | grep $(K8S_VERSION) | awk '{print $$1}')
1212
NODE_TYPE ?= s-8vcpu-32gb
1313
NODES_MIN ?= 1

.do/k8s-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
variable "k8s_version" {
66
description = "Kubernetes version. See available versions with `doctl kubernetes options versions`"
77
type = string
8-
default = "1.30.5-do.5"
8+
default = "1.32.10-do.1"
99
}
1010

1111
variable "k8s_kubeconfig" {

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ release-notes-tools
3939
.version
4040

4141
*.log
42-
.*.swp
42+
.*.swp
43+
44+
#Ignore vscode AI rules
45+
.github/instructions/codacy.instructions.md

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: setup_helm_repos
22
setup_helm_repos:
3-
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
3+
# Add legacy Bitnami snapshot repo used by requirements.yaml (apiVersion v1)
44
helm repo add stable https://charts.helm.sh/stable
55
helm repo add codacy-stable https://charts.codacy.com/stable
66
helm repo add codacy-unstable https://charts.codacy.com/unstable
@@ -53,3 +53,6 @@ get_release_notes:
5353
git fetch --all --tags --force
5454
# Generate release notes and create pull request on codacy/docs
5555
release-notes-tools/run.sh selfhosted ${VERSION_NEW} ${VERSION_OLD} --push
56+
57+
58+

codacy/requirements.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ dependencies:
55
condition: global.minio.create
66
alias: minio
77

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

codacy/templates/rabbitmq-secret.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ stringData:
4040
"type": "classic",
4141
"vhost": "/"
4242
}
43+
],
44+
"vhosts": [
45+
{
46+
"name": "/"
47+
}
4348
]
44-
}
49+
}

codacy/values-microk8s.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ crow:
5555

5656
rabbitmq-ha:
5757
replicaCount: 1
58+
image:
59+
repository: bitnamilegacy/rabbitmq
60+
tag: "3.8.35-debian-11-r5"
5861
resources:
5962
limits:
6063
cpu: 0.5

codacy/values.yaml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ global:
140140

141141
rabbitmq:
142142
create: true
143-
rabbitmqUsername: rabbitmq-codacy
144-
rabbitmqPassword: rabbitmq-codacy
143+
rabbitmqUsername: "rabbitmq-codacy"
144+
rabbitmqPassword: "CHANGEME"
145145
rabbitmqvHost: "/"
146146
host: codacy-rabbitmq-ha
147147
port: 5672
@@ -278,16 +278,53 @@ fluentdoperator:
278278
crow:
279279
create: true
280280

281+
codacy-api:
282+
replicaCount: 2
283+
resources:
284+
limits:
285+
cpu: 1000m
286+
memory: 2000Mi
287+
requests:
288+
cpu: 500m
289+
memory: 2000Mi
290+
291+
engine:
292+
replicaCount: 1
293+
resources:
294+
limits:
295+
cpu: 2000m
296+
memory: 3000Mi
297+
requests:
298+
cpu: 200m
299+
memory: 3000Mi
300+
301+
portal:
302+
replicaCount: 1
303+
resources:
304+
limits:
305+
cpu: 500m
306+
memory: 1Gi
307+
requests:
308+
cpu: 200m
309+
memory: 200Mi
310+
281311
## YOU ARE NOT ADVISED TO CHANGE BEYOND THIS POINT
312+
282313
## Defaults for Internal Storage coming from requirements
283314
## These values are ignored if 'create: false' in the global variables
284315

285316
rabbitmq-ha:
286317
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`
287318
fullnameOverride: codacy-rabbitmq-ha
319+
global:
320+
imagePullSecrets:
321+
- docker-credentials
322+
image:
323+
repository: bitnamilegacy/rabbitmq
324+
tag: "3.8.35-debian-11-r5"
288325
auth:
289-
username: "rabbitmq-codacy"
290-
password: "rabbitmq-codacy"
326+
username: rabbitmq-codacy
327+
password: rabbitmq-codacy
291328
prometheus:
292329
operator:
293330
enabled: false
@@ -301,7 +338,9 @@ rabbitmq-ha:
301338
302339
postgres:
303340
fullnameOverride: codacy-postgres
304-
imageTag: "9.6.2"
341+
image:
342+
repository: bitnamilegacy/postgresql
343+
tag: "11.7.0"
305344
persistence:
306345
enabled: false
307346
# storageClass:

0 commit comments

Comments
 (0)