GoogleContainerTools / GoogleContainerTools/skaffold

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

Open
#6,137 2 comments 2 reactions 1 assignee Claimed by @nkubala View on GitHub
area/apply good first issue help wanted kind/feature-request priority/p2 triage/needs-information
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.