mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore: simplify
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This commit is contained in:
parent
baa88b630e
commit
ccf9848238
@ -41,9 +41,6 @@ func (impl LifecycleImplementation) GetCapabilities(
|
||||
{
|
||||
Type: lifecycle.OperatorOperationType_TYPE_CREATE,
|
||||
},
|
||||
{
|
||||
Type: lifecycle.OperatorOperationType_TYPE_PATCH,
|
||||
},
|
||||
{
|
||||
Type: lifecycle.OperatorOperationType_TYPE_EVALUATE,
|
||||
},
|
||||
@ -95,15 +92,6 @@ func (impl LifecycleImplementation) LifecycleHook(
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Only allow modifications during EVALUATE or CREATE operations.
|
||||
// For PATCH, UPDATE, or other operations, skip processing as the operator will handle changes during EVALUATE.
|
||||
if *operation != lifecycle.OperatorOperationType_TYPE_EVALUATE &&
|
||||
*operation != lifecycle.OperatorOperationType_TYPE_CREATE {
|
||||
contextLogger.Trace("Skipping lifecycle hook: operation is not EVALUATE or CREATE",
|
||||
"operation", operation.String())
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
switch kind {
|
||||
case "Pod":
|
||||
contextLogger.Info("Reconciling pod")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user