Bug 1297615 - Error "json: cannot unmarshal number into Go value of type string" when following doc to create a pod using downward api
Summary: Error "json: cannot unmarshal number into Go value of type string" when follo...
Keywords:
Status: NEW
Alias: None
Product: OKD
Classification: Red Hat
Component: Documentation
Version: 3.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Ronaldo Rivera
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-12 02:44 UTC by Chao Yang
Modified: 2022-01-14 13:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Chao Yang 2016-01-12 02:44:38 UTC
Document URL: 
https://docs.openshift.org/latest/dev_guide/downward_api.html
Section Number and Name: 
Using the Volume Plug-in/Create a volume-pod.json

Describe the issue: 
when using the json file provided to create a pod , error will displayed as below
unable to load "volume-pod.json": json: cannot unmarshal number into Go value of type string
Suggestions for improvement: 
need to update the value of annotaion to string from number
  annotations:
    annotation1: 345
    annotation2: 456
Additional information:


Note You need to log in before you can comment on or make changes to this bug.