devspace
devspace copied to clipboard
fix remote buildkit error: [415: Unsupported Media Type]
Issue describe
since legacy kube api not support server-side apply, when use remote buildkit will get the error:
local-registry: Starting Local Image Registry
build_images: build images: create builder: get or create local registry: ensure deployment: 415: Unsupported Media Type
fatal exit status 1
this pr will resolve the compatibility issue
The pr summary
What issue type does this pull request address? (keep at least one, remove the others) /kind bugfix
Please provide a short message that should be published in the DevSpace release notes fix remote buildkit error: [415: Unsupported Media Type], compatibility legacy kube api server which not support server-side apply
repreduce
$ curl -Lo ~/bin/devspace-linux-amd64-6.3.12 https://github.com/devspace-sh/devspace/releases/download/v6.3.12/devspace-linux-amd64
$ chmod u+x ~/bin/devspace-linux-amd64-6.3.12
$ ~/bin/devspace-linux-amd64-6.3.12 version
DevSpace version : 6.3.12
$ kubectl version --short
Client Version: v1.26.7
Kustomize Version: v4.5.7
Server Version: v1.15.11
$ devspace-linux-amd64-6.3.12 build --skip-push
info Using namespace 'devspace'
info Using kube context 'devspace@dev'
Couldn't find a running docker daemon. Will fallback to local registry
local-registry: Starting Local Image Registry
build_images: build images: create builder: get or create local registry: ensure deployment: 415: Unsupported Media Type
fatal exit status 1
Deploy Preview for devspace-docs ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | b773b9b2d9e730a0d4879ea70078684755de9e63 |
| Latest deploy log | https://app.netlify.com/sites/devspace-docs/deploys/66eaf4eea44562000920e025 |
| Deploy Preview | https://deploy-preview-2864--devspace-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.