Skip to content

Commit

Permalink
Merge pull request #613 from lsviben/od-supported-policy
Browse files Browse the repository at this point in the history
Add [Observe, Delete] as a supported management policy
  • Loading branch information
phisco authored Nov 30, 2023
2 parents 2cbf8d9 + 40bf7a9 commit ce34a9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/reconciler/managed/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func defaultSupportedManagementPolicies() []sets.Set[xpv1.ManagementAction] {
// is not deleted when the managed resource is deleted and the
// spec.forProvider is not late initialized.
sets.New[xpv1.ManagementAction](xpv1.ManagementActionObserve, xpv1.ManagementActionCreate),
// Like ObserveOnly, but the external resource is deleted when the
// managed resource is deleted.
sets.New[xpv1.ManagementAction](xpv1.ManagementActionObserve, xpv1.ManagementActionDelete),
}
}

Expand Down

0 comments on commit ce34a9d

Please sign in to comment.