Skip to content

upgrade: unit tests#2672

Merged
siggy merged 2 commits intomasterfrom
siggy/update-upgrade-unit
Apr 10, 2019
Merged

upgrade: unit tests#2672
siggy merged 2 commits intomasterfrom
siggy/update-upgrade-unit

Conversation

@siggy
Copy link
Member

@siggy siggy commented Apr 9, 2019

This change introduces some unit tests on individual methods in the
upgrade code path, along with some minor cleanup.

Part of #2637

Signed-off-by: Andrew Seigner [email protected]

This change introduces some unit tests on individual methods in the
upgrade code path, along with some minor cleanup.

Part of #2637

Signed-off-by: Andrew Seigner <[email protected]>
@siggy siggy self-assigned this Apr 9, 2019
@admc admc mentioned this pull request Apr 9, 2019
25 tasks
@l5d-bot
Copy link
Collaborator

l5d-bot commented Apr 9, 2019

Copy link
Contributor

@ihcsim ihcsim left a comment

Choose a reason for hiding this comment

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

LGTM. Just some minor comments and TIOLI.

}
}

// TODO: are `installValues.Configs` and `configs` redundant?
Copy link
Contributor

Choose a reason for hiding this comment

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

I think installValues.Configs is used in the chart/templates/config.yaml helm chart template. Essentially, it's the JSON of configs.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think my question is more around: If installValues.Configs and configs are just different representations of the same data, can we just keep one copy of that data around, and generate one version from the other on-demand? Any time we have multiple copies of the same data, I get concerned about which version is the source of truth, and what happens if they are not in sync.

@siggy siggy force-pushed the siggy/update-upgrade-unit branch from 9003ace to 9ba396d Compare April 10, 2019 20:36
@l5d-bot
Copy link
Collaborator

l5d-bot commented Apr 10, 2019

@l5d-bot
Copy link
Collaborator

l5d-bot commented Apr 10, 2019

@siggy siggy merged commit 43cb3f8 into master Apr 10, 2019
@siggy siggy deleted the siggy/update-upgrade-unit branch April 10, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants