Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

empty "spec: {}" is created when using dryrun: true with a "configmaps" type #50

Open
toddcscar opened this issue Nov 8, 2019 · 0 comments

Comments

@toddcscar
Copy link

posting this:

echo '{
  "dryrun":true,
  "token":"ey...",
  "name": "configmap-name",
  "namespace": "namespace",
  "decode": true,
  "type": "configmaps", "locations": [ { "name": "datacenter" } ],
  "k8s": { "data": { "file.dat": "<base64-data>" } } }'
|
curl -X POST https://skipper.cnqr.delivery/api/v1/object -H "Content-Type: application/json" -H "Accept-Type: application/json" -d -

generates spec: {}
which causes kube applier to fail:

error validating data: ValidationError(ConfigMap): 
unknown field "spec" in io.k8s.api.core.v1.ConfigMap; 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant