From cd08facb43c14f116d0f3202f6d406b6b447e200 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Fri, 15 Dec 2023 11:53:26 +0100 Subject: [PATCH] Change event-publisher-proxy to eventing-publisher-proxy (#28) --- Dockerfile | 8 ++++---- Makefile | 6 +++--- .../main.go | 0 config/event-publisher-proxy/300-deployment.yaml | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) rename cmd/{event-publisher-proxy => eventing-publisher-proxy}/main.go (100%) diff --git a/Dockerfile b/Dockerfile index ffda247..c74151f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ FROM europe-docker.pkg.dev/kyma-project/prod/external/golang:1.21.4-alpine3.18 as builder -ARG DOCK_PKG_DIR=/go/src/github.com/kyma-project/event-publisher-proxy +ARG DOCK_PKG_DIR=/go/src/github.com/kyma-project/eventing-publisher-proxy WORKDIR $DOCK_PKG_DIR COPY . $DOCK_PKG_DIR -RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o event-publisher-proxy ./cmd/event-publisher-proxy +RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o eventing-publisher-proxy ./cmd/eventing-publisher-proxy FROM gcr.io/distroless/static:nonroot LABEL source = git@github.com:kyma-project/kyma.git USER nonroot:nonroot WORKDIR / -COPY --from=builder /go/src/github.com/kyma-project/event-publisher-proxy/event-publisher-proxy . +COPY --from=builder /go/src/github.com/kyma-project/eventing-publisher-proxy/eventing-publisher-proxy . -ENTRYPOINT ["/event-publisher-proxy"] +ENTRYPOINT ["/eventing-publisher-proxy"] diff --git a/Makefile b/Makefile index 6a3fa33..3d75c9c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -APP_NAME = event-publisher-proxy +APP_NAME = eventing-publisher-proxy # Image URL to use all building/pushing image targets IMG_REGISTRY_PORT ?= 8888 @@ -80,11 +80,11 @@ test: ## Run tests .PHONY: build build: go-gen fmt vet ## Build publisher binary. - go build -o bin/publisher cmd/event-publisher-proxy/main.go + go build -o bin/publisher cmd/eventing-publisher-proxy/main.go .PHONY: run run: go-gen fmt vet ## Run publisher from your host. - go run ./cmd/event-publisher-proxy/main.go + go run ./cmd/eventing-publisher-proxy/main.go .PHONY: release-image release-image: docker-build docker-push ## Build the publisher Image and push it to a registry defined in IMG_REGISTRY diff --git a/cmd/event-publisher-proxy/main.go b/cmd/eventing-publisher-proxy/main.go similarity index 100% rename from cmd/event-publisher-proxy/main.go rename to cmd/eventing-publisher-proxy/main.go diff --git a/config/event-publisher-proxy/300-deployment.yaml b/config/event-publisher-proxy/300-deployment.yaml index c819a54..b4b16fe 100644 --- a/config/event-publisher-proxy/300-deployment.yaml +++ b/config/event-publisher-proxy/300-deployment.yaml @@ -28,23 +28,23 @@ spec: - name: CLIENT_SECRET valueFrom: secretKeyRef: - name: event-publisher-proxy + name: eventing-publisher-proxy key: client-secret - name: TOKEN_ENDPOINT valueFrom: secretKeyRef: - name: event-publisher-proxy + name: eventing-publisher-proxy key: token-endpoint - name: EMS_PUBLISH_URL valueFrom: secretKeyRef: - name: event-publisher-proxy + name: eventing-publisher-proxy key: ems-publish-url - name: APP_LOG_FORMAT value: "json" - name: APP_LOG_LEVEL value: "info" - image: ko://github.com/kyma-project/eventing-publisher-proxy/cmd/event-publisher-proxy + image: ko://github.com/kyma-project/eventing-publisher-proxy/cmd/eventing-publisher-proxy imagePullPolicy: Always name: event-publisher-proxy ports: