Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not format DefaultMode & Mode to octal representation #2542

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: do not format DefaultMode & Mode to octal representation
  • Loading branch information
enkron committed Jul 4, 2024
commit 81c7322b8ea1115048c0e8cc76f01bb8412de2b1
4 changes: 2 additions & 2 deletions kubernetes/structures_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func flattenDownwardAPIVolumeFile(in []v1.DownwardAPIVolumeFile) []interface{} {
func flattenConfigMapVolumeSource(in *v1.ConfigMapVolumeSource) []interface{} {
att := make(map[string]interface{})
if in.DefaultMode != nil {
att["default_mode"] = "0" + strconv.FormatInt(int64(*in.DefaultMode), 8)
att["default_mode"] = strconv.FormatInt(int64(*in.DefaultMode), 10)
}
att["name"] = in.Name
if len(in.Items) > 0 {
Expand All @@ -519,7 +519,7 @@ func flattenConfigMapVolumeSource(in *v1.ConfigMapVolumeSource) []interface{} {
m["key"] = v.Key
}
if v.Mode != nil {
m["mode"] = "0" + strconv.FormatInt(int64(*v.Mode), 8)
m["mode"] = strconv.FormatInt(int64(*v.Mode), 10)
}
if v.Path != "" {
m["path"] = v.Path
Expand Down
Loading