mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-16 15:35:42 +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
@@ -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