Skip to content

Commit 0e1106f

Browse files
author
paia0720
committed
Initial commit
1 parent 217a027 commit 0e1106f

File tree

234 files changed

+49802
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+49802
-1
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
.gitignore
3+
demo
4+
docs
5+
README.md
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment:**
27+
- Application Version:
28+
- K8S Version:
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[Feature]'
5+
labels: 'feature'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## What type of PR is this? (check all applicable)
2+
3+
- [ ] Refactor
4+
- [ ] Feature
5+
- [ ] Bug Fix
6+
- [ ] Optimization
7+
- [ ] Documentation Update
8+
9+
## Description
10+
11+
TDB
12+
13+
## Related Tickets & Documents
14+
15+
<!--
16+
For pull requests that relate or close an issue, please include them
17+
below.
18+
-->
19+
20+
- Related Issue #
21+
- Closes #
22+
23+
## QA Instructions, Screenshots, Recordings
24+
25+
_Please replace this line with instructions on how to test your changes, a note
26+
on the devices and browsers this has been tested on, as well as any relevant
27+
images for UI changes._
28+
29+
### Breaking Change checklist
30+
_If your PR includes any deployment or processing changes, please utilize this checklist:_
31+
- [ ] Does it change any deployment parameters, logic of their working or rename them?
32+
- [ ] Did update from previous version tested with the same set of deployment parameters?
33+
34+
## Added/updated tests?
35+
36+
- [ ] Yes
37+
- [ ] No, and this is why: _please replace this line with details on why tests
38+
have not been included_
39+
- [ ] I need help with writing tests
40+
41+
## [optional] Are there any things to highlight or double check?
42+
43+
## [optional] What gif best describes this PR or how it makes you feel?

.github/workflows/clean.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Branch Deleted
2+
on: delete
3+
4+
env:
5+
TAG_NAME: ${{ github.event.ref }}
6+
7+
jobs:
8+
delete:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
component:
13+
- name: qubership-rabbitmq-integration-tests
14+
file: operator/operator-robot-image/Dockerfile
15+
context: integration-tests
16+
- name: qubership-rabbitmq-service-operator
17+
file: Dockerfile
18+
context: operator/Dockerfile
19+
- name: qubership-rabbitmq-service-transfer
20+
file: docker-transfer/Dockerfile
21+
context: ""
22+
- name: qubership-rabbitmq-backup-daemon
23+
file: rabbitmq-backup-daemon/Dockerfile
24+
context: rabbitmq-backup-daemon
25+
- name: qubership-rabbitmq-performance-tests-image
26+
file: performance-tests-image/Dockerfile
27+
context: performance-tests-image
28+
- name: qubership-rabbitmq-monitoring
29+
file: telegraf/Dockerfile
30+
context: rabbitmq-monitoring
31+
- name: qubership-rabbitmq-monitoring
32+
file: telegraf/Dockerfile
33+
context: rabbitmq-monitoring
34+
- name: qubership-rabbitmq-management-image
35+
file: .
36+
context: management
37+
if: github.event.ref_type == 'branch'
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Login to Docker Hub
41+
uses: docker/login-action@v3
42+
with:
43+
registry: ghcr.io
44+
username: ${GITHUB_ACTOR}
45+
password: ${{secrets.GITHUB_TOKEN}}
46+
- name: Prepare Tag
47+
run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV
48+
- name: Get package IDs for delete
49+
id: get-ids-for-delete
50+
uses: Netcracker/[email protected]
51+
with:
52+
component-name: ${{ matrix.component.name }}
53+
component-tag: ${{ env.TAG_NAME }}
54+
access-token: ${{secrets.GITHUB_TOKEN}}
55+
- uses: actions/delete-package-versions@v5
56+
with:
57+
package-name: ${{ matrix.component.name }}
58+
package-type: 'container'
59+
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
60+
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}

.github/workflows/push.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Build Artifacts
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- '**'
8+
pull_request:
9+
branches:
10+
- '**'
11+
workflow_dispatch:
12+
inputs:
13+
publish_docker:
14+
description: "Publish image to ghcr.io"
15+
type: boolean
16+
default: true
17+
required: false
18+
env:
19+
TAG_NAME: ${{ github.event.release.tag_name || github.ref }}
20+
PUSH: ${{ (github.event_name == 'workflow_dispatch' && inputs.publish_docker) || !startsWith(github.ref, 'refs/heads/dependabot') }}
21+
GITHUB_GROUP: ${{ github.repository_owner }}
22+
23+
jobs:
24+
multiplatform_build:
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
component:
29+
- name: qubership-rabbitmq-integration-tests
30+
file: operator/operator-robot-image/Dockerfile
31+
context: integration-tests
32+
- name: qubership-rabbitmq-service-operator
33+
file: Dockerfile
34+
context: operator/Dockerfile
35+
- name: qubership-rabbitmq-service-transfer
36+
file: docker-transfer/Dockerfile
37+
context: ""
38+
- name: qubership-rabbitmq-backup-daemon
39+
file: rabbitmq-backup-daemon/Dockerfile
40+
context: rabbitmq-backup-daemon
41+
- name: qubership-rabbitmq-performance-tests-image
42+
file: performance-tests-image/Dockerfile
43+
context: performance-tests-image
44+
- name: qubership-rabbitmq-monitoring
45+
file: telegraf/Dockerfile
46+
context: rabbitmq-monitoring
47+
- name: qubership-rabbitmq-monitoring
48+
file: telegraf/Dockerfile
49+
context: rabbitmq-monitoring
50+
- name: qubership-rabbitmq-management-image
51+
file: .
52+
context: management
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v4
57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v3
59+
- name: Set up Docker Buildx
60+
uses: docker/setup-buildx-action@v3
61+
- name: Login to Docker Hub
62+
uses: docker/login-action@v3
63+
with:
64+
registry: ghcr.io
65+
username: ${GITHUB_ACTOR}
66+
password: ${{secrets.GITHUB_TOKEN}}
67+
- name: Prepare Tag
68+
run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/tags/@@;s@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV
69+
- name: Prepare Group
70+
run: echo "GITHUB_GROUP=${GITHUB_GROUP,,}" >> $GITHUB_ENV
71+
- name: Get package IDs for delete
72+
id: get-ids-for-delete
73+
uses: Netcracker/[email protected]
74+
with:
75+
component-name: ${{ matrix.component.name }}
76+
component-tag: ${{ env.TAG_NAME }}
77+
access-token: ${{secrets.GITHUB_TOKEN}}
78+
if: ${{ env.PUSH }}
79+
- name: Build and push
80+
uses: docker/build-push-action@v5
81+
with:
82+
no-cache: true
83+
context: ${{ matrix.component.context }}
84+
file: ${{ matrix.component.file }}
85+
platforms: linux/amd64
86+
push: ${{ env.PUSH }}
87+
tags: ghcr.io/${{ env.GITHUB_GROUP }}/${{ matrix.component.name }}:${{ env.TAG_NAME }}
88+
provenance: false
89+
- uses: actions/delete-package-versions@v5
90+
with:
91+
package-name: ${{ matrix.component.name }}
92+
package-type: 'container'
93+
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
94+
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin
9+
testbin/*
10+
11+
# Test binary, build with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
17+
# Kubernetes Generated files - skip generated files, except for vendored files
18+
19+
!vendor/**/zz_generated.*
20+
21+
# editor and IDE paraphernalia
22+
.idea
23+
*.swp
24+
*.swo
25+
*~

.markdownlint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# MD013/line-length - Line length
2+
MD013:
3+
line_length: 200
4+
heading_line_length: 120
5+
code_block_line_length: 120
6+
code_blocks: false
7+
tables: false
8+
headings: true
9+
strict: false
10+
stern: false
11+
# MD024/no-duplicate-header - Multiple headers with the same content
12+
MD024:
13+
siblings_only: true
14+
# MD041/first-line-heading - First line in a file should be a top-level heading
15+
MD041: false
16+
# MD033/no-inline-html - Inline HTML
17+
MD033: false
18+
# MD036/no-emphasis-as-heading - Emphasis used instead of a heading
19+
MD036: false
20+
# MD011/no-reversed-links - Reversed link syntax
21+
MD011: false
22+
# MD037/no-space-in-emphasis - Spaces inside emphasis markers
23+
MD037: false
24+
# MD004/ul-style - Unordered list style [Expected: dash; Actual: asterisk]
25+
MD004: false
26+
# MD007/ul-indent Unordered list indentation
27+
MD007: false
28+
# MD010/no-hard-tabs Hard tabs
29+
MD010: false

CODE-OF-CONDUCT.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Code of Conduct
2+
3+
This repository is governed by following code of conduct guidelines.
4+
5+
We put collaboration, trust, respect and transparency as core values for our community.
6+
Our community welcomes participants from all over the world with different experience,
7+
opinion and ideas to share.
8+
9+
We have adopted this code of conduct and require all contributors to agree with that to build a healthy,
10+
safe and productive community for all.
11+
12+
The guideline is aimed to support a community where all people should feel safe to participate,
13+
introduce new ideas and inspire others, regardless of:
14+
15+
* Age
16+
* Gender
17+
* Gender identity or expression
18+
* Family status
19+
* Marital status
20+
* Ability
21+
* Ethnicity
22+
* Race
23+
* Sex characteristics
24+
* Sexual identity and orientation
25+
* Education
26+
* Native language
27+
* Background
28+
* Caste
29+
* Religion
30+
* Geographic location
31+
* Socioeconomic status
32+
* Personal appearance
33+
* Any other dimension of diversity
34+
35+
## Our Standards
36+
37+
We are welcoming the following behavior:
38+
39+
* Be respectful for different ideas, opinions and points of view
40+
* Be constructive and professional
41+
* Use inclusive language
42+
* Be collaborative and show the empathy
43+
* Focus on the best results for the community
44+
45+
The following behavior is unacceptable:
46+
47+
* Violence, threats of violence, or inciting others to commit self-harm
48+
* Personal attacks, trolling, intentionally spreading misinformation, insulting/derogatory comments
49+
* Public or private harassment
50+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
51+
* Derogatory language
52+
* Encouraging unacceptable behavior
53+
* Other conduct which could reasonably be considered inappropriate in a professional community
54+
55+
## Our Responsibilities
56+
57+
Project maintainers are responsible for clarifying the standards of the Code of Conduct
58+
and are expected to take appropriate actions in response to any instances of unacceptable behavior.
59+
60+
Project maintainers have the right and responsibility to remove, edit, or reject comments,
61+
commits, code, wiki edits, issues, and other contributions that are not aligned
62+
to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors
63+
that they deem inappropriate, threatening, offensive, or harmful.
64+
65+
## Reporting
66+
67+
If you believe you’re experiencing unacceptable behavior that will not be tolerated as outlined above,
68+
please report to `[email protected]`. All complaints will be reviewed and investigated and will result in a response
69+
that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality
70+
with regard to the reporter of an incident.
71+
72+
Please also report if you observe a potentially dangerous situation, someone in distress, or violations of these guidelines,
73+
even if the situation is not happening to you.

0 commit comments

Comments
 (0)