Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

changing deployment name #1718

Merged
merged 4 commits into from
Nov 7, 2017
Merged

changing deployment name #1718

merged 4 commits into from
Nov 7, 2017

Conversation

shrutir25
Copy link
Contributor

What this PR does / why we need it: Changes the way deployment name is computed

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Currently ARM deployment names do not have a cap for 64 characters. Changing the way this name is computed. Making it a function of time/suffix.

Special notes for your reviewer:

Release note:

@ghost ghost assigned shrutir25 Nov 6, 2017
@ghost ghost added the in progress label Nov 6, 2017
@shrutir25
Copy link
Contributor Author

@dmitsh ptal

@@ -235,6 +235,9 @@ func (c *Cluster) AppCount() (int, error) {
// Version will return the node count for a dcos cluster
func (c *Cluster) Version() (string, error) {
out, err := c.Connection.Execute("curl -s http://localhost:80/dcos-metadata/dcos-version.json")
if err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Is this code related?

Copy link

@dmitsh dmitsh Nov 7, 2017

Choose a reason for hiding this comment

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

we were getting lint warning ...
Do you suggest a separate PR?

Copy link
Member

Choose a reason for hiding this comment

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

Nah, it's fine, strange that it should choose this PR to complain about that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So my CI build failed with make test-style. And I fixed all the things it complained about. This showed up as a warning. And my guess is that it has been ignored all this while. Also that check is needed. We are calculating err and not using it.

dmitsh
dmitsh previously approved these changes Nov 7, 2017
@dmitsh dmitsh merged commit 9725e01 into Azure:master Nov 7, 2017
@ghost ghost removed the in progress label Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants