Reputation: 156
skaffold.yaml
apiVersion: skaffold/v2alpha3
kind: Config
deploy:
kubectl:
manifests:
- ./infra/k8s/*
build:
local:
push: false
artifacts:
- image: karan346/auth
context: auth
docker:
dockerfile: Dockerfile
sync:
manual:
- src: 'src/**/*.ts'
des: .
Error
parsing skaffold config: error parsing skaffold configuration file: unable to parse config: yaml: unmarshal errors:
line 10: field des not found in type v2alpha3.SyncRule
Not able to fix the issue. Everything is setup correctly.
Also, is there any version that is stable and won't give errors in the future?
Upvotes: 1
Views: 1157
Reputation: 4181
Error you're facing is:
line 10: field des not found in type v2alpha3.SyncRule
There's no field des
in these api
and kind
.
Based on the documentation for manual file sync, field should be named as dest
. See the example below:
build:
artifacts:
- image: gcr.io/k8s-skaffold/node-example
context: node
sync:
manual:
# sync a single file into the `/etc` folder
- src: '.filebaserc'
dest: /etc
Last available apiVersion
of skaffold
at the moment of posting the answer is skaffold/v2beta26
.
It's always can be checked on skaffold.yaml documentation
Upvotes: 1