Skip to content

Commit 40fd983

Browse files
committed
feat: rename binary to pgedge-control-plane
Renames the binary from `control-plane` to `pgedge-control-plane` to reduce the chance of conflicts with other packages. PLAT-417
1 parent 755fb27 commit 40fd983

8 files changed

Lines changed: 14 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ docs/plans
2121
*-results.xml
2222
dist
2323
control-plane
24+
pgedge-control-plane
2425
!docker/control-plane
2526
e2e/debug

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
project_name: control-plane
33
builds:
44
- main: ./server
5-
binary: control-plane
5+
binary: pgedge-control-plane
66
env:
77
- CGO_ENABLED=0
88
goos:

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ goreleaser-build:
260260
$(goreleaser) build --snapshot --clean
261261
tar -C dist/control-plane_linux_amd64_v1 -c -z \
262262
-f dist/control-plane_$(CONTROL_PLANE_VERSION:v%=%)_linux_amd64.tar.gz \
263-
control-plane
263+
pgedge-control-plane
264264
tar -C dist/control-plane_linux_arm64_v8.0 -c -z \
265265
-f dist/control-plane_$(CONTROL_PLANE_VERSION:v%=%)_linux_arm64.tar.gz \
266-
control-plane
266+
pgedge-control-plane
267267

268268
goreleaser-test-release:
269269
GORELEASER_CURRENT_TAG=$(CONTROL_PLANE_VERSION) \
@@ -332,7 +332,7 @@ build: dev-build
332332
dev-build:
333333
GOOS=linux go build \
334334
-gcflags "all=-N -l" \
335-
-o docker/control-plane-dev/control-plane \
335+
-o docker/control-plane-dev/pgedge-control-plane \
336336
$(shell pwd)/server
337337

338338
.PHONY: docker-swarm-init
@@ -397,7 +397,7 @@ api-docs:
397397
ci-compose-build:
398398
GOOS=linux go build \
399399
-gcflags "all=-N -l" \
400-
-o docker/control-plane-ci/control-plane \
400+
-o docker/control-plane-ci/pgedge-control-plane \
401401
$(shell pwd)/server
402402

403403
.PHONY: ci-compose-detached

docker/control-plane-ci/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ RUN apt-get update && \
44
apt-get install -y curl && \
55
rm -rf /var/lib/apt/lists/*
66

7-
COPY ./control-plane /control-plane
7+
COPY ./pgedge-control-plane /pgedge-control-plane
88

9-
ENTRYPOINT ["/control-plane"]
9+
ENTRYPOINT ["/pgedge-control-plane"]

docker/control-plane-dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ ENV CGO_ENABLED=0
55
RUN go install github.com/go-delve/delve/cmd/dlv@latest
66

77
COPY ./entrypoint.sh /entrypoint.sh
8-
COPY ./control-plane /control-plane
8+
COPY ./pgedge-control-plane /pgedge-control-plane
99

1010
ENTRYPOINT [ "/entrypoint.sh" ]

docker/control-plane-dev/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ services:
66
watch:
77
- path: ./Dockerfile
88
action: rebuild
9-
- path: ./control-plane
9+
- path: ./pgedge-control-plane
1010
action: sync+restart
11-
target: /control-plane
11+
target: /pgedge-control-plane
1212
working_dir: ${WORKSPACE_DIR}
1313
environment:
1414
- DEBUG=${DEBUG:-0}

docker/control-plane-dev/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ if [[ "${DEBUG}" == 1 ]]; then
1313
--log-output=debugger,debuglineerr,gdbwire,lldbout,rpc \
1414
--accept-multiclient \
1515
--api-version=2 \
16-
exec /control-plane \
16+
exec /pgedge-control-plane \
1717
-- \
1818
run \
1919
--config-path /config.json \
2020
--logging.pretty
2121
else
22-
exec /control-plane run \
22+
exec /pgedge-control-plane run \
2323
--config-path /config.json \
2424
--logging.pretty
2525
fi

docker/control-plane/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ ARG TARGETOS
44
ARG TARGETARCH
55
ARG ARCHIVE_VERSION
66

7-
ENTRYPOINT ["/control-plane"]
7+
ENTRYPOINT ["/pgedge-control-plane"]
88

99
ADD control-plane_${ARCHIVE_VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz /

0 commit comments

Comments
 (0)