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

Octal values not preserved #22

Open
JonathanBroomeMYOB opened this issue Aug 18, 2017 · 1 comment
Open

Octal values not preserved #22

JonathanBroomeMYOB opened this issue Aug 18, 2017 · 1 comment

Comments

@JonathanBroomeMYOB
Copy link

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.

@jimmycuadra
Copy link
Contributor

The YAML parser that ktmpl uses adheres to the YAML 1.2 spec, which requires octal values to be prefixed with 0o (that's a zero followed by a lower-case letter O). Try using 0o744 and see if that works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants