zarf
zarf copied to clipboard
Add --confirm switch to zarf dev patch-git
Is your feature request related to a problem? Please describe.
Please add a --confirm
flag to zarf dev patch-git
to support automation of the patch process.
Describe alternatives you've considered
We have attempted to automate zarf dev patch-git
in various ways, for example yes | zarf dev patch-git
and the process invariably fails.
This is due to the implementation of the underlying survey go package, and is a known issue with the same: https://github.com/AlecAivazis/survey?tab=readme-ov-file#what-kinds-of-io-are-supported-by-survey https://github.com/AlecAivazis/survey/pull/337#issue-581351617
Additional context
We are deploying zarf in a hub-spoke design pattern where the zarf cluster is separate from production clusters. We have a requirement that the zarf-agent not be deployed to clusters running production workloads, so we cannot rely on the mutating webhook to modify the git url.