redhat-developer-demos/knative-tutorial

Update CoreDNS patch script failing

Opened this issue · 5 comments

Description
Error with yq parsing the output of config map while running patch script to update coredns.

To Reproduce
Steps to reproduce the behavior:

  1. Followed all the steps as is from knative tutorial till Update CoreDNS
  2. Download yq source code and do go install yq.go to get the binary and add $GOPATH/bin to $PATH for system to be able to find yq.
  3. Run the script patch-coredns.sh in $HOME/knative-tutorial/apps/minikube-registry-helper

Expected behavior
Should be patched successfully

Current behaviour
Script fails with the following error:
Error from server (BadRequest): json: cannot unmarshal string into Go value of type map[string]interface {}

Desktop and tools specs

  • OS - RHEL 8 x86_64 GNU/Linux
  • Shell - bash
  • Minikube version - 1.8.2
  • yq version - 3.2.1
  • kubectl version info - Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T21:03:42Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
  • go version - 1.14 linux/amd64

Additional context
Couldn't install yq thorough snap as there was some dependencies issues while building rpm to install snap therefore had to go with downloading the source code and go install.

@kameshsampath Thanks. That fixed the problem.
Please mention the cli tools version as well in the tutorial.