Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alaye-ms
Copy link
Collaborator

@alaye-ms alaye-ms commented Sep 5, 2025

No description provided.

RUN --mount=type=cache,target=/root/.cache/go-build ./scripts/build.sh

# Step 2: build the image to be actually run
FROM golang:1-alpine
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what CNPG does? Or could we go distroless?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do distroless, cnpg uses gcr.io/distroless/static-debian12:nonroot

// Plugin parameter keys
const (
ImageParam = "image" // string
ReplicationHostParam = "replicationHost" // Required: primary host
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that implicit in CNPG?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CNPG also takes an optional image name

)

const (
defaultImage = "ghcr.io/cloudnative-pg/postgresql:16"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have an image with just the wal reciever?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try to make that, yeah

"--port", "5432",
"--username", "postgres",
"--no-password",
"--verbose",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should probbaly depend on log level

- Automatic restart policy for high availability

2. **PersistentVolumeClaim**: `<cluster-name>-wal-receiver`
- Stores received WAL files persistently
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need some retention policy - should integrate with backup interval or so. Ok, to make ToDo for now - but we really should delete stuff so the disk doesn't flow over

@alaye-ms alaye-ms marked this pull request as draft November 11, 2025 19:10
@alaye-ms
Copy link
Collaborator Author

From the slack:
Hello, to my knowledge, mutate cluster isn’t implemented currently on the CNPG operator side.
The current hello-world example is outdated and needs updating. We planned to redo it through the CNCF mentorship this quarter, but that didn’t start due to circumstances beyond our control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants