mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-16 07:25:41 +02:00
chore: update repository references from uptime-industries to computeblade-community (#70)
* chore: update repository references from uptime-industries to compute-blade-community chore: update repository references from uptime-industries to compute-blade-community for consistency and clarity across all files fix: update links in CHANGELOG.md and README.md to point to the new repository location for accurate documentation fix: update Dockerfile and systemd service file to reflect the new repository URL for proper source tracking refactor: change import paths in Go files to use the new repository name for correct package referencing * chore: Add CODEOWNERS * feat: add auto-labeling --------- Co-authored-by: Cedric Kienzler <cedric@specht-labs.de>
This commit is contained in:
committed by
Cedric Kienzler
parent
27a87f3c0f
commit
631ddfedd4
70
.github/labeler.yml
vendored
Normal file
70
.github/labeler.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# API-related files
|
||||
api:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'api/**'
|
||||
- 'internal/api/**'
|
||||
- 'pkg/certificate/**'
|
||||
- 'buf.*'
|
||||
|
||||
# CLI-related files
|
||||
cli:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'api/**'
|
||||
- 'cmd/bladectl/**'
|
||||
|
||||
# Agent
|
||||
agent:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'api/**'
|
||||
- 'cmd/agent/**'
|
||||
- 'internal/agent/**'
|
||||
- 'pkg/agent/**'
|
||||
- 'pkg/events/**'
|
||||
|
||||
# Firmware-related files
|
||||
firmware:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'cmd/fanunit/**'
|
||||
- 'pkg/smartfanunit/**'
|
||||
|
||||
# Hardware-specific packages
|
||||
hardware:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/fancontroller/**'
|
||||
- 'pkg/hal/**'
|
||||
- 'pkg/ledengine/**'
|
||||
|
||||
# Utilities
|
||||
util:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'pkg/util/**'
|
||||
- 'pkg/log/**'
|
||||
|
||||
# Documentation (Markdown files or docs folders — optional here, kept for completeness)
|
||||
documentation:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: '**/*.md'
|
||||
|
||||
# Build system files
|
||||
build:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '.github/**'
|
||||
- 'Makefile'
|
||||
|
||||
# Add 'enhancement' label to any PR where the head branch name starts with `feature`
|
||||
enhancement:
|
||||
- head-branch:
|
||||
- '^feature'
|
||||
|
||||
# Add 'bug' label to any PR where the head branch name starts with `feature`
|
||||
bug:
|
||||
- head-branch:
|
||||
- '^bug'
|
||||
- '^fix'
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Enforce PR title
|
||||
name: Pull Request Hygiene
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -53,4 +53,25 @@ jobs:
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
header: pr-title-lint-error
|
||||
delete: true
|
||||
delete: true
|
||||
|
||||
labeler:
|
||||
name: "Add Labels to PR"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@v5
|
||||
id: labeler
|
||||
with:
|
||||
sync-labels: true
|
||||
dot: true
|
||||
|
||||
- shell: bash
|
||||
name: Write step-summary
|
||||
run: |
|
||||
echo "All Labels: ${{ steps.labeler.outputs.all-labels }}" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "New Labels for this iteration: ${{ steps.labeler.outputs.new-labels }}" >> "$GITHUB_STEP_SUMMARY"
|
||||
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@@ -2,7 +2,7 @@ name: Go Build - Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
permissions: write-all
|
||||
|
||||
@@ -14,8 +14,9 @@ jobs:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
id: release-please
|
||||
with:
|
||||
release-type: simple # actual releasing is handled by goreleaser
|
||||
release-type: simple # actual releasing is handled by goreleaser
|
||||
package-name: compute-blade-agent
|
||||
bump-minor-pre-major: true
|
||||
outputs:
|
||||
release_created: ${{ steps.release-please.outputs.release_created }}
|
||||
|
||||
@@ -66,7 +67,7 @@ jobs:
|
||||
# Setup tinygo
|
||||
- uses: acifani/setup-tinygo@v2
|
||||
with:
|
||||
tinygo-version: '0.37.0'
|
||||
tinygo-version: "0.37.0"
|
||||
|
||||
# Build fanunit firmware
|
||||
- name: Build FanUnit Firmware
|
||||
@@ -112,7 +113,7 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: 'Login to GitHub Container Registry'
|
||||
- name: "Login to GitHub Container Registry"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
@@ -129,10 +130,9 @@ jobs:
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
with:
|
||||
version: '~> v2'
|
||||
version: "~> v2"
|
||||
args: release --clean
|
||||
env:
|
||||
COSIGN_YES: "true"
|
||||
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
@@ -58,9 +58,9 @@ dockers:
|
||||
- agent
|
||||
- bladectl
|
||||
image_templates:
|
||||
- ghcr.io/uptime-industries/compute-blade-agent:latest
|
||||
- ghcr.io/uptime-industries/compute-blade-agent:{{ .Tag }}
|
||||
- ghcr.io/uptime-industries/compute-blade-agent:v{{ .Major }}
|
||||
- ghcr.io/compute-blade-community/compute-blade-agent:latest
|
||||
- ghcr.io/compute-blade-community/compute-blade-agent:{{ .Tag }}
|
||||
- ghcr.io/compute-blade-community/compute-blade-agent:v{{ .Major }}
|
||||
build_flag_templates:
|
||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
||||
@@ -103,7 +103,7 @@ nfpms:
|
||||
- agent
|
||||
maintainer: Matthias Riegler <me@xvzf.tech>
|
||||
description: compute-blade Agent
|
||||
homepage: https://github.com/uptime-industries/compute-blade-agent
|
||||
homepage: https://github.com/compute-blade-community/compute-blade-agent
|
||||
vendor: Uptime Industries Inc.
|
||||
license: Apache 2.0
|
||||
formats:
|
||||
@@ -127,7 +127,7 @@ nfpms:
|
||||
- bladectl_other
|
||||
maintainer: Matthias Riegler <me@xvzf.tech>
|
||||
description: bladectl
|
||||
homepage: https://github.com/uptime-industries/compute-blade-agent
|
||||
homepage: https://github.com/compute-blade-community/compute-blade-agent
|
||||
vendor: Uptime Industries Inc.
|
||||
license: Apache 2.0
|
||||
formats:
|
||||
|
||||
86
CHANGELOG.md
86
CHANGELOG.md
@@ -1,112 +1,114 @@
|
||||
# Changelog
|
||||
|
||||
## [0.8.2](https://github.com/uptime-industries/compute-blade-agent/compare/v0.8.1...v0.8.2) (2025-05-24)
|
||||
## [0.8.2](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.8.1...v0.8.2) (2025-05-24)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* auth to ghcr.io ([#63](https://github.com/uptime-industries/compute-blade-agent/issues/63)) ([e600d32](https://github.com/uptime-industries/compute-blade-agent/commit/e600d3245317eafe7df0090e7bc6f1dff45a5693))
|
||||
* auth to ghcr.io ([#63](https://github.com/compute-blade-community/compute-blade-agent/issues/63)) ([e600d32](https://github.com/compute-blade-community/compute-blade-agent/commit/e600d3245317eafe7df0090e7bc6f1dff45a5693))
|
||||
|
||||
## [0.8.1](https://github.com/uptime-industries/compute-blade-agent/compare/v0.8.0...v0.8.1) (2025-05-24)
|
||||
## [0.8.1](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.8.0...v0.8.1) (2025-05-24)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* set goreleaser version to v2.x ([#61](https://github.com/uptime-industries/compute-blade-agent/issues/61)) ([08a4e9b](https://github.com/uptime-industries/compute-blade-agent/commit/08a4e9bca67f53e69fec3ce4cdf93344f2cf1327))
|
||||
* set goreleaser version to v2.x ([#61](https://github.com/compute-blade-community/compute-blade-agent/issues/61)) ([08a4e9b](https://github.com/compute-blade-community/compute-blade-agent/commit/08a4e9bca67f53e69fec3ce4cdf93344f2cf1327))
|
||||
|
||||
## [0.8.0](https://github.com/uptime-industries/compute-blade-agent/compare/v0.7.0...v0.8.0) (2025-05-24)
|
||||
## [0.8.0](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.7.0...v0.8.0) (2025-05-24)
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* **go version:** Bump go version to 1.24 ([#58](https://github.com/uptime-industries/compute-blade-agent/issues/58))
|
||||
* **go version:** Bump go version to 1.24 ([#58](https://github.com/compute-blade-community/compute-blade-agent/issues/58))
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* **go version:** Bump go version to 1.24 ([#58](https://github.com/uptime-industries/compute-blade-agent/issues/58)) ([bb7b8cd](https://github.com/uptime-industries/compute-blade-agent/commit/bb7b8cd55d88954bb2632606e12b2c9eb057690a))
|
||||
* **go version:** Bump go version to 1.24 ([#58](https://github.com/compute-blade-community/compute-blade-agent/issues/58)) ([bb7b8cd](https://github.com/compute-blade-community/compute-blade-agent/commit/bb7b8cd55d88954bb2632606e12b2c9eb057690a))
|
||||
|
||||
## [0.7.0](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.6...v0.7.0) (2025-05-11)
|
||||
## [0.7.0](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.6...v0.7.0) (2025-05-11)
|
||||
|
||||
* **agent:** add support for mTLS authentication in gRPC server ([#54](https://github.com/uptime-industries/compute-blade-agent/issues/54))
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* **agent:** add support for mTLS authentication in gRPC server ([#54](https://github.com/compute-blade-community/compute-blade-agent/issues/54))
|
||||
|
||||
### Features
|
||||
|
||||
* **agent:** add support for mTLS authentication in gRPC server ([#54](https://github.com/uptime-industries/compute-blade-agent/issues/54)) ([70541d8](https://github.com/uptime-industries/compute-blade-agent/commit/70541d86bad675a153daf8b5c80a92de204502ab))
|
||||
* **agent:** expose version, commit, and date information in logs for better tracking ([ec6229a](https://github.com/uptime-industries/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **bladectl:** implement command structure for managing compute-blade features ([ec6229a](https://github.com/uptime-industries/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **goreleaser:** add versioning information to builds for better traceability ([ec6229a](https://github.com/uptime-industries/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **agent:** add support for mTLS authentication in gRPC server ([#54](https://github.com/compute-blade-community/compute-blade-agent/issues/54)) ([70541d8](https://github.com/compute-blade-community/compute-blade-agent/commit/70541d86bad675a153daf8b5c80a92de204502ab))
|
||||
* **agent:** expose version, commit, and date information in logs for better tracking ([ec6229a](https://github.com/compute-blade-community/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **bladectl:** implement command structure for managing compute-blade features ([ec6229a](https://github.com/compute-blade-community/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **goreleaser:** add versioning information to builds for better traceability ([ec6229a](https://github.com/compute-blade-community/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **.gitignore:** add .idea directory to ignore list to prevent IDE files from being tracked ([ec6229a](https://github.com/uptime-industries/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **bladectl:** improve error handling in identify command for better user feedback ([ec6229a](https://github.com/uptime-industries/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **.gitignore:** add .idea directory to ignore list to prevent IDE files from being tracked ([ec6229a](https://github.com/compute-blade-community/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
* **bladectl:** improve error handling in identify command for better user feedback ([ec6229a](https://github.com/compute-blade-community/compute-blade-agent/commit/ec6229ad86b4eff06e40c805f8e4f216fe844c18))
|
||||
|
||||
## [0.6.6](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.5...v0.6.6) (2025-01-14)
|
||||
## [0.6.6](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.5...v0.6.6) (2025-01-14)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* correct package name from computeblade-agent to compute-blade-agent ([#47](https://github.com/uptime-industries/compute-blade-agent/issues/47)) ([67b3411](https://github.com/uptime-industries/compute-blade-agent/commit/67b3411e32df10673c5f3bab8b76f31f366cf3ab))
|
||||
* correct package name from computeblade-agent to compute-blade-agent ([#47](https://github.com/compute-blade-community/compute-blade-agent/issues/47)) ([67b3411](https://github.com/compute-blade-community/compute-blade-agent/commit/67b3411e32df10673c5f3bab8b76f31f366cf3ab))
|
||||
|
||||
## [0.6.5](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.4...v0.6.5) (2024-08-31)
|
||||
## [0.6.5](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.4...v0.6.5) (2024-08-31)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* pin golang/tinygo versions ([ca690d4](https://github.com/uptime-industries/compute-blade-agent/commit/ca690d418f099881b6aafdb2ca4be3cee6ac73fc))
|
||||
* pin golang/tinygo versions ([ca690d4](https://github.com/compute-blade-community/compute-blade-agent/commit/ca690d418f099881b6aafdb2ca4be3cee6ac73fc))
|
||||
|
||||
## [0.6.4](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.3...v0.6.4) (2024-08-31)
|
||||
## [0.6.4](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.3...v0.6.4) (2024-08-31)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* finalize renaming ([158e7fc](https://github.com/uptime-industries/compute-blade-agent/commit/158e7fc1bde46e66327d70f87743df39070c2753))
|
||||
* finalize renaming ([158e7fc](https://github.com/compute-blade-community/compute-blade-agent/commit/158e7fc1bde46e66327d70f87743df39070c2753))
|
||||
|
||||
## [0.6.3](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.2...v0.6.3) (2024-08-05)
|
||||
## [0.6.3](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.2...v0.6.3) (2024-08-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* oci reg typo ([3cbf7a8](https://github.com/uptime-industries/compute-blade-agent/commit/3cbf7a8733dedde834f7392de0851c971a6e3a05))
|
||||
* oci reg typo ([3cbf7a8](https://github.com/compute-blade-community/compute-blade-agent/commit/3cbf7a8733dedde834f7392de0851c971a6e3a05))
|
||||
|
||||
## [0.6.2](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.1...v0.6.2) (2024-08-05)
|
||||
## [0.6.2](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.1...v0.6.2) (2024-08-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* cleanup uf2 files ([d088a1b](https://github.com/uptime-industries/compute-blade-agent/commit/d088a1ba0a1adba7694a7d2d3b7d49bb9c72fe0c))
|
||||
* cleanup uf2 files ([d088a1b](https://github.com/compute-blade-community/compute-blade-agent/commit/d088a1ba0a1adba7694a7d2d3b7d49bb9c72fe0c))
|
||||
|
||||
## [0.6.1](https://github.com/uptime-industries/compute-blade-agent/compare/v0.6.0...v0.6.1) (2024-08-05)
|
||||
## [0.6.1](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.6.0...v0.6.1) (2024-08-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bump tinygo release ([#39](https://github.com/uptime-industries/compute-blade-agent/issues/39)) ([3278678](https://github.com/uptime-industries/compute-blade-agent/commit/32786787683e2a0cd42b63b92fe7dd2c41bb6e8f))
|
||||
* bump tinygo release ([#39](https://github.com/compute-blade-community/compute-blade-agent/issues/39)) ([3278678](https://github.com/compute-blade-community/compute-blade-agent/commit/32786787683e2a0cd42b63b92fe7dd2c41bb6e8f))
|
||||
|
||||
## [0.6.0](https://github.com/uptime-industries/compute-blade-agent/compare/v0.5.0...v0.6.0) (2024-08-05)
|
||||
## [0.6.0](https://github.com/compute-blade-community/compute-blade-agent/compare/v0.5.0...v0.6.0) (2024-08-05)
|
||||
|
||||
### Features
|
||||
|
||||
* migrate to uptime-industries gh org ([#37](https://github.com/uptime-industries/compute-blade-agent/issues/37)) ([6421521](https://github.com/uptime-industries/compute-blade-agent/commit/6421521bfc94a6211ed084bf8913f413e27e5b14))
|
||||
* migrate to compute-blade-community gh org ([#37](https://github.com/compute-blade-community/compute-blade-agent/issues/37)) ([6421521](https://github.com/compute-blade-community/compute-blade-agent/commit/6421521bfc94a6211ed084bf8913f413e27e5b14))
|
||||
|
||||
## [0.5.0](https://github.com/github.com/uptime-industries/compute-blade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)
|
||||
## [0.5.0](https://github.com/github.com/compute-blade-community/compute-blade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)
|
||||
|
||||
### Features
|
||||
|
||||
* add smart fan unit support ([#29](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/29)) ([9992037](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))
|
||||
* add smart fan unit support ([#29](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/29)) ([9992037](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* smart fan unit improvements ([#31](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/31)) ([a8d470d](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))
|
||||
* smart fan unit improvements ([#31](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/31)) ([a8d470d](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))
|
||||
|
||||
## [0.4.1](https://github.com/github.com/uptime-industries/compute-blade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)
|
||||
## [0.4.1](https://github.com/github.com/compute-blade-community/compute-blade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* ${ -> ${{ ... ([#27](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/27)) ([f2cd029](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
|
||||
* add debug statement ([#25](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/25)) ([21d9942](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
|
||||
* debug statement ([#26](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/26)) ([780455e](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
|
||||
* if statement? ([#23](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/23)) ([4691e2b](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
|
||||
* rename release-please -> release workflow ([#28](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/28)) ([e86b221](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))
|
||||
* ${ -> ${{ ... ([#27](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/27)) ([f2cd029](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
|
||||
* add debug statement ([#25](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/25)) ([21d9942](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
|
||||
* debug statement ([#26](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/26)) ([780455e](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
|
||||
* if statement? ([#23](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/23)) ([4691e2b](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
|
||||
* rename release-please -> release workflow ([#28](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/28)) ([e86b221](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))
|
||||
|
||||
## [0.4.0](https://github.com/github.com/uptime-industries/compute-blade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)
|
||||
## [0.4.0](https://github.com/github.com/compute-blade-community/compute-blade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)
|
||||
|
||||
### Features
|
||||
|
||||
* switch to release-please ([#19](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/19)) ([33dd6e5](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))
|
||||
* switch to release-please ([#19](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/19)) ([33dd6e5](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* explicitly check for true before running goreleaser ([#21](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/21)) ([9c82b60](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
|
||||
* if condition ([#22](https://github.com/github.com/uptime-industries/compute-blade-agent/issues/22)) ([cee6912](https://github.com/github.com/uptime-industries/compute-blade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))
|
||||
* explicitly check for true before running goreleaser ([#21](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/21)) ([9c82b60](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
|
||||
* if condition ([#22](https://github.com/github.com/compute-blade-community/compute-blade-agent/issues/22)) ([cee6912](https://github.com/github.com/compute-blade-community/compute-blade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))
|
||||
|
||||
2
CODEOWNERS
Normal file
2
CODEOWNERS
Normal file
@@ -0,0 +1,2 @@
|
||||
@xvzf
|
||||
@cedi
|
||||
@@ -1,5 +1,5 @@
|
||||
FROM cgr.dev/chainguard/wolfi-base
|
||||
LABEL org.opencontainers.image.source="https://github.com/uptime-industries/compute-blade-agent"
|
||||
LABEL org.opencontainers.image.source="https://github.com/compute-blade-community/compute-blade-agent"
|
||||
|
||||
# Copy binaries generated by goreleaser
|
||||
COPY compute-blade-agent bladectl /bin/
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Install the agent with the one-liner below:
|
||||
|
||||
```bash
|
||||
curl -L -o /tmp/compute-blade-agent-installer.sh https://raw.githubusercontent.com/uptime-industries/compute-blade-agent/main/hack/autoinstall.sh
|
||||
curl -L -o /tmp/compute-blade-agent-installer.sh https://raw.githubusercontent.com/compute-blade-community/compute-blade-agent/main/hack/autoinstall.sh
|
||||
chmod +x /tmp/compute-blade-agent-installer.sh
|
||||
/tmp/compute-blade-agent-installer.sh
|
||||
```
|
||||
@@ -43,14 +43,14 @@ This firmware runs on the fan unit microcontroller and:
|
||||
- Forwards button events (1x = left blade, 2x = right blade).
|
||||
- Uses EMC2101 for optional advanced features like airflow-based fan control.
|
||||
|
||||
To install it, [download the `fanunit.uf2`](https://github.com/uptime-industries/compute-blade-agent/releases/latest), and follow the firmware upgrade instructions [here](https://docs.computeblade.com/fan-unit/uart#update-firmware).
|
||||
To install it, [download the `fanunit.uf2`](https://github.com/compute-blade-community/compute-blade-agent/releases/latest), and follow the firmware upgrade instructions [here](https://docs.computeblade.com/fan-unit/uart#update-firmware).
|
||||
|
||||
## Installation
|
||||
|
||||
Install the agent with the one-liner below:
|
||||
|
||||
```bash
|
||||
curl -L -o /tmp/compute-blade-agent-installer.sh https://raw.githubusercontent.com/uptime-industries/compute-blade-agent/main/hack/autoinstall.sh
|
||||
curl -L -o /tmp/compute-blade-agent-installer.sh https://raw.githubusercontent.com/compute-blade-community/compute-blade-agent/main/hack/autoinstall.sh
|
||||
chmod +x /tmp/compute-blade-agent-installer.sh
|
||||
/tmp/compute-blade-agent-installer.sh
|
||||
```
|
||||
|
||||
@@ -13,12 +13,12 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/internal/agent"
|
||||
"github.com/compute-blade-community/compute-blade-agent/internal/api"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"github.com/spf13/pflag"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/uptime-industries/compute-blade-agent/internal/agent"
|
||||
"github.com/uptime-industries/compute-blade-agent/internal/api"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
bladeapiv1alpha1 "github.com/compute-blade-community/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"github.com/spf13/cobra"
|
||||
bladeapiv1alpha1 "github.com/uptime-industries/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -2,9 +2,9 @@ package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
bladeapiv1alpha1 "github.com/compute-blade-community/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"github.com/sierrasoftworks/humane-errors-go"
|
||||
"github.com/spf13/cobra"
|
||||
bladeapiv1alpha1 "github.com/uptime-industries/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
bladeapiv1alpha1 "github.com/compute-blade-community/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"github.com/compute-blade-community/compute-blade-agent/cmd/bladectl/config"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/sierrasoftworks/humane-errors-go"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
bladeapiv1alpha1 "github.com/uptime-industries/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"github.com/uptime-industries/compute-blade-agent/cmd/bladectl/config"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials"
|
||||
|
||||
@@ -79,7 +79,7 @@ func EnsureBladectlConfigHome() (string, humane.Error) {
|
||||
if err != nil {
|
||||
return "", humane.Wrap(err, "Failed to extract home directory",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
bladeapiv1alpha1 "github.com/compute-blade-community/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
"github.com/spf13/viper"
|
||||
bladeapiv1alpha1 "github.com/uptime-industries/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
)
|
||||
|
||||
type grpcClientContextKey int
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
|
||||
"machine"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/emc2101"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/emc2101"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"golang.org/x/sync/errgroup"
|
||||
"tinygo.org/x/drivers"
|
||||
"tinygo.org/x/drivers/ws2812"
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"machine"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/emc2101"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/emc2101"
|
||||
"tinygo.org/x/drivers/ws2812"
|
||||
)
|
||||
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/uptime-industries/compute-blade-agent
|
||||
module github.com/compute-blade-community/compute-blade-agent
|
||||
|
||||
go 1.24.0
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ get_latest_release() {
|
||||
curl -s "https://api.github.com/repos/$repo/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
|
||||
}
|
||||
|
||||
github_repo="uptime-industries/compute-blade-agent"
|
||||
github_repo="compute-blade-community/compute-blade-agent"
|
||||
package_suffix=$(detect_package_suffix)
|
||||
latest_release=$(get_latest_release "$github_repo")
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=ComputeBlade Agent
|
||||
Documentation=https://github.com/uptime-industries/compute-blade-agent
|
||||
Documentation=https://github.com/compute-blade-community/compute-blade-agent
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -7,15 +7,15 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
agent2 "github.com/compute-blade-community/compute-blade-agent/pkg/agent"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/ledengine"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
agent2 "github.com/uptime-industries/compute-blade-agent/pkg/agent"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/ledengine"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package agent
|
||||
|
||||
import (
|
||||
"github.com/uptime-industries/compute-blade-agent/internal/api"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/internal/api"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
)
|
||||
|
||||
type LogConfiguration struct {
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
"errors"
|
||||
"net"
|
||||
|
||||
bladeapiv1alpha1 "github.com/compute-blade-community/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
agent2 "github.com/compute-blade-community/compute-blade-agent/pkg/agent"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
grpczap "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/logging"
|
||||
"github.com/sierrasoftworks/humane-errors-go"
|
||||
bladeapiv1alpha1 "github.com/uptime-industries/compute-blade-agent/api/bladeapi/v1alpha1"
|
||||
agent2 "github.com/uptime-industries/compute-blade-agent/pkg/agent"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
|
||||
@@ -17,11 +17,11 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/cmd/bladectl/config"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/certificate"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
|
||||
"github.com/sierrasoftworks/humane-errors-go"
|
||||
"github.com/uptime-industries/compute-blade-agent/cmd/bladectl/config"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/certificate"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/util"
|
||||
"go.uber.org/zap"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
@@ -90,7 +90,7 @@ func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, s
|
||||
if err := yaml.Unmarshal(configBytes, &bladectlConfig); err != nil {
|
||||
return humane.Wrap(err, "failed to parse bladectl config",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
"ensure your config file is valid YAML",
|
||||
)
|
||||
}
|
||||
@@ -104,7 +104,7 @@ func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, s
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "failed to decode client certificate data",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
"ensure your config file is valid YAML",
|
||||
)
|
||||
}
|
||||
@@ -113,7 +113,7 @@ func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, s
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "failed to decode client certificate key data",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
"ensure your config file is valid YAML",
|
||||
)
|
||||
}
|
||||
@@ -149,7 +149,7 @@ func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, s
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "Failed to marshal YAML config",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ func EnsureUnauthenticatedBladectlConfig(ctx context.Context, serverAddr string,
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "Failed to marshal YAML config",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ func EnsureServerCertificate(ctx context.Context) (tls.Certificate, *x509.CertPo
|
||||
if err != nil {
|
||||
return tls.Certificate{}, nil, humane.Wrap(err, "failed to load existing server cert",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ func EnsureServerCertificate(ctx context.Context) (tls.Certificate, *x509.CertPo
|
||||
if err != nil {
|
||||
return tls.Certificate{}, nil, humane.Wrap(err, "failed to parse generated server certificate",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ func ensureCA(ctx context.Context) humane.Error {
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "failed to create CA certificate",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ func ensureCA(ctx context.Context) humane.Error {
|
||||
if err != nil {
|
||||
return humane.Wrap(err, "failed to marshal CA private key",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/agent"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/agent"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package agent
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
)
|
||||
|
||||
// ComputeBladeAgent implements the core-logic of the agent. It is responsible for handling events and interfacing with the hardware.
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/agent"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/agent"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
)
|
||||
|
||||
func TestNewComputeBladeState(t *testing.T) {
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
|
||||
"github.com/sierrasoftworks/humane-errors-go"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/util"
|
||||
)
|
||||
|
||||
// LoadAndValidateCertificate loads and validates a certificate and its private key from the provided file paths.
|
||||
@@ -107,7 +107,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
|
||||
if err != nil {
|
||||
return nil, nil, humane.Wrap(err, "failed to extract hostname",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -127,14 +127,14 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
|
||||
if hostIps, err = util.GetHostIPs(); err != nil {
|
||||
return nil, nil, humane.Wrap(err, "failed to extract server IPs",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, nil, humane.New(fmt.Sprintf("invalid certificate usage %s", options.Usage.String()),
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
|
||||
if err != nil {
|
||||
return nil, nil, humane.Wrap(err, "failed to generate client key",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
|
||||
if err != nil {
|
||||
return nil, nil, humane.Wrap(err, "failed to create client certificate",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ func GenerateCertificate(commonName string, opts ...Option) (certDER, keyDER []b
|
||||
if err != nil {
|
||||
return nil, nil, humane.Wrap(err, "failed to marshal client private key",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ func GetCertPoolFrom(caPath string) (pool *x509.CertPool, herr humane.Error) {
|
||||
if !pool.AppendCertsFromPEM(caCert) {
|
||||
return nil, humane.New("failed to append CA certificate to pool",
|
||||
"this should never happen",
|
||||
"please report this as a bug to https://github.com/uptime-industries/compute-blade-agent/issues",
|
||||
"please report this as a bug to https://github.com/compute-blade-community/compute-blade-agent/issues",
|
||||
"Verify if the CA certificate is valid by run the following command:",
|
||||
fmt.Sprintf("openssl x509 -in %s -text -noout", caPath),
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package events_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
)
|
||||
|
||||
func TestEventBusManySubscribers(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package fancontroller_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
|
||||
)
|
||||
|
||||
func TestFanControllerLinear_GetFanSpeed(t *testing.T) {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
)
|
||||
|
||||
func ExampleNewSmartFanUnit() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package hal
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
)
|
||||
|
||||
type FanUnitKind uint8
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/warthog618/gpiod"
|
||||
"github.com/warthog618/gpiod/device/rpi"
|
||||
"go.uber.org/zap"
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ package hal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"go.uber.org/zap"
|
||||
"math"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/warthog618/gpiod"
|
||||
"github.com/warthog618/gpiod/device/rpi"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package hal
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
)
|
||||
|
||||
// fails if ComputeBladeHalMock does not implement ComputeBladeHal
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
"io"
|
||||
"sync"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/events"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/log"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/events"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/log"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"go.bug.st/serial"
|
||||
"go.uber.org/zap"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/util"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
|
||||
)
|
||||
|
||||
// LedEngine is the interface for controlling effects on the computeblade RGB LEDs
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/ledengine"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/ledengine"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/util"
|
||||
)
|
||||
|
||||
func TestNewStaticPattern(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ledengine
|
||||
|
||||
import (
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/util"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/util"
|
||||
)
|
||||
|
||||
// Options are the options for the LedEngine
|
||||
|
||||
@@ -3,8 +3,8 @@ package smartfanunit
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
)
|
||||
|
||||
// Blade -> FanUnit communication
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package smartfanunit
|
||||
|
||||
import "github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
import "github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
|
||||
func float32To24Bit(val float32) proto.Data {
|
||||
// Convert float32 to number with 3 bytes (0.1 precision)
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
)
|
||||
|
||||
func TestWritePacket(t *testing.T) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package smartfanunit
|
||||
|
||||
import (
|
||||
"github.com/uptime-industries/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user