-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for creating multichannel licenses (#398)
* Support for creating multichannel licenses * Log when an explicit default channel is not provided * Include required --name example in usage one-liner * Actually flip found default flag, and error if default chan not in set --------- Co-authored-by: pandemicsyn <[email protected]>
- Loading branch information
1 parent
2b06405
commit 889daf0
Showing
7 changed files
with
119 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,13 +45,13 @@ func (r *runners) InitClusterPrepare(parent *cobra.Command) *cobra.Command { | |
cmd := &cobra.Command{ | ||
Use: "prepare", | ||
Short: "prepare cluster for testing", | ||
Long: `The cluster prepare command will provision a cluster and install | ||
Long: `The cluster prepare command will provision a cluster and install | ||
a local helm chart with a custom values.yaml and custom replicated sdk entitlements. | ||
This is a higher level CLI command that is useful in CI when you have a Helm chart and | ||
want it running in a variety of clusters. | ||
For more control over the workflow, consider using the cluster create command and | ||
For more control over the workflow, consider using the cluster create command and | ||
using kubectl and helm CLI tools to install your application. | ||
Example: | ||
|
@@ -235,7 +235,7 @@ func (r *runners) prepareCluster(_ *cobra.Command, args []string) error { | |
email := fmt.Sprintf("%[email protected]", clusterName) | ||
customerOpts := kotsclient.CreateCustomerOpts{ | ||
Name: clusterName, | ||
ChannelID: "", | ||
Channels: []kotsclient.CustomerChannel{}, | ||
AppID: r.appID, | ||
LicenseType: "test", | ||
Email: email, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters