Skip to content

Fix stale append_tolerations when removed from the terraform configuration #2245

@github-actions

Description

@github-actions

This is the tracking issue for #2244

Please add labels indicating the release versions eg. 'release/v15'

Please add comments for user issues which this issue addresses.

Description copied from PR:

Addresses #2207

Description

The provider currently omits append_tolerations from the rancher api payload when the terraform list becomes empty because the expander gates assignment n len(v) > 0, this prevents rancher from receiving an explicit empty list and causes stale tolerations to persist on the cluster spec.

so removing the length guard and preserves field presence whenever the terraform key exists. This allows the provider to serializes explicit empty slices and enables proper removal for append_tolerations

Testing

  • Add appened_tolerations
  • modify existing tolerations
  • remove tolerations while keeping the other fields like memory
  • remove entire block

Not a breaking change.

Metadata

Metadata

Assignees

Labels

internal/trackingThis is an issue tracking release of a PR across multiple verisonsrelease/v15Targets release v15.x correlating to Rancher's v2.15.x

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions