Skaffold fails to label API objects created with multi-document JSON k8s manifest #920
Labels
area/labels
good first issue
Good for newcomers
help wanted
We would love to have this done, but don't have the bandwidth, need help from contributors
kind/bug
Something isn't working
priority/p2
May take a couple of releases
Expected behavior
Skaffold correctly labels all API objects in kubernetes
Actual behavior
Labeling on the API objects created through the JSON manifests fails. The objects are created successfully (aka deployment succeeds), but labeling fails with:
I deployed to GKE, so inspecting the Service in the cloud console, I can see that there are no labels on the
leeroy-app
service, but they are there onleeroy-web
(which was deployed from YAML).Information
examples/microservices/skaffold.yaml
Steps to reproduce the behavior
microservices
example in Skaffold, rewrite theleeroy-app/kubernetes/deployment.yaml
todeployment.json
as follows (abbreviated since this is just a rewrite of the bundled example):skaffold dev
orskaffold run
.My guess is this has something to do with using
kind: List
since JSON doesn't support the k8s document separator (---
).The text was updated successfully, but these errors were encountered: