Skip to content

Commit ca9f1a9

Browse files
author
alty1224
committed
update dependencies
2 parents 9ead40c + 848f144 commit ca9f1a9

File tree

10 files changed

+318
-8
lines changed

10 files changed

+318
-8
lines changed

.github/auto-labeler-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
conventional-commits:
3+
- type: 'fix'
4+
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
5+
labels: ['bug']
6+
- type: 'feature'
7+
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
8+
labels: ['enhancement']
9+
- type: 'breaking_change'
10+
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
11+
labels: ['breaking-change']
12+
- type: 'refactor'
13+
nouns: ['refactor', 'Refactor']
14+
labels: ['refactor']
15+
- type: 'documentation'
16+
nouns: ['docs', 'doc', 'document', 'documentation']
17+
labels: ['documentation']
18+
- type: 'build'
19+
nouns: ['build', 'rebuild']
20+
labels: ['build']
21+
- type: 'config'
22+
nouns: ['config', 'conf', 'configuration', 'configure']
23+
labels: ['config']
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
3+
charts:
4+
- name: qubership-rabbitmq
5+
chart_file: operator/charts/helm/rabbitmq/Chart.yaml
6+
values_file: operator/charts/helm/rabbitmq/values.yaml
7+
image:
8+
- ghcr.io/netcracker/qubership-rabbitmq-integration-tests:${release}
9+
- ghcr.io/netcracker/qubership-rabbitmq-operator:${release}
10+
- ghcr.io/netcracker/qubership-rabbitmq-transfer:${release}
11+
- ghcr.io/netcracker/qubership-rabbitmq-backup-daemon:${release}
12+
- ghcr.io/netcracker/qubership-rabbitmq-performance-tests-image:${release}
13+
- ghcr.io/netcracker/qubership-rabbitmq-monitoring:${release}
14+
- ghcr.io/netcracker/qubership-rabbitmq-image:${release}
15+
- ghcr.io/netcracker/qubership-rabbitmq-image-3:${release}
16+
- ghcr.io/netcracker/qubership-disaster-recovery-daemon:#latest
17+
- ghcr.io/netcracker/qubership-deployment-status-provisioner:#latest

.github/docker-build-config.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"components": [
3+
{
4+
"name": "qubership-rabbitmq-integration-tests",
5+
"file": "operator/operator-robot-image/Dockerfile",
6+
"context": "operator/operator-robot-image"
7+
},
8+
{
9+
"name": "qubership-rabbitmq-operator",
10+
"file": "operator/Dockerfile",
11+
"context": "operator"
12+
},
13+
{
14+
"name": "qubership-rabbitmq-transfer",
15+
"file": "docker-transfer/Dockerfile",
16+
"context": "."
17+
},
18+
{
19+
"name": "qubership-rabbitmq-backup-daemon",
20+
"file": "rabbitmq-backup-daemon/Dockerfile",
21+
"context": "rabbitmq-backup-daemon"
22+
},
23+
{
24+
"name": "qubership-rabbitmq-performance-tests-image",
25+
"file": "performance-tests-image/Dockerfile",
26+
"context": "performance-tests-image"
27+
},
28+
{
29+
"name": "qubership-rabbitmq-monitoring",
30+
"file": "telegraf/Dockerfile",
31+
"context": "telegraf"
32+
},
33+
{
34+
"name": "qubership-rabbitmq-image",
35+
"file": "rabbitmq-docker/4.0/Dockerfile",
36+
"context": "rabbitmq-docker"
37+
},
38+
{
39+
"name": "qubership-rabbitmq-image-3",
40+
"file": "rabbitmq-docker/3.13/Dockerfile",
41+
"context": "rabbitmq-docker"
42+
}
43+
],
44+
"platforms": "linux/amd64,linux/arm64"
45+
}

.github/release-drafter-config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
4+
5+
categories:
6+
- title: '💣 Breaking Changes'
7+
labels:
8+
- breaking-change
9+
- title: '💡 New Features'
10+
labels:
11+
- feature
12+
- enhancement
13+
- title: '🐞 Bug Fixes'
14+
labels:
15+
- bug
16+
- fix
17+
- bugfix
18+
- title: '⚙️ Technical Debt'
19+
labels:
20+
- refactor
21+
- title: '📝 Documentation'
22+
labels:
23+
- documentation
24+
25+
change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
26+
no-changes-template: 'No significant changes'
27+
28+
template: |
29+
## 🚀 Release
30+
31+
### What's Changed
32+
$CHANGES
33+
34+
---
35+
36+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
37+
38+
version-resolver:
39+
major:
40+
labels:
41+
- major
42+
minor:
43+
labels:
44+
- minor
45+
patch:
46+
labels:
47+
- patch
48+
default: patch
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
---
2+
3+
name: Helm Charts Release
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
release:
8+
description: 'Release version'
9+
required: true
10+
type: string
11+
permissions:
12+
contents: write
13+
packages: write
14+
run-name: ${{ github.repository }} Release ${{ github.event.inputs.release }}
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
jobs:
19+
check-tag:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Check if tag exists
23+
id: check_tag
24+
uses: netcracker/qubership-workflow-hub/actions/tag-action@main
25+
with:
26+
tag-name: '${{ inputs.release }}'
27+
ref: ${{ github.ref }}
28+
create-tag: false
29+
check-tag: true
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
load-docker-build-components:
33+
runs-on: ubuntu-latest
34+
outputs:
35+
component: ${{ steps.load_component.outputs.components }}
36+
platforms: ${{ steps.load_component.outputs.platforms }}
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
41+
- name: Load Docker Configuration
42+
id: load_component
43+
run: |
44+
verify=$(cat "$GITHUB_WORKSPACE/.github/docker-build-config.json" | jq '
45+
def verify_structure:
46+
.components as $components
47+
| .platforms as $platforms
48+
| ($components | type == "array")
49+
and (all($components[]; has("name") and has("file") and has("context")))
50+
and ($platforms | type == "string");
51+
verify_structure
52+
| if . then true else false end
53+
')
54+
if [ ${verify} == 'true' ]; then
55+
echo "✅ $GITHUB_WORKSPACE/.github/docker-build-config.json file is valid"
56+
components=$(jq -c ".components" "$GITHUB_WORKSPACE/.github/docker-build-config.json")
57+
platforms=$(jq -c ".platforms" "$GITHUB_WORKSPACE/.github/docker-build-config.json")
58+
else
59+
echo "❗ $GITHUB_WORKSPACE/.github/docker-build-config.json file is invalid"
60+
echo "❗ $GITHUB_WORKSPACE/.github/docker-build-config.json file is invalid" >> $GITHUB_STEP_SUMMARY
61+
exit 1
62+
fi
63+
echo "components=${components}" >> $GITHUB_OUTPUT
64+
echo "platforms=${platforms}" >> $GITHUB_OUTPUT
65+
66+
docker-check-build:
67+
needs: [load-docker-build-components, check-tag]
68+
runs-on: ubuntu-latest
69+
strategy:
70+
fail-fast: true
71+
matrix:
72+
component: ${{ fromJson(needs.load-docker-build-components.outputs.component) }}
73+
steps:
74+
- name: Get version for current component
75+
id: get-version
76+
run: |
77+
echo "IMAGE=${{ matrix.component.name }}" >> $GITHUB_ENV
78+
- name: Docker build
79+
uses: netcracker/qubership-workflow-hub/actions/docker-action@main
80+
with:
81+
ref: ${{ github.ref }}
82+
download-artifact: false
83+
dry-run: true
84+
component: ${{ toJson(matrix.component) }}
85+
platforms: ${{ needs.load-docker-build-components.outputs.platforms }}
86+
tags: "${{ env.IMAGE_VERSION }}"
87+
env:
88+
GITHUB_TOKEN: ${{ github.token }}
89+
chart-release-prepare:
90+
needs: [check-tag, load-docker-build-components, docker-check-build]
91+
runs-on: ubuntu-latest
92+
outputs:
93+
images-versions: ${{ steps.update-versions.outputs.images-versions }}
94+
steps:
95+
- name: Checkout code
96+
uses: actions/checkout@v4
97+
with:
98+
fetch-depth: 0
99+
- name: "Update versions in values"
100+
id: update-versions
101+
uses: netcracker/qubership-workflow-hub/actions/charts-values-update-action@main
102+
with:
103+
release-version: ${{ inputs.release }}
104+
config-file: .github/charts-values-update-config.yaml
105+
env:
106+
${{ insert }}: ${{ vars }}
107+
- name: "Debug"
108+
run: |
109+
echo "Images versions: ${{ steps.update-versions.outputs.images-versions }}"
110+
111+
docker-build:
112+
needs: [chart-release-prepare, load-docker-build-components]
113+
runs-on: ubuntu-latest
114+
strategy:
115+
fail-fast: true
116+
matrix:
117+
component: ${{ fromJson(needs.load-docker-build-components.outputs.component) }}
118+
steps:
119+
- name: Get version for current component
120+
id: get-version
121+
run: |
122+
echo "IMAGE_VERSION=${{ fromJson(needs.chart-release-prepare.outputs.images-versions)[matrix.component.name] || inputs.release }}" >> $GITHUB_ENV
123+
124+
- name: Docker build
125+
uses: netcracker/qubership-workflow-hub/actions/docker-action@main
126+
with:
127+
ref: release-${{ inputs.release }}
128+
download-artifact: false
129+
dry-run: false
130+
component: ${{ toJson(matrix.component) }}
131+
platforms: ${{ needs.load-docker-build-components.outputs.platforms }}
132+
tags: "${{ env.IMAGE_VERSION }},latest"
133+
env:
134+
GITHUB_TOKEN: ${{ github.token }}
135+
charts-release:
136+
needs: [docker-build]
137+
continue-on-error: false
138+
runs-on: ubuntu-latest
139+
steps:
140+
- name: Checkout code
141+
uses: actions/checkout@v4
142+
with:
143+
fetch-depth: 0
144+
ref: release-${{ inputs.release }}
145+
146+
- name: Configure Git
147+
run: |
148+
git config user.name "$GITHUB_ACTOR"
149+
git config user.email "[email protected]"
150+
151+
- name: Run chart-releaser
152+
#continue-on-error: true
153+
uses: netcracker/chart-releaser-action@main
154+
with:
155+
charts_dir: operator/charts/helm
156+
release_name_template: "{{ .Version }}"
157+
skip_existing: true
158+
skip_upload: true
159+
env:
160+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
161+
162+
- name: "Release-drafter"
163+
uses: netcracker/release-drafter@master
164+
with:
165+
config-name: release-drafter-config.yml
166+
publish: true
167+
name: ${{ inputs.release }}
168+
tag: ${{ inputs.release }}
169+
version: ${{ inputs.release }}
170+
env:
171+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172+
- name: Upload Assets
173+
uses: netcracker/qubership-workflow-hub/actions/assets-action@main
174+
with:
175+
tag: ${{ inputs.release }}
176+
item-path: .cr-release-packages/*.tgz
177+
env:
178+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker-transfer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM scratch
22

33
# Transfer
4-
COPY operator/charts /charts
5-
COPY docs /docs
4+
COPY operator/charts /charts

operator/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10.14-alpine3.20
1+
FROM python:3.10.14-alpine3.22
22

33
ENV WORKDIR=/opt/operator/ \
44
USER_UID=1000 \
@@ -16,7 +16,7 @@ COPY build/entrypoint /usr/local/bin
1616

1717
RUN apk add --update --no-cache bash build-base apk-tools
1818

19-
RUN pip install --upgrade pip setuptools==70.0.0 && pip install -r requirements.txt
19+
RUN pip install --upgrade pip setuptools==80.9.0 && pip install -r requirements.txt
2020

2121
RUN chmod 777 /usr/local/bin/user_setup && \
2222
chmod 777 /usr/local/bin/entrypoint && \

operator/operator-robot-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN mkdir -p ${ROBOT_HOME} \
1313
&& mkdir -p ${ROBOT_OUTPUT}
1414

1515
RUN apk add --update file gcc musl-dev libc6-compat zip jq gettext grep findutils wget sed \
16-
&& pip3 install setuptools==70.0.0
16+
&& pip3 install setuptools==80.9.0
1717

1818
COPY rabbitmq_pod_checker.py ${ROBOT_HOME}/rabbitmq_pod_checker.py
1919
COPY requirements.txt requirements.txt

rabbitmq-backup-daemon/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN chmod +x ${RABBITMQ_HOME}/scripts/*.py
1010

1111
RUN set -x \
1212
&& apk add --update --no-cache curl apk-tools \
13-
&& pip3 install setuptools==70.0.0 \
13+
&& pip3 install setuptools==80.9.0 \
1414
&& pip3 install -r ${RABBITMQ_HOME}/requirements.txt \
1515
&& rm -rf /var/cache/apk/*
1616

telegraf/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM telegraf:1.33.3-alpine
1+
FROM telegraf:1.35.2-alpine
22

33
ENV RABBITMQ_MONITORING_HOME=/opt/rabbitmq-monitoring \
44
USER_UID=1000
@@ -26,7 +26,7 @@ RUN set -x \
2626
&& apk add --upgrade --no-cache curl tini python3 apk-tools \
2727
&& python3 -m ensurepip \
2828
&& rm -r /usr/lib/python*/ensurepip \
29-
&& pip3 install --upgrade pip setuptools==70.0.0 \
29+
&& pip3 install --upgrade pip setuptools==80.9.0 \
3030
&& pip3 install -r ${RABBITMQ_MONITORING_HOME}/requirements.txt \
3131
&& chmod -R 777 ${RABBITMQ_MONITORING_HOME}/exec-scripts
3232

0 commit comments

Comments
 (0)