-
Notifications
You must be signed in to change notification settings - Fork 26
Kots cli release only #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cli/cmd/release_update.go
Outdated
import ( | ||
"errors" | ||
"encoding/json" | ||
// "errors" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
cli/cmd/root.go
Outdated
return err | ||
} | ||
runCmds.appID = app.ID | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if appType == "kots" {
pkg/shipclient/release.go
Outdated
Name: shipReleaseChannel.Name, | ||
} | ||
activeChannels = append(activeChannels, activeChannel) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra newline
} | ||
|
||
func (c *Client) UpdateCollectorName(appID string, specID string, name string) (interface{}, error) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra newline
return &releaseInfo, nil | ||
} | ||
|
||
var updateKotsRelease = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I could, that had been the intention - I set the variable then just pasted the mutation directly into the UpdateRelease function. . will fix to as originally intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like make test is failing
7.50s$ make test
go test ./cli/test
# github.com/replicatedhq/replicated/client
client/collector.go:12:63: undefined: appType
FAIL github.com/replicatedhq/replicated/cli/test [build failed]
make: *** [test] Error 2
yep - got over eager in deleting code to strip down to just the changes pertaining to the 'release' command. fixed the above, tests passing now. |
No description provided.