Skip to content

Commit c9aa003

Browse files
authored
fix(release): remove k8s-cache from release artifacts (#1329)
1 parent e24013f commit c9aa003

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,17 +532,16 @@ license-header-check:
532532
fi
533533

534534
.PHONY: artifact
535-
artifact: docker-generate compile compile-cache java-docker-build
535+
artifact: docker-generate compile java-docker-build
536536
@echo "### Packing generated artifact for $(GOOS)/$(GOARCH)"
537537
@STAGING_DIR=$$(mktemp -d 2>/dev/null || mktemp -d -t obi.XXXXXX); \
538538
trap "rm -rf $$STAGING_DIR" EXIT; \
539539
cp ./bin/$(CMD) $$STAGING_DIR/; \
540-
cp ./bin/$(CACHE_CMD) $$STAGING_DIR/; \
541540
cp ./bin/$(JAVA_AGENT) $$STAGING_DIR/; \
542541
cp LICENSE $$STAGING_DIR/; \
543542
cp NOTICE $$STAGING_DIR/; \
544543
cp -r NOTICES $$STAGING_DIR/; \
545-
tar -C $$STAGING_DIR -czf bin/obi-$(RELEASE_VERSION)-$(GOOS)-$(GOARCH).tar.gz $(CMD) $(CACHE_CMD) $(JAVA_AGENT) LICENSE NOTICE NOTICES
544+
tar -C $$STAGING_DIR -czf bin/obi-$(RELEASE_VERSION)-$(GOOS)-$(GOARCH).tar.gz $(CMD) $(JAVA_AGENT) LICENSE NOTICE NOTICES
546545

547546
.PHONY: release
548547
release: artifact
@@ -553,13 +552,11 @@ release: artifact
553552
@mkdir -p $(RELEASE_DIR)/verify-$(GOARCH)
554553
@tar -xzf $(RELEASE_DIR)/obi-$(RELEASE_VERSION)-$(GOOS)-$(GOARCH).tar.gz -C $(RELEASE_DIR)/verify-$(GOARCH)
555554
@if [ ! -f $(RELEASE_DIR)/verify-$(GOARCH)/$(CMD) ]; then echo "ERROR: $(CMD) binary missing in $(GOARCH) archive"; exit 1; fi
556-
@if [ ! -f $(RELEASE_DIR)/verify-$(GOARCH)/$(CACHE_CMD) ]; then echo "ERROR: $(CACHE_CMD) binary missing in $(GOARCH) archive"; exit 1; fi
557555
@if [ ! -f $(RELEASE_DIR)/verify-$(GOARCH)/$(JAVA_AGENT) ]; then echo "ERROR: $(JAVA_AGENT) missing in $(GOARCH) archive"; exit 1; fi
558556
@if [ ! -f $(RELEASE_DIR)/verify-$(GOARCH)/LICENSE ]; then echo "ERROR: LICENSE missing in $(GOARCH) archive"; exit 1; fi
559557
@if [ ! -f $(RELEASE_DIR)/verify-$(GOARCH)/NOTICE ]; then echo "ERROR: NOTICE missing in $(GOARCH) archive"; exit 1; fi
560558
@if [ ! -d $(RELEASE_DIR)/verify-$(GOARCH)/NOTICES ]; then echo "ERROR: NOTICES directory missing in $(GOARCH) archive"; exit 1; fi
561559
@if [ ! -x $(RELEASE_DIR)/verify-$(GOARCH)/$(CMD) ]; then echo "ERROR: $(CMD) binary not executable in $(GOARCH) archive"; exit 1; fi
562-
@if [ ! -x $(RELEASE_DIR)/verify-$(GOARCH)/$(CACHE_CMD) ]; then echo "ERROR: $(CACHE_CMD) binary not executable in $(GOARCH) archive"; exit 1; fi
563560
@echo "✓ Archive $(GOARCH) verified successfully"
564561
@rm -rf $(RELEASE_DIR)/verify-$(GOARCH)
565562
@echo "### Generating checksums"

RELEASING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ When you push a tag matching the pattern `vX.Y.Z` (e.g., `v1.2.3`) or `vX.Y.Z-su
106106

107107
3. **Build Release Artifacts**: Once all checks pass, the workflow builds multi-architecture release artifacts:
108108
- Runs `make release` to generate versioned tarballs for amd64 and arm64
109-
- Archives contain: `obi`, `k8s-cache`, `obi-java-agent.jar`, LICENSE, NOTICE, and NOTICES/ directory
109+
- Archives contain: `obi`, `obi-java-agent.jar`, LICENSE, NOTICE, and NOTICES/ directory
110110
- Generates SHA256 checksums for all archives
111111
- Verifies archive contents and binary executability
112112

@@ -138,7 +138,6 @@ Once the workflow completes successfully, a draft release is automatically creat
138138
Each release archive (`obi-<version>-linux-<arch>.tar.gz`) contains:
139139

140140
- `obi`: Main OBI binary
141-
- `k8s-cache`: Kubernetes cache service binary
142141
- `obi-java-agent.jar`: Java instrumentation agent
143142
- `LICENSE`: Apache 2.0 license file
144143
- `NOTICE`: Legal notices

0 commit comments

Comments
 (0)