Skip to content

Conversation

smithers1221
Copy link
Contributor

No description provided.

Copy link

@fshot fshot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 suggested changes

} else {
} else if appType == "ship" {
return c.ShipClient.PromoteCollector(appID, specID, channelIDs...)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that we're not specifically explaining that Kots apps collectors are handled differently, as we do with the CreateCollector call above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was that to call this you actual need to have created a spec and have a specID...which would be impossible if it was a kots app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually

if err != nil {
return nil, err
}
func (c *Client) CreateEntitlementSpec(name string, appType string, spec string, appID string) (*types.EntitlementSpec, error) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little weird that every other function starts with appID and AppType as the first two parameters, and this one starts with the 'name' parameter. Updating this for consistency would be a good idea, unless there's a strong reason otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally - will change right now.

@smithers1221 smithers1221 merged commit 48134e7 into master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants