Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: declarative publications and subscriptions #115

Open
wants to merge 52 commits into
base: main
Choose a base branch
from

Commits on Aug 20, 2024

  1. feat: declarative database management

    This patch adds a prototype of the declarative database management
    feature by using a separate CRD named Database and exposing the
    relative status in its section.
    
    This new CRD is only controller by the instance manager of primary
    instance.
    
    Database deletion is triggered by a finalizer with get added
    by the reconciliation loop itself. By default the retention policy is
    set so "ratain", prevending the controller from deleting the database.
    
    Closes: cloudnative-pg#4679
    
    Signed-off-by: Leonardo Cecchi <[email protected]>
    leonardoce committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    dafb56e View commit details
    Browse the repository at this point in the history
  2. feat: declarative publications and subscriptions

    This patch allows the user to configure logical replication publications
    and subscription using a Kubernetes API.
    
    Signed-off-by: Leonardo Cecchi <[email protected]>
    leonardoce committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    76d9770 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. chore: rebase on latest main

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    3a6b698 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into declarative-pub-sub

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0bd065b View commit details
    Browse the repository at this point in the history
  3. fix: instance getter usage

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    e6d6f43 View commit details
    Browse the repository at this point in the history
  4. fix: manifests and linter

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    df10f9e View commit details
    Browse the repository at this point in the history
  5. fix: config CRD

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a435207 View commit details
    Browse the repository at this point in the history
  6. chore: add CRD examples for OLM build

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a0e8f4c View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. chore: split SQL functions in separated files

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c0cfeb3 View commit details
    Browse the repository at this point in the history
  2. test: add basic e2e

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3b8d353 View commit details
    Browse the repository at this point in the history
  3. test: add basic e2e

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    afae552 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0a8c831 View commit details
    Browse the repository at this point in the history
  5. fix: update CRDs

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    896213d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82c0177 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. fix: owner set, e2e and conflict after rebase

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    5467bcb View commit details
    Browse the repository at this point in the history
  2. fix: e2e manifests and code bug

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    94629ca View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. test: remove owners from manifests, relying on default

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    2aa6522 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28ae471 View commit details
    Browse the repository at this point in the history
  3. test: add data inside table and assertion on replication

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    a2508a9 View commit details
    Browse the repository at this point in the history
  4. chore: simplify field type inside spec and add docs

    Signed-off-by: Gabriele Quaresima <[email protected]>
    gabriele-wolfox committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    6d3bffd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f4b094 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    60ca9b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1f39d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. chore: fix scaffolding

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    01974e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ff7194 View commit details
    Browse the repository at this point in the history
  3. test: review E2E

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    b213ce2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    520d4a0 View commit details
    Browse the repository at this point in the history
  5. test: more e2e fixes

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    17531ba View commit details
    Browse the repository at this point in the history
  6. docs: update e2e.md

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8d54159 View commit details
    Browse the repository at this point in the history
  7. test: patch finalizers before deletion

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    576780c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bdd13a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. test(e2e): handle object notFound

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    3d08386 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b927fd6 View commit details
    Browse the repository at this point in the history
  3. review: improve doc, fix sample

    Signed-off-by: Jaime Silvela <[email protected]>
    jsilvela committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    58d8b9f View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Update config/olm-samples/postgresql_v1_publication.yaml

    Signed-off-by: Jaime Silvela <[email protected]>
    jsilvela authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    db0aa35 View commit details
    Browse the repository at this point in the history
  2. Update docs/src/samples/cluster-example-logical-source.yaml

    Signed-off-by: Jaime Silvela <[email protected]>
    jsilvela authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    30d67bf View commit details
    Browse the repository at this point in the history
  3. chore: de-template text fixtures

    Signed-off-by: Jaime Silvela <[email protected]>
    jsilvela committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    cee4d7b View commit details
    Browse the repository at this point in the history
  4. fix(deps): update github.com/cloudnative-pg/cnpg-i digest to 8d61352 …

    …(main) (cloudnative-pg#5865)
    
    https://redirect.github.com/cloudnative-pg/cnpg-i `7e24b2e` -> `8d61352`
    google.golang.org/protobuf `v1.34.2` -> `v1.35.1`
    renovate[bot] authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    4665793 View commit details
    Browse the repository at this point in the history
  5. chore: merge main branch changes

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    cd38220 View commit details
    Browse the repository at this point in the history
  6. chore: improve operation order of the publication_controller

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    0dd54c9 View commit details
    Browse the repository at this point in the history
  7. chore: add reconcilefinalizer and remove nestif exception

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    cc5e9b2 View commit details
    Browse the repository at this point in the history
  8. fix: mark publication as failed if we encounter Get errors while ob…

    …tain the cluster
    
    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    cabb7f4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c7b9af9 View commit details
    Browse the repository at this point in the history
  10. refactor: uniform mark as ready logic

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    8b8d293 View commit details
    Browse the repository at this point in the history
  11. refactor: uniform getCluster logic, fix regression about intervals

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    9c27b04 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. refactor: centralize finalizer logic

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    e16d388 View commit details
    Browse the repository at this point in the history
  2. chore: improve getCluster

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    7127602 View commit details
    Browse the repository at this point in the history
  3. refactor: prepare sql methods to be unit tested

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    8f0357e View commit details
    Browse the repository at this point in the history
  4. fix: make alterSql handle parameters correctly

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    a054120 View commit details
    Browse the repository at this point in the history
  5. fix: create publication sql

    Signed-off-by: Armando Ruocco <[email protected]>
    
    Co-authored-by: Niccolò Fei <[email protected]>
    armru and NiccoloFei committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    f0387d4 View commit details
    Browse the repository at this point in the history
  6. test(subscription): add basic coverage

    Signed-off-by: Armando Ruocco <[email protected]>
    armru committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    6fc3b56 View commit details
    Browse the repository at this point in the history
  7. chore: fixing order and linting

    Signed-off-by: Niccolò Fei <[email protected]>
    NiccoloFei committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    fb8797c View commit details
    Browse the repository at this point in the history