You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yaml-utils / applyYamlFromDir uses the index into the list of files as part of the logical ID for each manifest.
This results in the ID of each resource changing if the order of files in the directory changes.
Expected Behavior
Adding or removing manifests in a team directory should not result in logical ID changes
Current Behavior
Adding or removing manifests in a team directory results in unexpected logical ID changes and deployment errors
Reproduction Steps
Deploy a cluster with a team with a teamManifestDir and a manifest "b.yaml"
This manifest will get a logical ID containing b0
Add another manifest "a.yaml"
Run synth
You will now have two resources to add:
a0
b1
and one resource to remove:
b0
Run deploy
a0 will be added successfully
b1 will fail to be added as the kubectl handler considers it a new resource and uses create but the resource added by b0 still exists
Deployment will then fail and rollback
Possible Solution
Don't use the file index as part of the logical ID
Additional Information/Context
No response
CDK CLI Version
2.81.0 (build bd920f2)
EKS Blueprints Version
1.9.1
Node.js Version
v18.16.0
Environment details (OS name and version, etc.)
Windows 11
Other information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
yaml-utils / applyYamlFromDir uses the index into the list of files as part of the logical ID for each manifest.
This results in the ID of each resource changing if the order of files in the directory changes.
Expected Behavior
Adding or removing manifests in a team directory should not result in logical ID changes
Current Behavior
Adding or removing manifests in a team directory results in unexpected logical ID changes and deployment errors
Reproduction Steps
This manifest will get a logical ID containing b0
Add another manifest "a.yaml"
Run synth
You will now have two resources to add:
a0
b1
and one resource to remove:
b0
a0 will be added successfully
b1 will fail to be added as the kubectl handler considers it a new resource and uses create but the resource added by b0 still exists
Possible Solution
Don't use the file index as part of the logical ID
Additional Information/Context
No response
CDK CLI Version
2.81.0 (build bd920f2)
EKS Blueprints Version
1.9.1
Node.js Version
v18.16.0
Environment details (OS name and version, etc.)
Windows 11
Other information
No response
The text was updated successfully, but these errors were encountered: