mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 13:23:09 +01:00
feat: implement evaluate lifecycle hook (#222)
This patch allows the plugin trigger a rolling deployment on existing clusters, enabling seamless migration between the in-tree barman cloud support and the plugin. Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
parent
bcfe1fd8dd
commit
a7ef56b6e7
@ -4,12 +4,14 @@ metadata:
|
||||
name: cluster-example
|
||||
spec:
|
||||
instances: 3
|
||||
imagePullPolicy: Always
|
||||
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
endpointCA:
|
||||
name: minio-server-tls
|
||||
key: tls.crt
|
||||
destinationPath: s3://backups/
|
||||
endpointURL: http://minio:9000
|
||||
endpointURL: https://minio:9000
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: minio
|
||||
|
||||
@ -4,7 +4,6 @@ metadata:
|
||||
name: cluster-example
|
||||
spec:
|
||||
instances: 3
|
||||
imagePullPolicy: Always
|
||||
plugins:
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
isWALArchiver: true
|
||||
|
||||
2
go.mod
2
go.mod
@ -9,7 +9,7 @@ require (
|
||||
github.com/cloudnative-pg/api v1.25.1
|
||||
github.com/cloudnative-pg/barman-cloud v0.3.0
|
||||
github.com/cloudnative-pg/cloudnative-pg v1.25.1
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.0
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.1-0.20250321093050-de4ab51537cb
|
||||
github.com/cloudnative-pg/cnpg-i-machinery v0.2.0
|
||||
github.com/cloudnative-pg/machinery v0.1.0
|
||||
github.com/onsi/ginkgo/v2 v2.23.1
|
||||
|
||||
2
go.sum
2
go.sum
@ -26,6 +26,8 @@ github.com/cloudnative-pg/cloudnative-pg v1.25.1 h1:Yc6T7ikQ1AiWXBQht+6C3DoihrIp
|
||||
github.com/cloudnative-pg/cloudnative-pg v1.25.1/go.mod h1:96b9bRFLSr3uFWHjhytPdcvKIKwy9H6AG7cH0O6jefs=
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.0 h1:QH2xTsrODMhEEc6B25GbOYe7ZIttDmSkYvXotfU5dfs=
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.0/go.mod h1:G28BhgUEHqrxEyyQeHz8BbpMVAsGuLhJm/tHUbDi8Sw=
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.1-0.20250321093050-de4ab51537cb h1:FPORwCxjZwlnKnF7dOkuOAz0GBSQ3Hrn+8lm4uMiWeM=
|
||||
github.com/cloudnative-pg/cnpg-i v0.1.1-0.20250321093050-de4ab51537cb/go.mod h1:n+kbHm3rzRCY5IJKuE1tGMbG6JaeYz8yycYoLt7BeKo=
|
||||
github.com/cloudnative-pg/cnpg-i-machinery v0.2.0 h1:htNuKirdAOYrc7Hu5mLDoOES+nKSyPaXNDLgbV5dLSI=
|
||||
github.com/cloudnative-pg/cnpg-i-machinery v0.2.0/go.mod h1:MHVxMMbLeCRnEM8PLWW4C2CsHqOeAU2OsrwWMKy3tPA=
|
||||
github.com/cloudnative-pg/machinery v0.1.0 h1:tjRmsqQmsO/OlaT0uFmkEtVqgr+SGPM88cKZOHYKLBo=
|
||||
|
||||
@ -44,6 +44,9 @@ func (impl LifecycleImplementation) GetCapabilities(
|
||||
{
|
||||
Type: lifecycle.OperatorOperationType_TYPE_PATCH,
|
||||
},
|
||||
{
|
||||
Type: lifecycle.OperatorOperationType_TYPE_EVALUATE,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user