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 converting 0420 to 0o272).
Acceptance tests
[ ] Have you added an acceptance test for the functionality being added?
[ ] Have you run the acceptance tests on this branch?
Description
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 converting 0420 to 0o272).
Acceptance tests
References
https://github.com/hashicorp/terraform-provider-kubernetes/issues/2541
Community Note