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
Copy file name to clipboardExpand all lines: pkg/cmd/create.go
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,9 @@ var (
51
51
)
52
52
53
53
var (
54
-
modestring
55
-
outputDirectorystring
54
+
modestring
55
+
outputDirectorystring
56
+
nodeImageRegistrystring
56
57
)
57
58
58
59
// CreateOptions contains config for creating a release.
@@ -63,6 +64,7 @@ type CreateOptions struct {
63
64
Metadata clusterstack.MetaData
64
65
CurrentReleaseHash hash.ReleaseHash
65
66
LatestReleaseHash hash.ReleaseHash
67
+
NodeImageRegistrystring
66
68
}
67
69
68
70
// createCmd represents the create command.
@@ -78,6 +80,7 @@ var createCmd = &cobra.Command{
78
80
funcinit() {
79
81
createCmd.Flags().StringVarP(&mode, "mode", "m", "stable", "It defines the mode of the cluster stack manager")
80
82
createCmd.Flags().StringVarP(&outputDirectory, "output", "o", "./releases", "It defines the output directory in which the release artifacts will be generated")
83
+
createCmd.Flags().StringVarP(&nodeImageRegistry, "node-image-registry", "r", "", "It defines the node image registry. For example oci://ghcr.io/foo/bar/node-images/staging/")
81
84
}
82
85
83
86
// GetCreateOptions create a Create Option for create command.
0 commit comments