Add back deprecated flags to the helm chart: CHECK_ASG_TAG_BEFORE_DRAINING
and MANAGED_ASG_TAG
#682
Labels
CHECK_ASG_TAG_BEFORE_DRAINING
and MANAGED_ASG_TAG
#682
Problem
Release
v1.17.0
(chart versionv0.19.0
) deprecated two flags:CHECK_ASG_TAG_BEFORE_DRAINING
andMANAGED_ASG_TAG
, replacing them withCHECK_TAG_BEFORE_DRAINING
andMANAGED_TAG
. This change reflects the fact that we no longer call any ASG APIs when checking tags on an EC2 instance to determine whether NTH should manage it.Our release notes stated
These two values are indeed still supported if invoked via CLI flags. However, they are not supported if invoked via the helm chart.
Solution
We need to add
CHECK_ASG_TAG_BEFORE_DRAINING
andMANAGED_ASG_TAG
back to deployment.yaml and addcheckASGTagBeforeDraining
andmanagedAsgTag
back to values.yaml, with appropriate comments to designate them as deprecated. If possible, we should also issue warnings, similar to how the CLI flags work, so that consumers are aware of the deprecation and can take steps to migrate before we eventually remove the deprecated flags in a future release.Background
As discussed in #679:
Originally posted by jgournet August 25, 2022
Hi,
Just wanted to bring a pain point we just experienced:
Release 1.17.0 introduced this call out:
Great :) that's the right way to deprecate flags
But the helm chart changed to:
https://github.com/aws/aws-node-termination-handler/blob/main/config/helm/aws-node-termination-handler/values.yaml
=> node termination handler silently suddenly stopped working for us after upgrading. Lucky us for randomly catching it :)
So just mentioning it, in case someone can come up with a solution to slowly deprecate helm values too
The text was updated successfully, but these errors were encountered: