Skip to content

Commit 0e50415

Browse files
markturanskyclaude
andcommitted
fix(api,makefile): gofmt bearer_token_grpc and lowercase kind cluster slug
- gofmt bearer_token_grpc.go (was failing CI lint check) - Lowercase CLUSTER_SLUG before sed processing so branch names like HEAD produce valid kind cluster names (kind requires lowercase alphanumeric) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 03d076e commit 0e50415

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ KIND_IMAGE_PREFIX := $(if $(filter podman,$(CONTAINER_ENGINE)),localhost/,)
7676
# Kind cluster configuration — derived from git branch for multi-worktree support
7777
# Each worktree/branch gets a unique cluster name and ports automatically.
7878
# Override any variable: make kind-up KIND_CLUSTER_NAME=ambient-custom KIND_FWD_FRONTEND_PORT=8080
79-
CLUSTER_SLUG ?= $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null | sed 's/[^a-zA-Z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//' | sed 's/-$$//' | cut -c1-20)
79+
CLUSTER_SLUG ?= $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//' | sed 's/-$$//' | cut -c1-20)
8080
CLUSTER_SLUG := $(CLUSTER_SLUG)
8181
KIND_CLUSTER_NAME ?= ambient-$(CLUSTER_SLUG)
8282
KIND_CLUSTER_NAME := $(KIND_CLUSTER_NAME)

components/ambient-api-server/pkg/middleware/bearer_token_grpc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ type serviceCallerStream struct {
6161
func (s *serviceCallerStream) Context() context.Context {
6262
return s.ctx
6363
}
64-

0 commit comments

Comments
 (0)