GoogleContainerTools / GoogleContainerTools/skaffold

`skaffold init --analyze --compose-file docker-compose.yaml` writes k8s yaml files

Open
#6,251 3 comments 0 reactions 0 assignees View on GitHub
area/init area/init-analyze kind/bug planning/Q4-21 priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
Typically, the `--analyze` flag does not actually commit anything to the filesystem. The same thing should occur here. The stdout output looks good and should remain the same.

### Actual behavior
kompose runs and outputs yaml files to the cwd in addition to outputting the correct stdout contents.
![Screen Shot 2021-07-19 at 4 59 33 PM](https://user-images.githubusercontent.com/554839/126242238-981442c0-9a6d-4b15-a0f1-a4c49c0890d8.png)

### Information

- Skaffold version: v1.27.0
- Operating system: MacOS Big Sur 11.4
- Installed via: Google Cloud SDK
- Contents of skaffold.yaml: n/a

### Steps to reproduce the behavior

1. Clone https://github.com/docker/awesome-compose/tree/master/nginx-flask-mongo
2. `skaffold init --analyze --compose-file docker-compose.yaml`

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.