diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..771ad6d --- /dev/null +++ b/.github/labeler.yml @@ -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' diff --git a/.github/workflows/conventional-commits.yaml b/.github/workflows/pr-hygiene.yaml similarity index 72% rename from .github/workflows/conventional-commits.yaml rename to .github/workflows/pr-hygiene.yaml index 37fc7de..6effa91 100644 --- a/.github/workflows/conventional-commits.yaml +++ b/.github/workflows/pr-hygiene.yaml @@ -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 \ No newline at end of file + 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" \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d0bc2aa..9788b2c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} - diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 13c2607..5001cd5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 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 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: diff --git a/CHANGELOG.md b/CHANGELOG.md index ee69849..4fbf126 100644 --- a/CHANGELOG.md +++ b/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)) diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..449a8b3 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,2 @@ +@xvzf +@cedi \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e063a93..86fbdf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/README.md b/README.md index 59331de..fc41ba5 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/cmd/agent/main.go b/cmd/agent/main.go index fa2631f..f91976d 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -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" ) diff --git a/cmd/bladectl/cmd_fan.go b/cmd/bladectl/cmd_fan.go index 7347402..686123a 100644 --- a/cmd/bladectl/cmd_fan.go +++ b/cmd/bladectl/cmd_fan.go @@ -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 ( diff --git a/cmd/bladectl/cmd_identify.go b/cmd/bladectl/cmd_identify.go index bfe905b..eea142c 100644 --- a/cmd/bladectl/cmd_identify.go +++ b/cmd/bladectl/cmd_identify.go @@ -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" ) diff --git a/cmd/bladectl/cmd_root.go b/cmd/bladectl/cmd_root.go index 604fcba..656646c 100644 --- a/cmd/bladectl/cmd_root.go +++ b/cmd/bladectl/cmd_root.go @@ -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" diff --git a/cmd/bladectl/config/config.go b/cmd/bladectl/config/config.go index 506be56..3fb9c9f 100644 --- a/cmd/bladectl/config/config.go +++ b/cmd/bladectl/config/config.go @@ -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", ) } diff --git a/cmd/bladectl/main.go b/cmd/bladectl/main.go index d4bbe39..e9264d8 100644 --- a/cmd/bladectl/main.go +++ b/cmd/bladectl/main.go @@ -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 diff --git a/cmd/fanunit/controller.go b/cmd/fanunit/controller.go index 9b0953b..5a0d0b0 100644 --- a/cmd/fanunit/controller.go +++ b/cmd/fanunit/controller.go @@ -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" diff --git a/cmd/fanunit/main.go b/cmd/fanunit/main.go index 10f29b2..a41a06c 100644 --- a/cmd/fanunit/main.go +++ b/cmd/fanunit/main.go @@ -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" ) diff --git a/go.mod b/go.mod index da85775..47063ce 100644 --- a/go.mod +++ b/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 diff --git a/hack/autoinstall.sh b/hack/autoinstall.sh index b13e4f0..1208a8d 100644 --- a/hack/autoinstall.sh +++ b/hack/autoinstall.sh @@ -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") diff --git a/hack/systemd/compute-blade-agent.service b/hack/systemd/compute-blade-agent.service index 938a720..83058f5 100644 --- a/hack/systemd/compute-blade-agent.service +++ b/hack/systemd/compute-blade-agent.service @@ -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] diff --git a/internal/agent/agent.go b/internal/agent/agent.go index f58add3..f12adcf 100644 --- a/internal/agent/agent.go +++ b/internal/agent/agent.go @@ -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" ) diff --git a/internal/agent/config.go b/internal/agent/config.go index 57d5bfa..a475238 100644 --- a/internal/agent/config.go +++ b/internal/agent/config.go @@ -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 { diff --git a/internal/api/api.go b/internal/api/api.go index 7a47590..09c6661 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -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" diff --git a/internal/api/api_certificates.go b/internal/api/api_certificates.go index fbc85f7..962ccdd 100644 --- a/internal/api/api_certificates.go +++ b/internal/api/api_certificates.go @@ -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", ) } diff --git a/internal/api/options.go b/internal/api/options.go index 5f0c595..359d1b3 100644 --- a/internal/api/options.go +++ b/internal/api/options.go @@ -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" ) diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 632dc32..d964034 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -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. diff --git a/pkg/agent/state.go b/pkg/agent/state.go index 5d81f5a..0be8ae8 100644 --- a/pkg/agent/state.go +++ b/pkg/agent/state.go @@ -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" ) diff --git a/pkg/agent/state_test.go b/pkg/agent/state_test.go index a43ae95..0bc1b8c 100644 --- a/pkg/agent/state_test.go +++ b/pkg/agent/state_test.go @@ -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) { diff --git a/pkg/certificate/certificate.go b/pkg/certificate/certificate.go index 16d4b04..0ef7ab0 100644 --- a/pkg/certificate/certificate.go +++ b/pkg/certificate/certificate.go @@ -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), ) diff --git a/pkg/events/eventbus_test.go b/pkg/events/eventbus_test.go index 0dfacb0..851db6f 100644 --- a/pkg/events/eventbus_test.go +++ b/pkg/events/eventbus_test.go @@ -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) { diff --git a/pkg/fancontroller/fancontroller_test.go b/pkg/fancontroller/fancontroller_test.go index 21a5e36..3a647d5 100644 --- a/pkg/fancontroller/fancontroller_test.go +++ b/pkg/fancontroller/fancontroller_test.go @@ -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) { diff --git a/pkg/hal/example_smartfanunit_test.go b/pkg/hal/example_smartfanunit_test.go index 1840e80..0022586 100644 --- a/pkg/hal/example_smartfanunit_test.go +++ b/pkg/hal/example_smartfanunit_test.go @@ -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() { diff --git a/pkg/hal/hal.go b/pkg/hal/hal.go index 453e832..280ed56 100644 --- a/pkg/hal/hal.go +++ b/pkg/hal/hal.go @@ -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 diff --git a/pkg/hal/hal_bcm2711.go b/pkg/hal/hal_bcm2711.go index fe40754..f5eaf86 100644 --- a/pkg/hal/hal_bcm2711.go +++ b/pkg/hal/hal_bcm2711.go @@ -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" diff --git a/pkg/hal/hal_bcm2711_simulated.go b/pkg/hal/hal_bcm2711_simulated.go index c9d5446..70e4533 100644 --- a/pkg/hal/hal_bcm2711_simulated.go +++ b/pkg/hal/hal_bcm2711_simulated.go @@ -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" ) diff --git a/pkg/hal/hal_bcm2711_standardfanunit.go b/pkg/hal/hal_bcm2711_standardfanunit.go index 244fc6a..67a0f8a 100644 --- a/pkg/hal/hal_bcm2711_standardfanunit.go +++ b/pkg/hal/hal_bcm2711_standardfanunit.go @@ -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" ) diff --git a/pkg/hal/hal_mock.go b/pkg/hal/hal_mock.go index 0327fef..98d9ecf 100644 --- a/pkg/hal/hal_mock.go +++ b/pkg/hal/hal_mock.go @@ -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 diff --git a/pkg/hal/smartfanunit.go b/pkg/hal/smartfanunit.go index 74008c7..c0fab8b 100644 --- a/pkg/hal/smartfanunit.go +++ b/pkg/hal/smartfanunit.go @@ -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" diff --git a/pkg/ledengine/ledengine.go b/pkg/ledengine/ledengine.go index 9b74a21..7d06ef7 100644 --- a/pkg/ledengine/ledengine.go +++ b/pkg/ledengine/ledengine.go @@ -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 diff --git a/pkg/ledengine/ledengine_test.go b/pkg/ledengine/ledengine_test.go index d16a586..93b9c1e 100644 --- a/pkg/ledengine/ledengine_test.go +++ b/pkg/ledengine/ledengine_test.go @@ -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) { diff --git a/pkg/ledengine/options.go b/pkg/ledengine/options.go index f945c4a..5a64fec 100644 --- a/pkg/ledengine/options.go +++ b/pkg/ledengine/options.go @@ -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 diff --git a/pkg/smartfanunit/commands.go b/pkg/smartfanunit/commands.go index 19a7f8c..dcaf791 100644 --- a/pkg/smartfanunit/commands.go +++ b/pkg/smartfanunit/commands.go @@ -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 diff --git a/pkg/smartfanunit/helpers.go b/pkg/smartfanunit/helpers.go index c50c11b..4b2a4c3 100644 --- a/pkg/smartfanunit/helpers.go +++ b/pkg/smartfanunit/helpers.go @@ -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) diff --git a/pkg/smartfanunit/proto/proto_test.go b/pkg/smartfanunit/proto/proto_test.go index 331be7f..290071a 100644 --- a/pkg/smartfanunit/proto/proto_test.go +++ b/pkg/smartfanunit/proto/proto_test.go @@ -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) { diff --git a/pkg/smartfanunit/smartfanunit.go b/pkg/smartfanunit/smartfanunit.go index 25d740c..0eec48b 100644 --- a/pkg/smartfanunit/smartfanunit.go +++ b/pkg/smartfanunit/smartfanunit.go @@ -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 (