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

0400 gets changed to 256 #2863

Closed
aude opened this issue Aug 19, 2020 · 3 comments
Closed

0400 gets changed to 256 #2863

aude opened this issue Aug 19, 2020 · 3 comments

Comments

@aude
Copy link
Contributor

aude commented Aug 19, 2020

Given the following files:

$ cat > pod.yaml << _EOF_
apiVersion: v1
kind: Pod
metadata:
  name: alpine
  mode: 0400
spec:
  containers:
  - name: alpine
    image: alpine
    args: ["sleep", "infinity"]
_EOF_
$ cat > kustomization.yaml << _EOF_
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pod.yaml
_EOF_

Kustomize produces the following output:

$ kustomize build .
apiVersion: v1
kind: Pod
metadata:
  mode: 256
  name: alpine
spec:
  containers:
  - args:
    - sleep
    - infinity
    image: alpine
    name: alpine

I'm perplexed!

It's easy to work around, by just quoting the 0400, but now I'm curious as to why it happens. Do you know why?

@Shell32-Natsu
Copy link
Contributor

go-yaml/yaml#420

@Shell32-Natsu
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@Shell32-Natsu: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

3 participants