Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions bundle/direct/bundle_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,6 @@ func addPerFieldActions(ctx context.Context, adapter *dresources.Adapter, change
} else if shouldSkip(cfg, path, ch) {
ch.Action = deployplan.Skip
ch.Reason = deployplan.ReasonBuiltinRule
} else if ch.New == nil && ch.Old == nil && ch.Remote != nil && path.IsDotString() {
// The field was not set by us, but comes from the remote state.
// This could either be server-side default or a policy.
// In any case, this is not a change we should react to.
// Note, we only consider struct fields here. Adding/removing elements to/from maps and slices should trigger updates.
ch.Action = deployplan.Skip
ch.Reason = deployplan.ReasonServerSideDefault
} else if action := shouldUpdateOrRecreate(cfg, path); action != deployplan.Undefined {
ch.Action = action
ch.Reason = deployplan.ReasonBuiltinRule
Expand Down
Loading