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.
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
Not a breaking change.