Skip to content

Commit c36a98f

Browse files
committed
Update package path
Signed-off-by: Tamal Saha <[email protected]>
1 parent bb349df commit c36a98f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+607
-482
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
if: startsWith(github.ref, 'refs/tags/')
6565
with:
6666
files: |
67-
bin/wal-listener-linux-amd64.tar.gz
68-
bin/wal-listener-linux-arm64.tar.gz
69-
bin/wal-listener-checksums.txt
67+
bin/pgoutbox-linux-amd64.tar.gz
68+
bin/pgoutbox-linux-arm64.tar.gz
69+
bin/pgoutbox-checksums.txt
7070
env:
7171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Dockerfile.dbg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM ghcr.io/appscode/dlv:1.24
1616

1717
FROM {ARG_FROM}
1818

19-
LABEL org.opencontainers.image.source https://github.com/bytebuilders/wal-listener
19+
LABEL org.opencontainers.image.source https://github.com/kubeops/pgoutbox
2020

2121
RUN set -x \
2222
&& apt-get update \

Dockerfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
FROM {ARG_FROM}
1616

17-
LABEL org.opencontainers.image.source https://github.com/bytebuilders/wal-listener
17+
LABEL org.opencontainers.image.source https://github.com/kubeops/pgoutbox
1818

1919
RUN set -x \
2020
&& apk add --update --upgrade --no-cache pcre2 ca-certificates tzdata openssh-client \

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
SHELL=/bin/bash -o pipefail
1818

1919
PRODUCT_OWNER_NAME := appscode
20-
PRODUCT_NAME := wal-listener
20+
PRODUCT_NAME := pgoutbox
2121
ENFORCE_LICENSE ?=
2222

23-
GO_PKG := github.com/ihippik
23+
GO_PKG := kubeops.dev
2424
REPO := $(notdir $(shell pwd))
25-
BIN := wal-listener
25+
BIN := pgoutbox
2626
COMPRESS ?= no
2727

2828
# Where to push the docker image.
@@ -313,7 +313,7 @@ install:
313313
@cd ../installer; \
314314
kubectl create ns $(KUBE_NAMESPACE) || true; \
315315
kubectl label ns $(KUBE_NAMESPACE) pod-security.kubernetes.io/enforce=restricted; \
316-
helm upgrade -i cluster-importer charts/cluster-importer --wait \
316+
helm upgrade -i pgoutbox charts/pgoutbox --wait \
317317
--namespace=$(KUBE_NAMESPACE) --create-namespace \
318318
--set image.tag=$(TAG_PROD) \
319319
--set imagePullPolicy=$(IMAGE_PULL_POLICY) \
@@ -322,7 +322,7 @@ install:
322322
.PHONY: uninstall
323323
uninstall:
324324
@cd ../installer; \
325-
helm uninstall cluster-importer --namespace=$(KUBE_NAMESPACE) || true
325+
helm uninstall pgoutbox --namespace=$(KUBE_NAMESPACE) || true
326326

327327
.PHONY: purge
328328
purge: uninstall

README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# WAL-Listener
1+
# pgoutbox
22

3-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4-
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/ihippik/wal-listener)
5-
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/ihippik/wal-listener)
6-
[![Publish Docker image](https://github.com/ihippik/wal-listener/actions/workflows/github-actions.yml/badge.svg)](https://github.com/ihippik/wal-listener/actions/workflows/github-actions.yml)
7-
8-
![WAL-Listener](wal-listener.png)
3+
![PgOutbox](wal-listener.png)
94

105
A service that helps implement the **Event-Driven architecture**.
116

@@ -77,7 +72,7 @@ You must make the following settings in the db configuration (postgresql.conf)
7772
* max_replication_slots >= 1
7873
7974
The publication & slot created automatically when the service starts (for all tables and all actions).
80-
You can delete the default publication and create your own (name: _wal-listener_) with the necessary filtering conditions, and then the filtering will occur at the database level and not at the application level.
75+
You can delete the default publication and create your own (name: _pgoutbox_) with the necessary filtering conditions, and then the filtering will occur at the database level and not at the application level.
8176
8277
https://www.postgresql.org/docs/current/sql-createpublication.html
8378
@@ -150,7 +145,7 @@ for readiness `/ready` and liveness `/healthz` probes.
150145
You can start the container from the project folder (configuration file is required).
151146

152147
See `./config_example.yml` for an example configuration.
153-
Be sure to copy the file to the docker image in the `Dockerfile` prior to running [after the build setp](https://github.com/ihippik/wal-listener/blob/master/Dockerfile#L31)
148+
Be sure to copy the file to the docker image in the `Dockerfile` prior to running [after the build setp](https://kubeops.dev/pgoutbox/blob/master/Dockerfile#L31)
154149
ex:
155150
```docker
156151
COPY /config.yml .
@@ -161,10 +156,3 @@ Please don't forget to delete them:
161156
```shell
162157
docker image prune --filter label=stage=builder
163158
```
164-
165-
#### Docker Hub
166-
https://hub.docker.com/r/ihippik/wal-listener
167-
#### Example
168-
```shell
169-
docker run -v $(pwd)/config.yml:/app/config.yml ihippik/wal-listener:tag
170-
```

apis/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
PublisherTypeGooglePubSub PublisherType = "google_pubsub"
2121
)
2222

23-
// Config for wal-listener.
23+
// Config for pgoutbox.
2424
type Config struct {
2525
Listener *ListenerCfg `valid:"required" mapstructure:"listener"`
2626
Database *DatabaseCfg `valid:"required" mapstructure:"database"`

apis/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ihippik/wal-listener/apis
1+
module kubeops.dev/pgoutbox/apis
22

33
go 1.23.3
44

apis/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewMetrics() *Metrics {
4141
}
4242
}
4343

44-
const appName = "wal-listener"
44+
const appName = "pgoutbox"
4545

4646
// IncPublishedEvents increment published events counter.
4747
func (m Metrics) IncPublishedEvents(subject, table string) {

cmd/wal-listener/init.go renamed to cmd/pgoutbox/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"log/slog"
2323
"time"
2424

25-
"github.com/ihippik/wal-listener/v2/apis"
26-
"github.com/ihippik/wal-listener/v2/internal/publisher"
25+
"kubeops.dev/pgoutbox/apis"
26+
"kubeops.dev/pgoutbox/internal/publisher"
2727

2828
"github.com/jackc/pgx"
2929
"github.com/nats-io/nats.go"

cmd/wal-listener/main.go renamed to cmd/pgoutbox/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ import (
2525
"syscall"
2626
"time"
2727

28-
scfg "github.com/ihippik/config"
29-
"github.com/ihippik/wal-listener/v2/apis"
30-
"github.com/ihippik/wal-listener/v2/internal/listener"
31-
"github.com/ihippik/wal-listener/v2/internal/listener/transaction"
28+
"kubeops.dev/pgoutbox/apis"
29+
"kubeops.dev/pgoutbox/internal/listener"
30+
"kubeops.dev/pgoutbox/internal/listener/transaction"
3231

32+
scfg "github.com/ihippik/config"
3333
"github.com/urfave/cli/v2"
3434
)
3535

@@ -43,7 +43,7 @@ func main() {
4343
version := scfg.GetVersion()
4444

4545
app := &cli.App{
46-
Name: "WAL-Listener",
46+
Name: "PgOutbox",
4747
Usage: "listen PostgreSQL events",
4848
Version: version,
4949
Flags: []cli.Flag{

0 commit comments

Comments
 (0)