Skip to content

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

@sekinet813

Description

@sekinet813

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions