Open njlaw opened 8 months ago
Hi, I am facing the same bug in version 2.198.54
This happened because we inadvertently pulled in breaking changes from json2jsii
. Unfortunately reverting will now also cause a breaking change so we are reluctant to do so. Apologies for the disruption this caused.
We have sense prevented pulling in such changes going forward: https://github.com/cdk8s-team/cdk8s-cli/pull/2713
Description of the bug:
Enum property names (at least in TypeScript) have been changed between v2.177.0 and v2.178.0. In particular, what was for example,
MESH_INTERNAL
has becomeMESH_UNDERSCORE_INTERNAL
. This requires manual updates in relying code. Please note that this change may be intentional; however, as it requires changes in relying code and I couldn't find it documented anywhere, I'm opening this issue.Reproduction Steps:
The only difference between the following steps is the cdk8s-cli version invoked. I have also tested this with the latest release and get the same results as v2.178.0.
v2.177.0 Steps
v2.177.0 Output
v2.178.0 Steps
v2.178.0 Output
Error Log:
In the above output, v2.177.0 resulted in
MESH_INTERNAL = "MESH_INTERNAL"
, but now v2.178.0+ results inMESH_UNDERSCORE_INTERNAL = "MESH_INTERNAL"
. The current version, v2.198.22, also produces the same results as v2.178.0.Environment:
v2.177.0
vsv2.178.0
or any newer versionLinux <hostname> 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Other:
Because the only changes between v2.177.0 and v2.178.0 are dependencies, I assume that this behavior was changed upstream, but I'm not sure where to look or whether this change at the
cdk8s import
level was intentional.This is :bug: Bug Report