Skip to content

Commit 221db9e

Browse files
author
paia0720
committed
Initial commit
1 parent 131bc75 commit 221db9e

File tree

207 files changed

+31587
-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.

207 files changed

+31587
-1
lines changed
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: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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-opensearch-integration-tests
14+
file: integration-tests/docker/Dockerfile
15+
context: integration-tests
16+
- name: qubership-opensearch-tls-init
17+
file: tls-init/docker/Dockerfile
18+
context: tls-init
19+
- name: qubership-opensearch-operator
20+
file: Dockerfile
21+
context: .
22+
- name: qubership-opensearch-transfer
23+
file: docker-transfer/Dockerfile
24+
context: ""
25+
if: github.event.ref_type == 'branch'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: ${GITHUB_ACTOR}
33+
password: ${{secrets.GITHUB_TOKEN}}
34+
- name: Prepare Tag
35+
run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV
36+
- name: Get package IDs for delete
37+
id: get-ids-for-delete
38+
uses: Netcracker/get-package-ids@v0.0.1
39+
with:
40+
component-name: ${{ matrix.component.name }}
41+
component-tag: ${{ env.TAG_NAME }}
42+
access-token: ${{secrets.GITHUB_TOKEN}}
43+
- uses: actions/delete-package-versions@v5
44+
with:
45+
package-name: ${{ matrix.component.name }}
46+
package-type: 'container'
47+
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
48+
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}

.github/workflows/push.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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-zookeeper-integration-tests
30+
file: integration-tests/docker/Dockerfile
31+
context: integration-tests
32+
- name: qubership-zookeeper-operator
33+
file: zookeeper-service-operator/Dockerfile
34+
context: .
35+
- name: qubership-zookeeper-transfer
36+
file: docker-transfer/Dockerfile
37+
context: ""
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Set up QEMU
43+
uses: docker/setup-qemu-action@v3
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v3
46+
- name: Login to Docker Hub
47+
uses: docker/login-action@v3
48+
with:
49+
registry: ghcr.io
50+
username: ${GITHUB_ACTOR}
51+
password: ${{secrets.GITHUB_TOKEN}}
52+
- name: Prepare Tag
53+
run: echo "TAG_NAME=$(echo ${TAG_NAME} | sed 's@refs/tags/@@;s@refs/heads/@@;s@/@_@g')" >> $GITHUB_ENV
54+
- name: Prepare Group
55+
run: echo "GITHUB_GROUP=${GITHUB_GROUP,,}" >> $GITHUB_ENV
56+
- name: Get package IDs for delete
57+
id: get-ids-for-delete
58+
uses: Netcracker/get-package-ids@v0.0.1
59+
with:
60+
component-name: ${{ matrix.component.name }}
61+
component-tag: ${{ env.TAG_NAME }}
62+
access-token: ${{secrets.GITHUB_TOKEN}}
63+
if: ${{ env.PUSH }}
64+
- name: Build and push
65+
uses: docker/build-push-action@v5
66+
with:
67+
no-cache: true
68+
context: ${{ matrix.component.context }}
69+
file: ${{ matrix.component.file }}
70+
platforms: linux/amd64,linux/arm64
71+
push: ${{ env.PUSH }}
72+
tags: ghcr.io/${{ env.GITHUB_GROUP }}/${{ matrix.component.name }}:${{ env.TAG_NAME }}
73+
provenance: false
74+
- uses: actions/delete-package-versions@v5
75+
with:
76+
package-name: ${{ matrix.component.name }}
77+
package-type: 'container'
78+
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
79+
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}

.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

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/public/capabilites.md

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch operator",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "auto",
9+
"console": "integratedTerminal",
10+
"program": "${workspaceFolder}\\zookeeper-service-operator\\main.go",
11+
"env": {
12+
"HOME":"${userHome}",
13+
"KUBECONFIG": "<path_to_your_config>",
14+
"WATCH_NAMESPACE":"<your_zookeeper_namespace>"
15+
}
16+
}
17+
]
18+
}

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 `plutosdev@gmail.com`. 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.

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contribution Guide
2+
3+
We'd love to accept patches and contributions to this project.
4+
Please, follow these guidelines to make the contribution process easy and effective for everyone involved.
5+
6+
## Contributor License Agreement
7+
8+
You must sign the [Contributor License Agreement](https://pages.qubership.org/cla-main.html) in order to contribute.
9+
10+
## Code of Conduct
11+
12+
Please make sure to read and follow the [Code of Conduct](CODE-OF-CONDUCT.md).

0 commit comments

Comments
 (0)