Skip to content

Commit a558ac7

Browse files
authored
Merge pull request #1 from hoverkraft-tech/feat/helm/1st-implem
feat(helm): add dufs chart
2 parents da4a35b + 341510f commit a558ac7

28 files changed

+552
-63
lines changed

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github:
4+
- fredleger
5+
- neilime
6+
patreon: webofmars
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
13+
**Expected behavior**
14+
A clear and concise description of what you expected to happen.
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
18+
19+
**Kubernetes (please complete the following information):**
20+
- Kubernetes version [`kubectl version --short`]
21+
22+
**HRE pod logs**
23+
`kubectl logs hre-xxxxxxx`
24+
25+
**Additional context**
26+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# .github/dependabot.yml
2+
version: 2
3+
updates:
4+
5+
- package-ecosystem: "github-actions"
6+
directories:
7+
- "/"
8+
open-pull-requests-limit: 3
9+
labels:
10+
- "github_actions"
11+
schedule:
12+
interval: "weekly"
13+
day: friday
14+
time: '04:00'
15+
16+
- package-ecosystem: "docker"
17+
directory: "/"
18+
open-pull-requests-limit: 3
19+
labels:
20+
- "docker"
21+
schedule:
22+
interval: "weekly"
23+
day: friday
24+
time: '04:10'
25+
26+
- package-ecosystem: "pip"
27+
directory: "/"
28+
open-pull-requests-limit: 3
29+
labels:
30+
- "pip"
31+
schedule:
32+
interval: "weekly"
33+
day: friday
34+
time: '04:20'

.github/release-drafter.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
template: |
2+
## What's Changed
3+
4+
$CHANGES
5+
6+
## Full Changelog
7+
8+
- https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
9+
name-template: "Version $RESOLVED_VERSION"
10+
tag-template: "$RESOLVED_VERSION"
11+
12+
categories:
13+
- title: '🚀 Features'
14+
labels:
15+
- 'feature'
16+
- 'feat'
17+
- title: '🐛 Bug Fixes'
18+
labels:
19+
- 'fix'
20+
- 'bugfix'
21+
- 'bug'
22+
- title: '🧰 Maintenance'
23+
label: 'chore'
24+
- title: '📚 Documentation'
25+
label: 'docs'
26+
- title: '🧪 Tests'
27+
label: 'test'
28+
- title: '🏷️ Version Tags'
29+
label: 'version'
30+
- title: '🔖 Release Tags'
31+
label: 'release'
32+
- title: '🧩 Dependencies'
33+
label: 'dependencies'
34+
- title: '🔒 Security'
35+
label: 'security'
36+
- title: '🚨 Breaking Changes'
37+
label: 'breaking'
38+
- title: '🧹 Code Cleanup'
39+
label: 'cleanup'
40+
- title: '🔧 Config'
41+
label: 'config'
42+
- title: '📦 Packages'
43+
label: 'package'
44+
- title: '🔥 Removals'
45+
label: 'removal'
46+
- title: '🚧 Work In Progress'
47+
label: 'wip'
48+
- title: '🔀 Merges'
49+
label: 'merge'
50+
- title: '🎨 Style'
51+
label: 'style'
52+
- title: '🔊 Logging'
53+
label: 'logging'
54+
- title: '🔇 Silence'
55+
label: 'silence'
56+
- title: '🤖 CI/CD'
57+
label: 'ci'
58+
59+
version-resolver:
60+
major:
61+
labels:
62+
- "release-major"
63+
minor:
64+
labels:
65+
- "release-minor"
66+
patch:
67+
labels:
68+
- "release-patch"
69+
default: patch
70+
71+
autolabeler:
72+
- label: "release-major"
73+
title:
74+
- "/^BREAKING CHANGE:/"
75+
- label: "release-minor"
76+
title:
77+
- "/^feat:/"
78+
- "/^feat\\(.+\\):/"

.github/workflows/__shared-ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Internal - Common Continuous Integration tasks
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
tag:
7+
description: "Tag Version (semver - x.x.x)"
8+
type: string
9+
required: false
10+
outputs:
11+
built-images:
12+
value: ${{ jobs.docker-build-images.outputs.built-images }}
13+
14+
jobs:
15+
16+
chart-testing:
17+
name: "Tests: helm chart"
18+
runs-on: self-hosted
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Install tools with asdf
25+
uses: asdf-vm/actions/install@v3
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.12'
29+
- name: Set up chart-testing
30+
uses: helm/chart-testing-action@v2.6.1
31+
- name: Run chart-testing (list-changed)
32+
id: list-changed
33+
run: |
34+
changed="$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})"
35+
echo "changed=${changed}"
36+
if [[ -n "$changed" ]]; then
37+
echo "INFO: The chart has changes compared to the default branch"
38+
echo "changed=true" >> "$GITHUB_OUTPUT"
39+
else
40+
echo "INFO: The chart has no changes compared to the default branch"
41+
fi
42+
- name: Run chart-testing (lint)
43+
if: steps.list-changed.outputs.changed == 'true'
44+
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
45+
- name: Create kind cluster
46+
if: steps.list-changed.outputs.changed == 'true'
47+
uses: helm/kind-action@v1.12.0
48+
- name: Run chart-testing (install)
49+
if: steps.list-changed.outputs.changed == 'true'
50+
run: |
51+
ct install \
52+
--target-branch ${{ github.event.repository.default_branch }} \
53+
--wait"
54+
- name: show pods
55+
if: steps.list-changed.outputs.changed == 'true'
56+
run: |
57+
sleep 10
58+
kubectl get pods -A

.github/workflows/main-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Main - Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
17+
ci:
18+
name: Continuous Integration
19+
uses: ./.github/workflows/__shared-ci.yml
20+
permissions:
21+
actions: write
22+
contents: read
23+
id-token: write
24+
issues: read
25+
packages: write
26+
pull-requests: read
27+
secrets: inherit
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Pull request - Continuous Integration
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
16+
pull-request-labeler:
17+
name: Pull request labeler
18+
runs-on: self-hosted
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
steps:
23+
- uses: release-drafter/release-drafter@v6
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
disable-releaser: true
28+
29+
ci:
30+
name: Continuous Integration
31+
uses: ./.github/workflows/__shared-ci.yml
32+
permissions:
33+
actions: write
34+
contents: read
35+
id-token: write
36+
issues: read
37+
packages: write
38+
pull-requests: read
39+
secrets: inherit

0 commit comments

Comments
 (0)