Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
742 commits
Select commit Hold shift + click to select a range
7068d17
Merge pull request #266 from wawa0210/master
Apr 12, 2024
30c896e
update hami license and add license check (#268)
Apr 12, 2024
3617dde
fix bad link in README (#270)
panpan0000 Apr 15, 2024
2c1c469
add aliases import validation
Apr 16, 2024
9f445ac
fix: When a node cannot bind, it should stop scheduling pods to that …
chaunceyjiang Apr 16, 2024
3b7b606
update CONTRIBUTING.md
Apr 17, 2024
4e9dedb
Merge pull request #273 from chaunceyjiang/bind
Apr 17, 2024
b918011
Support GPU Utilization Metrics
chaunceyjiang Apr 18, 2024
68e3e3a
support new cambricon devices
archlitchi Apr 22, 2024
182fe85
remove unused files
archlitchi Apr 22, 2024
d9a8726
update mlu-related docs and examples
archlitchi Apr 22, 2024
c3c1d15
Merge pull request #280 from chaunceyjiang/device_util
Apr 22, 2024
1e781d7
update libvgpu
archlitchi Apr 22, 2024
103b2b6
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Apr 22, 2024
0e2a6e4
add scheduler policy design doc
lengrongfu Feb 4, 2024
d472283
scheduler server add leader elect
lengrongfu Mar 13, 2024
e4a4600
Merge pull request #196 from lengrongfu/feat/add-leader-elect-param
Apr 22, 2024
4f1a323
Merge pull request #152 from lengrongfu/add_scheduler_policy
Apr 22, 2024
c30db33
fix nvidia device plugin nodename init sort error
Apr 25, 2024
4dd84d3
fix metrics error
archlitchi Apr 25, 2024
e892934
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Apr 25, 2024
90af849
fix RegistrInAnnotation log time error
Apr 28, 2024
54715cd
fix device plugin crash whrn numa get err (#290)
Apr 28, 2024
d59ef57
update
archlitchi Apr 28, 2024
f859cf9
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Apr 28, 2024
d770a47
To avoid swallowing exception information during device stop, it shou…
Apr 30, 2024
de36c8c
add break change document
lengrongfu Apr 30, 2024
7a5b7ea
Replace project architecture diagram (#296)
totapotato May 6, 2024
e678dbe
fix gpu type matching mechanism
May 6, 2024
fd8deca
triv:Remove the build double quotes
May 7, 2024
3648648
add support for 910B devices
archlitchi May 11, 2024
17bf9e5
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi May 11, 2024
548892a
update webhook and charts
archlitchi May 11, 2024
c0ce784
remove github robot
May 13, 2024
50cc567
update docs for v2.3.11
archlitchi May 13, 2024
dda23af
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi May 13, 2024
1cf3470
update ascend_docs
archlitchi May 13, 2024
45b97cd
update ascend_docs
archlitchi May 13, 2024
81fea57
add hami repos
May 13, 2024
9065c76
Merge pull request #263 from Project-HAMi/dependabot/docker/docker/nv…
hami-robott[bot] May 16, 2024
1c7418b
update dockerwithlib
archlitchi May 16, 2024
f2e3126
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi May 16, 2024
17052d8
add scheduler command
CoderTH May 15, 2024
5b04c5b
add scheduler policy doc (#312)
CoderTH May 17, 2024
796e5c5
update docs
archlitchi May 21, 2024
c14da94
Do not use job-patch to modify failurePolicy.
chaunceyjiang May 20, 2024
018881d
update
archlitchi May 23, 2024
834ba44
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi May 23, 2024
2e839f0
remove hygon related files
archlitchi May 23, 2024
7189c97
update docs
archlitchi May 23, 2024
e341df8
update hygon
archlitchi May 23, 2024
a7c1619
update charts
archlitchi May 24, 2024
3c0c045
update image
archlitchi May 24, 2024
e3305a6
update cambricon docs
archlitchi May 24, 2024
eafb2fd
update docs
archlitchi May 24, 2024
b398634
update
archlitchi May 27, 2024
5df963d
update
archlitchi May 27, 2024
18e86e5
update
archlitchi May 28, 2024
4af7069
The annotation of the device that has been deleted is incorrect. (#323)
chaunceyjiang May 28, 2024
70cd1e3
fix bugs
archlitchi May 31, 2024
29f353a
update hami roadmp
May 31, 2024
39baf55
Bump docker/login-action from 3.1.0 to 3.2.0
dependabot[bot] May 28, 2024
299e421
enhance unregisterd node logs
May 23, 2024
7ea1e8f
Bump ubuntu from 20.04 to 24.04 in /docker
dependabot[bot] May 23, 2024
cabb7fb
enhance get current node pendding pods (#340)
Jun 3, 2024
4399dc1
Fix the issue where scheduling can still occur on the node when the d…
chaunceyjiang Jun 4, 2024
8f82997
:bulb: Upate Benchmark build script and deployment files (#279)
haitwang-cloud Jun 4, 2024
7e23ec4
add pod utilization dashboard (#342)
CoderTH Jun 5, 2024
b379f1d
fix doc (#337)
lengrongfu Jun 11, 2024
128611a
fix: typo in use_exclusive_card.yaml and add new exclusive example (#…
JasonHe-WQ Jun 17, 2024
a8a4830
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Jun 17, 2024
7ed4a58
optimization node compute score (#336)
lengrongfu Jun 19, 2024
7ffc4da
Bump golang.org/x/net from 0.22.0 to 0.26.0 (#344)
dependabot[bot] Jun 21, 2024
d063d1f
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Jun 24, 2024
790fe12
Bump github.com/spf13/cobra from 1.7.0 to 1.8.1 (#362)
dependabot[bot] Jun 25, 2024
972d9f3
feat: Update webhook.yaml to whitelist kube-system and istio-system n…
haitwang-cloud Jun 25, 2024
af5767f
Fix HostGPUMemoryUsage wrong unit (#367)
joy717 Jun 25, 2024
53df0f2
upgrade go-nvml version (#371)
lengrongfu Jun 27, 2024
8b5e5b8
feat: add liveness probe on scheduler extender (#354)
JasonHe-WQ Jun 28, 2024
e0427fb
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Jul 1, 2024
1d9faf4
docs: Optimize the user experience of using documents (#380)
wjp-cn Jul 10, 2024
ced2900
feat: support huawei ascend310p
peizhaoyou Jul 15, 2024
34bc150
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Jul 17, 2024
22ef124
update charts
archlitchi Jul 19, 2024
ce92821
fix: CUDA_DISABLE_CONTROL not working properly (#384)
joy717 Jul 25, 2024
8f0ef98
feat: Add GPU node selector to scheduler deployment (#376)
haitwang-cloud Jul 25, 2024
92acc44
bump github.com/NVIDIA/k8s-device-plugin v0.15.0 (#298)
morlay Jul 25, 2024
87bd0fa
add workflow to build chart tag and image (#309)
calvin0327 Jul 25, 2024
2ffa5ac
update mountPath
archlitchi Jul 25, 2024
526cb3d
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Jul 25, 2024
83197c8
update chart version
archlitchi Jul 25, 2024
6399471
update golang version
archlitchi Jul 25, 2024
f5a106b
update golang version
archlitchi Jul 25, 2024
45e16cc
remove arm64 from release ci
archlitchi Jul 25, 2024
03d17d6
add submodule to build-image-release
archlitchi Jul 25, 2024
9948e40
update master ci
archlitchi Jul 26, 2024
c7d3dbf
update ci
archlitchi Jul 26, 2024
cdc7262
update ci
archlitchi Jul 26, 2024
eb14ee2
update ci
archlitchi Jul 26, 2024
7e930b9
update ci
archlitchi Jul 26, 2024
0901691
update ci
archlitchi Jul 26, 2024
3f60981
Update MAINTAINERS.md
Jul 29, 2024
07b95b9
fixed go build image version
chaunceyjiang Jul 29, 2024
38313a4
fix goproxy.cn
archlitchi Aug 2, 2024
f1f3093
Support GPU Utilization Metrics (#258)
chaunceyjiang Aug 2, 2024
3ddebda
disable PreferredAllocation
lengrongfu Aug 2, 2024
2c972a0
Bump azure/setup-helm from 3 to 4
dependabot[bot] Aug 2, 2024
42c5754
Bump docker/build-push-action from 5.1.0 to 6.5.0
dependabot[bot] Aug 2, 2024
7a365d0
Bump docker/login-action from 3.2.0 to 3.3.0
dependabot[bot] Jul 26, 2024
facfff3
Signed-off-by: wawa0210 <xiao.zhang@daocloud.io> (#417)
Aug 5, 2024
83273db
update ci
archlitchi Aug 6, 2024
2a8884c
Merge branch 'master' of github.com:Project-HAMi/HAMi
archlitchi Aug 6, 2024
a3b625c
Bump docker/build-push-action from 6.5.0 to 6.6.0 (#420)
dependabot[bot] Aug 8, 2024
901b43a
optimization code
lengrongfu Jul 26, 2024
7a6319d
add hami community Governance
Aug 12, 2024
1d5f0e5
update roadmap&update community governace
Aug 12, 2024
2cf0dec
Bump docker/build-push-action from 6.6.0 to 6.6.1
dependabot[bot] Aug 8, 2024
adfc166
add vgpu doc and update the readme. (#430)
william-wang Aug 13, 2024
4b88138
add image vulnerability scanner
Aug 13, 2024
090c327
add hami vulnerability scan and report
Aug 13, 2024
c33bc6b
Update ci-image-scanning.yaml
Aug 13, 2024
b3dd1ca
Update ci-image-scanning.yaml
Aug 13, 2024
c81f6fd
Update ci-image-scanning.yaml
Aug 13, 2024
1ea64f3
fix: fix duplicate resource keys in configmap (#422)
devenami Aug 14, 2024
d534a1a
Bump github.com/opencontainers/runc from 1.1.2 to 1.1.12
dependabot[bot] Aug 14, 2024
5c5c393
fix data race when read pods info
lengrongfu Aug 7, 2024
5f71955
add codeql analysis
Aug 14, 2024
7a677c7
Bump github/codeql-action from 2 to 3
dependabot[bot] Aug 19, 2024
56bb5e9
Bump actions/setup-go from 4 to 5
dependabot[bot] Aug 19, 2024
b253768
update hami logo (#455)
lengrongfu Aug 27, 2024
07902a0
update hami logo (#456)
lengrongfu Aug 29, 2024
321e042
feat: Support for multiple versions of cudevshr for vGPUmonitor (#458)
zoyopei Sep 2, 2024
6683c37
add node record pod info (#451)
lengrongfu Sep 2, 2024
fcfee50
update hami sandbox project
Sep 4, 2024
5a5f955
Add OpenSSF Best Practices Badge
Sep 4, 2024
22112d3
add Coverage Analytics
Sep 6, 2024
5dfe03a
fix OpenSSF Best Practices
Sep 6, 2024
ca49092
Bump github.com/opencontainers/runc from 1.1.12 to 1.1.14
dependabot[bot] Sep 6, 2024
14faf52
Bump docker/build-push-action from 6.6.1 to 6.7.0
dependabot[bot] Aug 13, 2024
1682454
add issue template
Sep 9, 2024
93f9e10
update ci
archlitchi Sep 11, 2024
ab318a3
fix golang-lint (#486)
Sep 11, 2024
0108edc
update hami logo
lengrongfu Sep 10, 2024
dd7deeb
add dev branch ci & remove unused binary (#487)
Sep 11, 2024
4a48403
update docs
archlitchi Sep 11, 2024
7fbf144
fix codeQL ci
archlitchi Sep 11, 2024
a5a7224
refactoring ascend device code (#492)
zoyopei Sep 14, 2024
74f29b0
update Readme.md and Readme_cn.md (#489)
Sep 14, 2024
dd1a976
fix device configmap (#494)
zoyopei Sep 18, 2024
8e61772
ignore chart lint when charts has no chage
Sep 22, 2024
a4ddf05
support pr build hami images
Sep 20, 2024
4e80a0f
build test for pr image
Sep 22, 2024
cd5b74f
add trivy ignore file
Sep 22, 2024
3983e10
fix trivy scan low disk
Sep 23, 2024
f2ea682
Fix HAMi image is too large and uses inappropriate base image (#508)
Sep 24, 2024
45051ef
add filter device when register node by uuid or index
lengrongfu Sep 14, 2024
02e7a20
Fixed Ascend configuration file being placed outside helm charts temp…
Sep 23, 2024
80ad96d
update chart (#517)
Sep 27, 2024
a3c67ac
add hami release process
Sep 23, 2024
6e29dca
Signed-off-by: wawa0210 <xiao.zhang@daocloud.io>
Sep 28, 2024
758fef1
Bump docker/build-push-action from 6.7.0 to 6.8.0
dependabot[bot] Sep 28, 2024
f958eb9
release to v2.4 (#524)
Sep 29, 2024
5ae41ef
fix build badge
Sep 29, 2024
058d4c0
update action-gh-release template file to more accurate matching
Sep 29, 2024
0124ef0
Bump actions/download-artifact from 3 to 4
dependabot[bot] Sep 30, 2024
b0d6bf1
Bump docker/build-push-action from 6.8.0 to 6.9.0
dependabot[bot] Sep 30, 2024
dbed0bd
Bump actions/upload-artifact from 3.1.3 to 4.4.0
dependabot[bot] Sep 30, 2024
fac239f
Refactor helm "Admission Webhook" config. (#532)
4gt-104 Oct 11, 2024
4b76f33
Bump aquasecurity/trivy-action from 0.24.0 to 0.27.0
dependabot[bot] Oct 11, 2024
00daa3e
Bump actions/upload-artifact from 4.4.0 to 4.4.3
dependabot[bot] Oct 9, 2024
36ef4c4
Bump ubuntu from 20.04 to 24.04 in /docker
dependabot[bot] Jul 26, 2024
ddec252
fix: error 'index out of range [1] with length 1' happen when allocat…
lijm87 Sep 29, 2024
cbc816b
Fix code scanning alert-Incorrect conversion between integer types
ghostloda Oct 14, 2024
33681af
update hami-core version (#557)
chaunceyjiang Oct 16, 2024
f555897
Bump aquasecurity/trivy-action from 0.27.0 to 0.28.0
dependabot[bot] Oct 15, 2024
f71e0de
Mthreads support (#560)
Oct 16, 2024
28f20a6
Fix code scanning alert-Incorrect conversion between integer types
ghostloda Oct 17, 2024
7f972b0
update docs (#567)
ghostloda Oct 23, 2024
323a8f4
migrate hami slack to cncf hami group
Oct 23, 2024
b0873aa
Fix pod assignment issue when pod already has a node assigned
chaunceyjiang Oct 21, 2024
66cabbf
fix(scheduler): prevent array out-of-bounds when GPU containers are p…
Nimbus318 Oct 25, 2024
3f24a36
improve pkg/k8sutil/pod.go ut coverage
Oct 24, 2024
b030525
Metax GPU topo-awareness support (#574)
Oct 28, 2024
233184e
update docs (#578)
Oct 29, 2024
3245d26
remove watermark of MetaX topo diagrams (#581)
obnah Oct 30, 2024
6405ce5
update hami talk & reference
Oct 30, 2024
6df0d0b
fix: wrong quota for fitInDevices (#593)
joy717 Nov 5, 2024
72815d9
correct deployments path (#608)
dublc Nov 15, 2024
fc5cf26
Bump codecov/codecov-action from 4 to 5
dependabot[bot] Nov 14, 2024
7c6b722
update chart and add a cm for scheduler (#614)
Nov 15, 2024
7dc32d1
Fix configMap device-config not properly installed (#616)
Nov 15, 2024
1011ff1
update ci and initdevices logic (#618)
Nov 15, 2024
69370a7
Pre release to v2.4.1 (#619)
Nov 15, 2024
5396897
fix(helm): handle Kubernetes version string by stripping metadata aft…
Nov 16, 2024
6545472
Update vGPUmonitor to add dynamic adjustment on core and memory limit…
Nov 18, 2024
b5d36f8
Bump aquasecurity/trivy-action from 0.28.0 to 0.29.0
dependabot[bot] Nov 20, 2024
8ea0855
feat: support device plugin daemonset update strategy (#628)
devenami Nov 22, 2024
feb5a55
add ut about scheduler policy
yt-huang Nov 25, 2024
a432c6d
chore: add NOTICE file and update copyright headers to reflect 2024 i…
haitwang-cloud Nov 20, 2024
7ac2b8d
add ut for the scheduler (#645)
shijinye Nov 28, 2024
626eda6
docs(issue-tmpl): add FAQ link to issue templates (#647)
Nimbus318 Nov 28, 2024
64ae953
fix: filter device registry to node (#639)
lengrongfu Nov 28, 2024
e5abdbd
Add self-hosted runner (#659)
Nov 29, 2024
bb535a0
fix-example-yaml:
Dec 3, 2024
7003ac9
update docs (#668)
yangshiqi Dec 4, 2024
178d32d
add ut for ascend (#664)
shijinye Dec 4, 2024
24fd039
Bump nvidia/cuda in /docker
dependabot[bot] Dec 3, 2024
2066410
optimization map init in test
lengrongfu Dec 4, 2024
54b8f74
Optimize monitor (#683)
Ethan-rookie Dec 5, 2024
94ba833
fix code lint faild
lengrongfu Dec 6, 2024
028b7e6
fix(helm): Add NODE_NAME env var to the vgpu-monitor container from s…
Nimbus318 Dec 13, 2024
bb9f0c6
fix vGPUmonitor deviceidx is always 0 (#684)
lengrongfu Dec 13, 2024
1b8feb3
add ut for pkg/scheduler/event.go (#688)
Dec 13, 2024
933505b
add ut for nodes (#695)
shijinye Dec 13, 2024
bcdfb41
add license for pkg/scheduler/event_test.go
Dec 14, 2024
2be5564
fix: exception occurred while creating multiple pods with ascend gpu …
lijm87 Dec 16, 2024
dc8960b
add ut for device/nvidia
shijinye Nov 29, 2024
bfef70b
add ut for pkg/monitor/nvidia/v0/spec.go
yt-huang Dec 3, 2024
e564934
Enable Dynamic-mig feature for HAMi (#708)
Dec 16, 2024
7e8864a
Fix chart can not be deployed properly (#711)
archlitchi Dec 16, 2024
050f91b
Fix NodeLock issue (#714)
archlitchi Dec 17, 2024
4785c8f
fix example yaml (#709)
lixd Dec 18, 2024
2df7ba2
add ut for device/cambricon (#712)
shijinye Dec 18, 2024
d6d9280
Update dynamic mig documents and examples (#718)
archlitchi Dec 19, 2024
f8387c1
Bump actions/upload-artifact from 4.4.3 to 4.5.0
dependabot[bot] Dec 18, 2024
9056fd3
random time may be zero
shijinye Dec 10, 2024
3985b5b
Bump docker/build-push-action from 6.9.0 to 6.10.0
dependabot[bot] Nov 26, 2024
3c220fc
fix grafana dashboard and clarify dashboard usage more clearly; Fix t…
jiangsanyin Oct 10, 2024
b5a8b27
update examples and README
xiaoyao Dec 4, 2024
c499ab5
fix docs
xiaoyao Dec 4, 2024
659bef8
add ut for github.com/Project-HAMi/HAMi/pkg/scheduler/pod.go
yt-huang Dec 3, 2024
28a0528
Add design document to 'dynamic-mig' feature (#725)
archlitchi Dec 23, 2024
a0a007b
fix(doc): fix a typo and resolve markdown warnings in the tasklist
Dec 23, 2024
6d70d6c
add-nodelock-ut (#719)
learner0810 Dec 24, 2024
88c6b62
test: add ut about pkg/version/version.go (#677)
Dec 24, 2024
cd12260
Update on mig mode (#726)
archlitchi Dec 24, 2024
311d18b
Update documents for config & config_cn (#729)
archlitchi Dec 24, 2024
7527b2b
set PASS_DEVICE_SPECS ENV to device-plugin (#690)
jingzhe6414 Dec 27, 2024
6353e9e
fix device-plugin-version (#743)
learner0810 Dec 27, 2024
35813b5
feat: Return the nodes that failed to be scheduled back to the schedu…
chaunceyjiang Dec 27, 2024
b6ad0c6
fix(log): fix missing log output in nvidiadeviceplugin server (#735)
elrondwong Dec 27, 2024
5839076
support configuration resources limits and requests
flpanbin Dec 25, 2024
96adaec
feat(test): add TestMarshalNodeDevices scenarios
elrondwong Dec 27, 2024
ac1d91d
print flags for device-plugin and scheduler
flpanbin Dec 29, 2024
1d2d2a2
Fix typos, add more contributors and maintainers. (#765)
yangshiqi Dec 31, 2024
9fdbd5f
Add a mind map to help understand this project (#764)
oceanweave Dec 31, 2024
f92c7ca
update config pages (#760)
windsonsea Dec 31, 2024
f8c97ee
add ut for device-map
KubeKyrie Dec 30, 2024
b8548c3
refactor(ci): use go.mod file for Go version in workflows
yxxhero Dec 31, 2024
602229f
fix: helm chart service label indentation issues
liymike Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug Report
about: Report a bug encountered while using HAMi.
labels: kind/bug

---

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
-->

**What happened**:

**What you expected to happen**:

**How to reproduce it (as minimally and precisely as possible)**:

**Anything else we need to know?**:

- The output of `nvidia-smi -a` on your host
- Your docker or containerd configuration file (e.g: `/etc/docker/daemon.json`)
- The hami-device-plugin container logs
- The hami-scheduler container logs
- The kubelet logs on the node (e.g: `sudo journalctl -r -u kubelet`)
- Any relevant kernel output lines from `dmesg`

**Environment**:
- HAMi version:
- nvidia driver or other AI device driver version:
- Docker version from `docker version`
- Docker command, image and tag used
- Kernel version from `uname -a`
- Others:

4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: FAQ
url: https://github.com/Project-HAMi/HAMi/issues/646
about: Frequently asked questions and common solutions.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Enhancement Request
about: Suggest an enhancement to the project
labels: kind/feature

---
<!-- Please only use this template for submitting enhancement requests -->

**What would you like to be added**:

**What type of PR is this?**

/kind feature

**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:
Fixes #

**Special notes for your reviewer**:

**Does this PR introduce a user-facing change?**:
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/good-first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Good First Issue
about: Publish a good first issue
labels: good first issue

---

<!-- Please use this template while publishing a good first issue. Thanks!
-->

**Task description**:

**Solution**:

**Who can join or take the task**:

The good first issue is intended for `first-time contributors` to get started on his/her contributor journey.

After a contributor has successfully completed 1-2 good first issue's,
they should be ready to move on to `help wanted` items, saving the remaining `good first issue` for other new contributors.

**How to join or take the task**:

Just reply on the issue with the message `/assign` in a separate line.

Then, the issue will be assigned to you.

**How to ask for help**:

If you need help or have questions, please feel free to ask on this issue.
The issue author or other members of the community will guide you through the contribution process.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Question
about: Question relating to HAMi.
labels: kind/question

---

**Please provide an in-depth description of the question you have**:

**What do you think about this question?**:

**Environment**:
- HAMi version:
- Kubernetes version:
- Others:
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
**What type of PR is this?**

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
-->

**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:
Fixes #

**Special notes for your reviewer**:

**Does this PR introduce a user-facing change?**:
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates


version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/docker"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
29 changes: 29 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .github/release.yml
changelog:
exclude:
labels:
- ignore-for-release
- github-actions
authors:
- dependabot[bot]
categories:
- title: ✨ New Features
labels:
- feature
- design
- enhancement
- title: 🐛 Bug Fixes
labels:
- bug
- title: 📚 Documentation
labels:
- documentation
- title: ⬆️ Dependencies
labels:
- dependencies
- title: 💥 Breaking Changes
labels:
- breaking-change
- title: 🔨 Other Changes
labels:
- "*"
144 changes: 144 additions & 0 deletions .github/workflows/auto-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
name: 1.Release

# it is trigger by tag event:
# 1 build the release image, push images to ghcr.io, and build image like: ghcr.io/xxxx:v1.0.0
# 2 package the chart package, update index.yaml and commit to '/charts' of branch 'github_pages' ( PR with label pr/release/robot_update_githubpage )
# 3 create changelog file, commit to '/changelogs' of branch 'github_pages' for githubPage ( PR with label pr/release/robot_update_githubpage )
# 4 commit '/docs' to '/docs' of branch 'github_pages'
# 5 create a release , attached with the chart and changelog

on:
release:
types:
- prereleased
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
default: v1.0.0
permissions: write-all

jobs:
pre-release:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
tag: ${{ env.RUN_TAG }}
steps:
- name: Check Version
run: |
TagVersion="${{ env.RUN_TAG }}"
RecordVersion=` cat VERSION | tr -d ' ' | tr -d '\n' `
if [ "$RecordVersion" != "$TagVersion" ] ; then
echo "error, version $RecordVersion of '/VERSION' is different with Tag $TagVersion "
exit 1
fi
#no need to check chart version, which will auto update to /VERSION by CI
# generate release notes for the new release branch
- name: Generate pre release notes
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
generate_release_notes: true

ensure-tag:
runs-on: ubuntu-latest
needs: pre-release
outputs:
tag: ${{ env.RUN_TAG }}
steps:
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
echo "=========original CI disk space"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "=========after clean up, the left CI disk space"
df -h
- name: Get Ref
id: get_ref
run: |
if ${{ github.event_name == 'workflow_dispatch' }} ; then
echo "call by self workflow_dispatch"
echo "RUN_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
YBranchName=` grep -Eo "v[0-9]+\.[0-9]+" <<< "${{ github.event.inputs.tag }}" `
elif ${{ github.event_name == 'push' }} ; then
echo "call by push tag"
echo "RUN_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
YBranchName=` grep -Eo "v[0-9]+\.[0-9]+" <<< "${GITHUB_REF##*/}" `
else
echo "unexpected event: ${{ github.event_name }}"
exit 1
fi
echo "YBranchName=${YBranchName}"
if [ -n "$YBranchName" ] ; then
echo "RUN_YBranchName=${YBranchName}" >> $GITHUB_ENV
else
echo "error, failed to find y branch"
exit 1
fi
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.RUN_TAG }}
# if branch exists, the action will no fail, and it output created=false
- name: release Y branch
uses: peterjgrainger/action-create-branch@v3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'release-${{ env.RUN_YBranchName }}'
sha: '${{ github.sha }}'


release-image:
needs: ensure-tag
uses: ./.github/workflows/call-release-image.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}
secrets: inherit

release-chart:
needs: [ensure-tag]
uses: ./.github/workflows/call-release-helm.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}
submit: true
secrets: inherit

# generate changelog and update to github releases pages
release-notes:
needs: [release-chart,release-image]
uses: ./.github/workflows/call-release-notes.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}

release-website:
needs: [release-notes]
uses: ./.github/workflows/call-release-website.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}
# excute a full e2e test when hami release
release-e2e:
needs: [release-notes]
uses: ./.github/workflows/call-e2e.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}

# excute a compatibility test when hami release
release-e2e-upgrade:
needs: [release-notes]
uses: ./.github/workflows/call-e2e-upgrade.yaml
with:
ref: ${{ needs.ensure-tag.outputs.tag }}

18 changes: 18 additions & 0 deletions .github/workflows/call-e2e-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Call e2e upgrade test

on:
workflow_call:
inputs:
ref:
required: true
type: string
permissions: write-all

jobs:
upgrade-e2e:
runs-on: ubuntu-latest
steps:
- name: e2e upgrade test
# https://github.com/actions/virtual-environments/issues/709
run: |
echo "Need to add e2e upgrade test"
18 changes: 18 additions & 0 deletions .github/workflows/call-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Call e2e test

on:
workflow_call:
inputs:
ref:
required: true
type: string
permissions: write-all

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: e2e test
# https://github.com/actions/virtual-environments/issues/709
run: |
echo "Need to add e2e test"
Loading