You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a --tls-verify flag to the run command which allows skipping TLS
verification when connecting to registries.
Signed-off-by: Hariharan <[email protected]>
Copy file name to clipboardExpand all lines: cmd/run.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ type osVmConfig struct {
23
23
RemoveVmbool// Kill the running VM when it exits
24
24
RemoveDiskImagebool// After exit of the VM, remove the disk image
25
25
Quietbool
26
+
TLSVerifybool
26
27
}
27
28
28
29
var (
@@ -52,6 +53,7 @@ func init() {
52
53
runCmd.Flags().BoolVar(&vmConfig.Quiet, "quiet", false, "Suppress output from bootc disk creation and VM boot console")
53
54
runCmd.Flags().StringVar(&diskImageConfigInstance.RootSizeMax, "root-size-max", "", "Maximum size of root filesystem in bytes; optionally accepts M, G, T suffixes")
54
55
runCmd.Flags().StringVar(&diskImageConfigInstance.DiskSize, "disk-size", "", "Allocate a disk image of this size in bytes; optionally accepts M, G, T suffixes")
56
+
runCmd.Flags().BoolVar(&vmConfig.TLSVerify, "tls-verify", true, "Require HTTPS and verify certificates when accessing the registry")
0 commit comments