Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
# Learn more about charmcraft.yaml configuration at:
# https://juju.is/docs/sdk/charmcraft-config
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
run-on:
- name: "ubuntu"
channel: "20.04"
type: charm
name: postgresql-data-k8s
title: PostgreSQL Data Injector Charm

summary: |
PostgreSQL Database Injector Charm

description: |
This charm can be related to a postgresql-k8s charm (using the db-admin relation), and
this charm will execute the SQL tar dump given as a resource.

If the refresh-period (minutes) is non-zero, this charm will reexecute the SQL tar dump
after that number of minutes have passed since the last update.

This charm can be configured with the db-user config option, which will be the new
owner of the newly created data (otherwise, consumers of that database will encounter
Permission Denied errors).

base: ubuntu@24.04
platforms:
amd64:

requires:
db-admin:
interface: pgsql
limit: 1
scope: global

parts:
charm:
plugin: charm
source: .
25 changes: 0 additions & 25 deletions metadata.yaml

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ops >= 1.2.0
ops-lib-pgsql
pgconnstr
requests