Closed enkron closed 4 months ago
Hi @enkron,
If I understand this issue correctly, you are referring to a decimal value that you obtain from kubectl
output. If that is the case, then this is the way it works and no changes on the provider end can affect this. You will get the same result if you use YAML manifests instead of our provider.
Here is the description of this field that can bring some clarity of why that happens:
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
I hope that helps.
Thanks.
Hello @arybolovlev,
Thank you for the clarification.
Seems i mixed up decimal -> octal conversion without reading documentation properly:
if i assign 420
value to the defaultMode
parameter in yaml manifest it converts to 0644 octal representation.
I'll close the issue and apologies for inconvenience
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform apply
Expected Behavior
default_mode
config_map's value must be an octal value between 0 and 0777Actual Behavior
It looks like the
default_mode
value actually accepts a decimal number which is then converted to an octal value, for example if the "0420" is specified as a default access mode it's converts to the 272 (which is the result of converting0420
to0o272
).Important Factoids
environment: AWS EKS on Fargate
Community Note