fix: add a ClusterName property and use it for resources names#202
fix: add a ClusterName property and use it for resources names#202sylr wants to merge 2 commits intoAzure:masterfrom
Conversation
46bf3d4 to
698462d
Compare
07916b5 to
e330a58
Compare
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
==========================================
- Coverage 53.21% 53.19% -0.03%
==========================================
Files 95 95
Lines 14230 14239 +9
==========================================
+ Hits 7573 7574 +1
- Misses 5991 5997 +6
- Partials 666 668 +2 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
==========================================
- Coverage 53.21% 53.19% -0.03%
==========================================
Files 95 95
Lines 14230 14239 +9
==========================================
+ Hits 7573 7574 +1
- Misses 5991 5997 +6
- Partials 666 668 +2 |
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
==========================================
+ Coverage 53.25% 53.25% +<.01%
==========================================
Files 95 95
Lines 14246 14259 +13
==========================================
+ Hits 7586 7594 +8
- Misses 5995 5998 +3
- Partials 665 667 +2 |
51519f5 to
46bf3d4
Compare
46bf3d4 to
dc15b94
Compare
|
@sylr Looks like the PR has some changes to fix goimports errors. Can they be excluded from this PR? |
|
Yes. I rebased this branch onto #204 to be able to run tests.
… On 26 Dec 2018, at 19:25, Tariq Ibrahim ***@***.***> wrote:
@sylr Looks like the PR has some changes to fix goimports errors. Can they be excluded from this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@tariq1890 can you approve the e2e checks on circleci, I'll remove the goimports patch tomorrow. |
.circleci/config.yml
Outdated
| no_output_timeout: "30m" | ||
| - store_artifacts: | ||
| path: /go/src/github.com/Azure/aks-engine/_logs | ||
| - store_artifacts: |
There was a problem hiding this comment.
Why do we need this? We had removed this as a part of this PR - Azure/acs-engine#4214
There was a problem hiding this comment.
I added this for debug purposes.
Why did you remove it ?
There was a problem hiding this comment.
@jackfrancis may be the right person to ask for this. I believe this was found as unnecessary since we would run our e2e's locally if we were to inspect the outputs.
There was a problem hiding this comment.
let's revert adding this back - circle ci is not used anymore
pkg/api/types.go
Outdated
| } | ||
|
|
||
| // GetPrefix returns resource prefix based on Properties | ||
| func (p *Properties) GetPrefix() (ret string) { |
There was a problem hiding this comment.
GetPrefix is too vague, let's have something specific. GetClusterPrefix would work IMO. Also open to other names :)
|
@sylr Done! |
2e8cfbb to
aa66793
Compare
|
/assign @tariq1890 |
| "--resource-group", a.ResourceGroup.Name, | ||
| "--template-file", e.Config.GeneratedTemplatePath, | ||
| "--parameters", e.Config.GeneratedParametersPath) | ||
| "--parameters", e.Config.GeneratedParametersPath, |
There was a problem hiding this comment.
Assuming these were added for debugging and not meant to be included in the PR.
There was a problem hiding this comment.
Actually I think it would be good to merge this as it gives complete error messages if anything goes wrong instead of a correlation id you can't use.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sylr If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sylr Can you kindly add a detailed description of the changes in the PR? |
|
@jackfrancis done |
|
Thanks for this @sylr The change as-is is breaking. E.g.: Before:
After:
We should make as a requirement of this change that it be non-breaking when the |
|
@jackfrancis I disagree on this. We shouldn't have resources with different name patterns. |
|
@sylr I'm not sure what you mean. The important thing, to preserve backwards-compatibility, is that any new change like this not effect previous usage patterns. In this specific case, we need to make sure that the vm name generation implementation produces the same output as it did before when this new feature is not enabled. |
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
639b118 to
7235c32
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What this PR does / why we need it:
Rebase a branch we used at my company to fix the name of the resources.
It adds a property
clusterNamewhich is used to prefix the name of all Azure resources, e.g. :clusterName = k8s-prod->k8s-prod-master-0, k8s-prod-master-1 ... etcIf no
clusterNameis provided the prefix of the resources falls back to(k8s|aks)-<clusterId>.Which issue this PR fixes : fixes #56
Special notes for your reviewer:
Release note: