Skip to content

Commit

Permalink
Change event-publisher-proxy to eventing-publisher-proxy (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaizanse authored Dec 15, 2023
1 parent fa7a7ae commit cd08fac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 = [email protected]: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"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions config/event-publisher-proxy/300-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd08fac

Please sign in to comment.