rebrand: Switchboard Core → Armature
- Rename Go module switchboard-core → armature (155+ files) - Rename Docker image → gobha/armature - Rename K8s resources, secrets, deployments - Rename Prometheus metrics switchboard_* → armature_* - Rename env vars SWITCHBOARD_ADMIN_* → ARMATURE_ADMIN_* - Rename DB names switchboard_core* → armature* - Update all frontend branding, notification templates, docs - Update CI scripts, e2e tests, Keycloak realm, nginx conf - Rename scripts/switchboard-ca.sh → scripts/armature-ca.sh - Rename k8s/switchboard.yaml → k8s/armature.yaml - Rename chart alerting/dashboard files - Fix: DockerHub push uses env: binding for secret injection - Helm chart updated (name, labels, template functions, dashboard, alerting) - Replace favicon/icon assets with Armature brand No functional changes. Pure mechanical rename + CI fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ type S3Config struct {
|
||||
Region string // AWS region (default "us-east-1")
|
||||
AccessKey string // access key ID
|
||||
SecretKey string // secret access key
|
||||
Prefix string // optional key prefix (e.g. "switchboard/")
|
||||
Prefix string // optional key prefix (e.g. "armature/")
|
||||
ForcePathStyle bool // path-style URLs (required for MinIO, most self-hosted)
|
||||
UseSSL bool // use HTTPS (derived from endpoint scheme)
|
||||
}
|
||||
@@ -31,7 +31,7 @@ type S3Config struct {
|
||||
type S3Store struct {
|
||||
client *minio.Client
|
||||
bucket string
|
||||
prefix string // prepended to all keys (e.g. "switchboard/")
|
||||
prefix string // prepended to all keys (e.g. "armature/")
|
||||
endpoint string // original endpoint for display in Stats
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ func TestS3_FullKey(t *testing.T) {
|
||||
want string
|
||||
}{
|
||||
{"", "files/ch/f.txt", "files/ch/f.txt"},
|
||||
{"switchboard/", "files/ch/f.txt", "switchboard/files/ch/f.txt"},
|
||||
{"armature/", "files/ch/f.txt", "armature/files/ch/f.txt"},
|
||||
{"prefix", "files/ch/f.txt", "prefix/files/ch/f.txt"}, // trailing slash added by NewS3
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ func TestS3_KeyValidation(t *testing.T) {
|
||||
// Set these environment variables to run:
|
||||
//
|
||||
// S3_TEST_ENDPOINT=localhost:9000
|
||||
// S3_TEST_BUCKET=switchboard-test
|
||||
// S3_TEST_BUCKET=armature-test
|
||||
// S3_TEST_ACCESS_KEY=minioadmin
|
||||
// S3_TEST_SECRET_KEY=minioadmin
|
||||
//
|
||||
@@ -103,7 +103,7 @@ func TestS3_KeyValidation(t *testing.T) {
|
||||
// -e MINIO_ROOT_USER=minioadmin -e MINIO_ROOT_PASSWORD=minioadmin \
|
||||
// minio/minio server /data --console-address :9001
|
||||
// mc alias set local http://localhost:9000 minioadmin minioadmin
|
||||
// mc mb local/switchboard-test
|
||||
// mc mb local/armature-test
|
||||
|
||||
func testS3Store(t *testing.T) *S3Store {
|
||||
t.Helper()
|
||||
|
||||
Reference in New Issue
Block a user