Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add Model.EnvironVersion() #16
Conversation
| + // environ-version was added in version 3. For older schema versions, | ||
| + // the environ-version will be set to the zero value. | ||
| + if importVersion >= 3 { | ||
| + num, err := version.Parse(valid["environ-version"].(string)) |
axw
Jul 4, 2017
Member
Good question. Originally it held the controller version, but it's not independent, and could just as well be an integer. I'll change it to an int when I'm back at work tomorrow.
axw
referenced this pull request
in juju/juju
Jul 5, 2017
Merged
Introduce environ/provider versioning #7599
axw
merged commit b764a15
into
juju:master
Jul 6, 2017
added a commit
to juju/juju
that referenced
this pull request
Jul 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axw commentedJul 3, 2017
Add model v3, which includes a mandatory Environ version. This will be used by Juju to upgrade the environ/cloud provider resources for a model on controller upgrade or model migration.