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
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ import (
36
36
const (
37
37
stableMode="stable"
38
38
hashMode="hash"
39
+
customMode="custom"
39
40
)
40
41
41
42
var (
@@ -51,9 +52,12 @@ var (
51
52
)
52
53
53
54
var (
54
-
modestring
55
-
outputDirectorystring
56
-
nodeImageRegistrystring
55
+
modestring
56
+
outputDirectorystring
57
+
nodeImageRegistrystring
58
+
clusterStackVersionstring
59
+
clusterAddonVersionstring
60
+
nodeImageVersionstring
57
61
)
58
62
59
63
// CreateOptions contains config for creating a release.
@@ -82,6 +86,9 @@ func init() {
82
86
createCmd.Flags().StringVarP(&mode, "mode", "m", "stable", "It defines the mode of the cluster stack manager")
83
87
createCmd.Flags().StringVarP(&outputDirectory, "output", "o", "./.release", "It defines the output directory in which the release artifacts will be generated")
84
88
createCmd.Flags().StringVarP(&nodeImageRegistry, "node-image-registry", "r", "", "It defines the node image registry. For example oci://ghcr.io/foo/bar/node-images/staging/")
89
+
createCmd.Flags().StringVar(&clusterStackVersion, "cluster-stack-version", "", "It is used to specify the semver version for the cluster stack in the custom mode")
90
+
createCmd.Flags().StringVar(&clusterAddonVersion, "cluster-addon-version", "", "It is used to specify the semver version for the cluster addon in the custom mode")
91
+
createCmd.Flags().StringVar(&nodeImageVersion, "node-image-version", "", "It is used to specify the semver version for the node images in the custom mode")
85
92
}
86
93
87
94
// GetCreateOptions create a Create Option for create command.
0 commit comments