charts icon indicating copy to clipboard operation
charts copied to clipboard

support: recovery target variables in helm chart

Open sadath-12 opened this issue 1 year ago • 11 comments

sadath-12 avatar Sep 24 '24 15:09 sadath-12

I see you added only targetTime. Can you please ensure there's a way to add the other recovery targets specified in https://cloudnative-pg.io/documentation/current/recovery/#recovery-targets?

gbartolini avatar Sep 24 '24 16:09 gbartolini

sure @gbartolini

sadath-12 avatar Sep 24 '24 18:09 sadath-12

@gbartolini have a look thanks

sadath-12 avatar Sep 24 '24 19:09 sadath-12

Can we change the section in the values.yaml to the following:

  pitrTarget:
    # -- The ID of the backup from which to start the recovery process. 
    # If empty (default) the operator will automatically detect the backup based on `pitrTarget.time` or `pitrTarget.lsn` if provided.
    # Otherwise use the latest available backup in chronological order.
    backupID: ""

    # -- Recovery ends as soon as a consistent state is reached, that is, as early as possible
    immediate: ""
    
    # -- The target timeline ("latest" or a positive integer)
    tli: ""

    # -- Set the target to be exclusive. If omitted, defaults to false, so that in Postgres, `recovery_target_inclusive` will be true
    exclusive: ""

    # Specify EXACTLY ONE of the following options:
    # -- Point in time recovery Time target in RFC3339 format
    time: ""
    # -- Point in time recovery Transaction ID up to which recovery proceeds. (The precise stopping point is also influenced by the exclusive option.) 
    xid: ""
    # -- Named restore point (created with pg_create_restore_point()) to which recovery proceeds
    name: ""
    # -- LSN (Log Sequence Number) of the write-ahead log location up to which recovery proceeds. (The precise stopping point is also influenced by the exclusive option.)
    lsn: ""

I've structured it in two sections: the configuration above and the target options below. I've also updated some of the descriptions so they are more accurate.

You were missing the targetTLI and exclusive options. Could you please add those as well?

itay-grudev avatar Sep 24 '24 23:09 itay-grudev

@itay-grudev thanks ,please have a look

sadath-12 avatar Sep 25 '24 14:09 sadath-12

@itay-grudev curious about status of this and if this is planned to be merged?

ockhamlabs avatar Oct 02 '24 19:10 ockhamlabs

@ockhamlabs It's getting merged. It's excellent work. I would like to test it and/or write a test suite for it, which is why I haven't merged it yet.

itay-grudev avatar Oct 02 '24 20:10 itay-grudev

Hi @itay-grudev , gentle reminder

sadath-12 avatar Oct 28 '24 16:10 sadath-12

@itay-grudev Thanks and let us know if this can be merged now?

ockhamlabs avatar Oct 30 '24 19:10 ockhamlabs

When is this expected to be merged?

riddhithummar avatar Oct 30 '24 19:10 riddhithummar

@gbartolini @itay-grudev Team: Just curious about ETA of rolling this out? Any help is most appreciated

ockhamlabs avatar Mar 04 '25 13:03 ockhamlabs

Hello here, I added the tests as a PR in @sadath-12 upstream repo. I hope that will accelerate the last work on this PR.

zied-jt avatar Jun 19 '25 12:06 zied-jt