GoogleContainerTools/skaffold

skaffold apply - support manifests on stdin, similar to kubectl apply -f -

開放

#6,137 建立於 2021年7月6日

 (2 則留言) (2 個反應) (1 位負責人)Go (1,416 個分叉)batch import
area/applygood first issuehelp wantedkind/feature-requestpriority/p2triage/needs-information

倉庫指標

星標
 (12,822 顆星)
PR 合併指標
 (平均合併 3天 6小時) (30 天內合併 16 個 PR)

描述

Please add support to skaffold apply for using Kubernetes manifests from stdin, similar to what kubectl apply -f - does.

Obviously it'd be nice to support the same -f - are that kubectl does but I can't due to that already being taken for -f skaffold.yaml, but could still support accepting k8s manifests from stdin if no file args are given.

The current workaround of outputting to a file and then supplying a file arg is ok, but accepting from stdin would be nice to have too as a more unix-like behaviour to support CLI pipes.

Expected behavior

skaffold render |
skaffold apply

Actual behavior

skaffold render |
skaffold apply 
`apply` requires at least one manifest argument
write /dev/stdout: broken pipe

Information

  • Skaffold version: 1.27.0
  • Operating system: Mac
  • Installed via: Homebrew

貢獻者指南