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
feat(create): Support OCI remote and deduplicate code (#162)
added: allow switch for assetclient in create command
added: `--publish` flag for create command
removed: unused code changes from last commit
changed: moved `pushReleaseAssets` function to `create.go`
removed: publish command and `publish.go` file
changed: help text format
chore: go mod tidy
chore(create): reactivate validateHash
fix: make linter happy
Signed-off-by: Danny Eiselt <eiselt@b1-systems.de>
Co-authored-by: Jan Schoone <6106846+jschoone@users.noreply.github.com>
csctl create --publish --remote oci tests/cluster-stacks/docker/ferrol (publish to OCI repository)`
51
55
)
52
56
53
57
var (
@@ -57,6 +61,8 @@ var (
57
61
clusterStackVersionstring
58
62
clusterAddonVersionstring
59
63
nodeImageVersionstring
64
+
remotestring
65
+
publishbool
60
66
)
61
67
62
68
// CreateOptions contains config for creating a release.
@@ -69,6 +75,7 @@ type CreateOptions struct {
69
75
CurrentReleaseHash hash.ReleaseHash
70
76
LatestReleaseHash hash.ReleaseHash
71
77
NodeImageRegistrystring
78
+
releaseNamestring
72
79
}
73
80
74
81
// createCmd represents the create command.
@@ -88,6 +95,8 @@ func init() {
88
95
createCmd.Flags().StringVar(&clusterStackVersion, "cluster-stack-version", "", "It is used to specify the semver version for the cluster stack in the custom mode")
89
96
createCmd.Flags().StringVar(&clusterAddonVersion, "cluster-addon-version", "", "It is used to specify the semver version for the cluster addon in the custom mode")
90
97
createCmd.Flags().StringVar(&nodeImageVersion, "node-image-version", "", "It is used to specify the semver version for the node images in the custom mode")
98
+
createCmd.Flags().StringVar(&remote, "remote", "github", "Which remote repository to use and thus which credentials are required. Currently supported are 'github' and 'oci'.")
99
+
createCmd.Flags().BoolVar(&publish, "publish", false, "Publish release after creation is done. This is only implemented for OCI currently.")
91
100
}
92
101
93
102
// GetCreateOptions create a Create Option for create command.
0 commit comments