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

Annotation value1 is recognized as a bool type and an error occurs #112

Open
sekinet813 opened this issue May 31, 2022 · 0 comments
Open

Comments

@sekinet813
Copy link

If I create the following yaml in Pod and create it, I get an error. Perhaps 1 is recognized as a bool type; no error occurred with any number other than 1.

YAML

apiVersion: v1
kind: Pod
metadata:
  name: busybox-date
  annotations:
    key: 1
spec:
  containers:
    -
      name: busybox
      image: busybox
      args:
        - date

Error message

@"kind":"Status","apiVersion":"v1","metadata":[],"status":"Failure","message":"Pod in version \"v1\" cannot be handled as a 
Pod: v1.Pod.Spec: v1.PodSpec.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|0818b0\": 1\n |..., bigger context ...| \"key\": 1\n }\n },\n \"spec\": @\n \"container|...","reason":"BadRequest","code":400
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

1 participant