drone-kube icon indicating copy to clipboard operation
drone-kube copied to clipboard

Error decoding yaml file to jsonUnable

Open MorrisMatrix opened this issue 6 years ago • 3 comments

Trying to update my AWS EKS v1.10 cluster using this plugin and I get a parsing error while trying to deploy my application. I've validated that my deployment.yaml works stand alone and successfully deployed it to the cluster.

I believe it has something to do with the Go client being outdated and perhaps incompatible with Kubernetes v1.10.

Below is the error I receive.

Error decoding yaml file to jsonUnable to convert <nil> to conversion.structAdaptor{typ:(*reflect.rtype)(0x16deea0), ptr:(unsafe.Pointer)(0xc8203b0110), flag:0x199}

MorrisMatrix avatar Jul 16 '18 20:07 MorrisMatrix

Could be. I haven't looked at this for a while. I apologize as I have been working on some other projects at the moment.

On Mon, Jul 16, 2018 at 1:38 PM, MorrisMatrix [email protected] wrote:

Trying to update my AWS EKS v1.10 cluster using this plugin and I get a parsing error while trying to deploy my application. I've validated that my deployment.yaml works stand alone and successfully deployed it to the cluster.

I believe it has something to do with the Go client being outdated and perhaps incompatible with Kubernetes v1.10.

Below is the error I receive.

Error decoding yaml file to jsonUnable to convert to conversion.structAdaptor{typ:(*reflect.rtype)(0x16deea0), ptr:(unsafe.Pointer)(0xc8203b0110), flag:0x199}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vallard/drone-kube/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKVTUh_XsLwhlqjRVS8uOKEofv1W_XEks5uHPmvgaJpZM4VRxF- .

vallard avatar Jul 16 '18 21:07 vallard

Thank you for your timely response @vallard - Is there any plans to update this plugin in the future?

Looks like the plugin relies on some outdated packages. It looks like these 5 packages no longer exist or maybe were renamed:

k8s.io/client-go/pkg/api
k8s.io/client-go/pkg/api/v1
k8s.io/client-go/pkg/apis/extensions/v1beta1
k8s.io/client-go/pkg/runtime
k8s.io/kubernetes/pkg/util/yaml

MorrisMatrix avatar Jul 17 '18 13:07 MorrisMatrix

I don't have any immediate plans at the moment. It didn't take too long to develop (which is why its probably pretty feature incomplete). I'll probably need to update my Kubernetes at some point and then I'll update it. There is also spinnaker that provides native kubernetes integration I believe which I may look into.

On Tue, Jul 17, 2018 at 6:04 AM, MorrisMatrix [email protected] wrote:

Thank you for your timely response @vallard https://github.com/vallard

  • Is there any plans to update this plugin in the future?

Looks like the plugin relies on some outdated packages. It looks like these 5 packages no longer exist or maybe were renamed:

k8s.io/client-go/pkg/apik8s.io/client-go/pkg/api/v1k8s.io/client-go/pkg/apis/extensions/v1beta1k8s.io/client-go/pkg/runtimek8s.io/kubernetes/pkg/util/yaml

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vallard/drone-kube/issues/6#issuecomment-405574327, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKVTVmRD5szeDArsLsxxw5nU0AzBdsLks5uHeDfgaJpZM4VRxF- .

vallard avatar Jul 17 '18 13:07 vallard