Skip to content

Commit 0259599

Browse files
committed
Initial commit
Signed-off-by: v.oleynikov <[email protected]>
0 parents  commit 0259599

19 files changed

+591
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 🎯 Bug report
2+
description: Report a bug to help us improve Deckhouse
3+
labels:
4+
- 'type/bug'
5+
- 'status/needs-triage'
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thank you for submitting a bug report!
11+
12+
Please fill out the template below to make it easier to debug your problem.
13+
- type: checkboxes
14+
attributes:
15+
label: Preflight Checklist
16+
description: Please ensure you've completed all of the following.
17+
options:
18+
- label: I agree to follow the [Code of Conduct](https://github.com/deckhouse/deckhouse/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
19+
required: true
20+
- label: I have searched the [issue tracker](https://github.com/deckhouse/deckhouse/issues) for an issue that matches the one I want to file, without success.
21+
required: true
22+
- type: input
23+
attributes:
24+
label: Version
25+
description: |
26+
What version of Deckhouse are you running?
27+
placeholder: v1.0.0
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Expected Behavior
33+
description: A clear and concise description of what you expected to happen.
34+
validations:
35+
required: true
36+
- type: textarea
37+
attributes:
38+
label: Actual Behavior
39+
description: A clear description of what actually happens.
40+
validations:
41+
required: true
42+
- type: textarea
43+
attributes:
44+
label: Steps To Reproduce
45+
description: Steps to reproduce the behavior if it is not self-explanatory.
46+
placeholder: |
47+
1. In this environment...
48+
2. With this config...
49+
3. Run '...'
50+
4. See error...
51+
- type: textarea
52+
attributes:
53+
label: Additional Information
54+
description: Links? References? Anything that will give us more context about the issue that you are encountering!
55+
- type: textarea
56+
attributes:
57+
label: Logs
58+
description: Deckhouse application logs (if relevant).
59+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 📚 Documentation
4+
url: https://deckhouse.io/documentation/
5+
about: Check the documentation for help
6+
7+
- name: 💬 Telegram channel [EN]
8+
url: https://t.me/deckhouse
9+
about: Please ask and answer questions here
10+
11+
- name: 🇷🇺 Telegram channel [RU]
12+
url: https://t.me/deckhouse_ru
13+
about: Please ask and answer questions here
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 💡 Feature request
2+
description: Suggest an idea for Deckhouse
3+
labels:
4+
- 'type/enhancement'
5+
- 'status/needs-triage'
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thank you for submitting a feature request!
11+
12+
Please describe what you would like to change/add and why in detail by filling out the template below.
13+
- type: checkboxes
14+
attributes:
15+
label: Preflight Checklist
16+
description: Please ensure you've completed all of the following.
17+
options:
18+
- label: I agree to follow the [Code of Conduct](https://github.com/deckhouse/deckhouse/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
19+
required: true
20+
- label: I have searched the [issue tracker](https://github.com/deckhouse/deckhouse/issues) for an issue that matches the one I want to file, without success.
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Use case. Why is this important?
25+
description: A clear and concise description of the problem you are seeking to solve with this feature request.
26+
validations:
27+
required: true
28+
- type: textarea
29+
attributes:
30+
label: Proposed Solution
31+
description: A clear and concise description of what would you like to happen.
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: Additional Information
37+
description: Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Description
2+
<!---
3+
Describe your changes in detail.
4+
5+
Please let users know if your feature influences critical cluster components
6+
(restarts of ingress-controllers, control-plane, Prometheus, etc).
7+
-->
8+
9+
## Why do we need it, and what problem does it solve?
10+
<!---
11+
This is the most important paragraph.
12+
You must describe the main goal of your feature.
13+
14+
If it fixes an issue, place a link to the issue here.
15+
16+
If it fixes an obvious bug, please tell users about the impact and effect of the problem.
17+
-->
18+
19+
## What is the expected result?
20+
<!---
21+
How can one check these changes after applying?
22+
23+
Describe, what (resource, state, event, etc.) MUST or MUST NOT change/happen after applying these changes.
24+
-->
25+
26+
## Checklist
27+
- [ ] The code is covered by unit tests.
28+
- [ ] e2e tests passed.
29+
- [ ] Documentation updated according to the changes.
30+
- [ ] Changes were tested in the Kubernetes cluster manually.

.github/workflows/build_dev.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and push for dev
2+
3+
env:
4+
MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }}
5+
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
6+
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }}
7+
MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }}
8+
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_DEV_MODULES_REGISTRY_LOGIN }}
9+
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }}
10+
11+
on:
12+
pull_request:
13+
push:
14+
branches:
15+
- main
16+
17+
jobs:
18+
dev_setup_build:
19+
runs-on: ubuntu-latest
20+
name: Build and Push images
21+
steps:
22+
- name: Set vars for PR
23+
if: ${{ github.ref_name != 'main' }}
24+
run: |
25+
MODULES_MODULE_TAG="$(echo pr${{ github.ref_name }} | sed 's/\/.*//g')"
26+
echo "MODULES_MODULE_TAG=$MODULES_MODULE_TAG" >> "$GITHUB_ENV"
27+
shell: bash
28+
- name: Set vars for main
29+
if: ${{ github.ref_name == 'main' }}
30+
run: |
31+
echo "MODULES_MODULE_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV"
32+
shell: bash
33+
- name: Print vars
34+
run: |
35+
echo MODULES_REGISTRY=$MODULES_REGISTRY
36+
echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME
37+
echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME
38+
echo MODULES_MODULE_SOURCE=$MODULES_MODULE_SOURCE
39+
echo MODULES_MODULE_TAG=$MODULES_MODULE_TAG
40+
shell: bash
41+
42+
- uses: actions/checkout@v4
43+
- uses: deckhouse/modules-actions/setup@v1
44+
- uses: deckhouse/modules-actions/build@v1

.github/workflows/build_prod.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build and push for prod
2+
3+
env:
4+
MODULES_REGISTRY: ${{ vars.PROD_REGISTRY }}
5+
CI_COMMIT_REF_NAME: ${{ github.ref_name }}
6+
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }}
7+
MODULE_SOURCE_NAME: ${{ vars.PROD_MODULE_SOURCE_NAME }}
8+
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_PROD_MODULES_REGISTRY_LOGIN }}
9+
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
10+
MODULES_MODULE_TAG: ${{ github.ref_name }}
11+
12+
on:
13+
push:
14+
tags:
15+
- '**'
16+
17+
jobs:
18+
prod_ce_setup_build:
19+
runs-on: ubuntu-latest
20+
name: Build and Push CE
21+
steps:
22+
- name: SET VAR
23+
run: |
24+
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ce/modules" >> "$GITHUB_ENV"
25+
- run: |
26+
echo $MODULES_REGISTRY
27+
echo $MODULES_MODULE_NAME
28+
echo $MODULES_MODULE_SOURCE
29+
echo $MODULES_MODULE_TAG
30+
shell: bash
31+
name: Show vars
32+
33+
- uses: actions/checkout@v4
34+
- uses: deckhouse/modules-actions/setup@v1
35+
- uses: deckhouse/modules-actions/build@v1
36+
37+
prod_ee_setup_build:
38+
runs-on: ubuntu-latest
39+
name: Build and Push EE
40+
steps:
41+
- name: SET VAR
42+
run: |
43+
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/ee/modules" >> "$GITHUB_ENV"
44+
- run: |
45+
echo $MODULES_REGISTRY
46+
echo $MODULES_MODULE_NAME
47+
echo $MODULES_MODULE_SOURCE
48+
echo $MODULES_MODULE_TAG
49+
shell: bash
50+
name: Show vars
51+
52+
- uses: actions/checkout@v4
53+
- uses: deckhouse/modules-actions/setup@v1
54+
- uses: deckhouse/modules-actions/build@v1
55+
56+
prod_fe_setup_build:
57+
runs-on: ubuntu-latest
58+
name: Build and Push FE
59+
steps:
60+
- name: SET VAR
61+
run: |
62+
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/fe/modules" >> "$GITHUB_ENV"
63+
- run: |
64+
echo $MODULES_REGISTRY
65+
echo $MODULES_MODULE_NAME
66+
echo $MODULES_MODULE_SOURCE
67+
echo $MODULES_MODULE_TAG
68+
shell: bash
69+
name: Show vars
70+
71+
- uses: actions/checkout@v4
72+
- uses: deckhouse/modules-actions/setup@v1
73+
- uses: deckhouse/modules-actions/build@v1

.github/workflows/checks.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
7+
jobs:
8+
release-label:
9+
name: Release note label
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check minimum labels
14+
uses: mheap/github-action-required-labels@v5
15+
with:
16+
mode: minimum
17+
count: 1
18+
labels: "release-note/dependencies, dependencies, release-note/deprecation, release-note/breaking-change, release-note/bug, bug, release-note/enhancement, enhancement, release-note/documentation, documentation, release-note/new-feature, release-note/ignore"

.github/workflows/deploy_dev.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy Dev
2+
3+
env:
4+
MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }}
5+
CI_COMMIT_REF_NAME: ${{ github.event.inputs.tag }}
6+
MODULES_MODULE_NAME: ${{ vars.RENAMED_MODULE_NAME }}
7+
MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }}
8+
MODULES_REGISTRY_LOGIN: ${{ vars.RENAMED_DEV_MODULES_REGISTRY_LOGIN }}
9+
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }}
10+
RELEASE_CHANNEL: ${{ github.event.inputs.channel }}
11+
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}
12+
13+
on:
14+
workflow_dispatch:
15+
inputs:
16+
channel:
17+
description: "Select release channel"
18+
type: choice
19+
default: alpha
20+
options:
21+
- "alpha"
22+
- "beta"
23+
- "early-access"
24+
- "stable"
25+
- "rock-solid"
26+
27+
tag:
28+
description: "The module's tag, which must include the -dev1 postfix. For example: v1.21.1-dev1"
29+
type: string
30+
required: true
31+
32+
enableBuild:
33+
type: boolean
34+
default: true
35+
description: 'Set to true if build is required'
36+
37+
jobs:
38+
deploy-dev:
39+
runs-on: ubuntu-latest
40+
name: Deploy dev
41+
steps:
42+
- name: PRINT VARS
43+
run: |
44+
echo MODULES_REGISTRY=$MODULES_REGISTRY
45+
echo MODULES_MODULE_SOURCE=$MODULES_MODULE_SOURCE
46+
echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME
47+
echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME
48+
echo RELEASE_CHANNEL=$RELEASE_CHANNEL
49+
echo MODULES_MODULE_TAG=$MODULES_MODULE_TAG
50+
shell: bash
51+
- name: Validation for tag
52+
run: |
53+
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+-dev1$'
54+
shell: bash
55+
56+
- uses: actions/checkout@v4
57+
- uses: deckhouse/modules-actions/setup@v1
58+
- if: ${{ github.event.inputs.enableBuild == 'true' }}
59+
uses: deckhouse/modules-actions/build@v1
60+
- uses: deckhouse/modules-actions/deploy@v1

0 commit comments

Comments
 (0)