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

error: unable to decode "STDIN": json: cannot unmarshal string into Go value of type unstructured.detector #1

Open
jarcher opened this issue Oct 30, 2017 · 5 comments

Comments

@jarcher
Copy link

jarcher commented Oct 30, 2017

Attempting to apply the template

⇒ oc apply -f openshift-api-swagger-template.yml | oc apply -f-
error: unable to decode "STDIN": json: cannot unmarshal string into Go value of type unstructured.detector

ideas?

@sabre1041
Copy link
Owner

@jarcher what version of OpenShift?

@jimmylin
Copy link

jimmylin commented Oct 31, 2017

I got the same error running on minishift origin (I believe):

oc v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7
features: Basic-Auth

Server https://192.168.64.5:8443
openshift v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7

Also, running this on a Mac.

@jimmylin
Copy link

The template was successfully created in the project so I ended up just running:
oc new-app --template=openshift-api-swagger

@janosroden
Copy link

Solution: README is wrong, the command should be
oc process -f https://raw.githubusercontent.com/sabre1041/openshift-api-swagger/master/openshift-api-swagger-template.yml | oc apply -f-

@vap0rtranz
Copy link

That worked. 'oc process -f ... | oc apply -f-' type of construct

jeffrey4l added a commit to jeffrey4l/openshift-api-swagger that referenced this issue Jul 3, 2018
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

5 participants