Skip to content

Octal values not preserved #22

@JonathanBroomeMYOB

Description

@JonathanBroomeMYOB

As part of my config I have the following:

volumes:
- name: init-script
  configMap:
    name: app-init-script
    defaultMode: 0744

But when run through ktmpl this comes out as:

volumes:
- name: init-script
  configMap:
    name: app-init-script
    defaultMode: 744

The 744 is then considered to be an int, rather than an octal value, so the app fails to deploy.
As a workaround, I can set this to 484, which is the base 10 equivalent of 744.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions