force cbd during apply too
We need to run the force CBD transformer during apply too, both to ensure we can rely on the `CreateBeforeDestroy()` status for dependants during apply, but also to ensure that the correct status is stored into state.
This commit is contained in:
parent
9fe87fe520
commit
cf9b6de03e
|
@ -143,6 +143,10 @@ func (b *ApplyGraphBuilder) Steps() []GraphTransformer {
|
||||||
&ReferenceTransformer{},
|
&ReferenceTransformer{},
|
||||||
&AttachDependenciesTransformer{},
|
&AttachDependenciesTransformer{},
|
||||||
|
|
||||||
|
// Detect when create_before_destroy must be forced on for a particular
|
||||||
|
// node due to dependency edges, to avoid graph cycles during apply.
|
||||||
|
&ForcedCBDTransformer{},
|
||||||
|
|
||||||
// Destruction ordering
|
// Destruction ordering
|
||||||
&DestroyEdgeTransformer{
|
&DestroyEdgeTransformer{
|
||||||
Config: b.Config,
|
Config: b.Config,
|
||||||
|
|
Loading…
Reference in New Issue