-
Notifications
You must be signed in to change notification settings - Fork 37
Add project support #356
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
Add project support #356
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vishesh92 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-cluster-api-cloudstack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
@weizhouapache @g-gaston @hrak pl review and advise, this attempts to solve a long-standing issue that users are not able to use CAPC in their projects. |
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.
Thanks for the change!
I would like to discuss a bit the UX (the implementation looks sound). I was expecting to see the projectID
field in the API (talking about CAPD CRDs).
It seems to me like this is a config that the user might want specify per cluster, at leats that's what I extract from the original issue. It feels like a cluster attribute (create all resources for this cluster in this project). This seems to point to the [CloudStackCluster](https://doc.crds.dev/github.com/kubernetes-sigs/cluster-api-provider-cloudstack/infrastructure.cluster.x-k8s.io/CloudStackCluster/[email protected]#spec-failureDomains-account)
. And that intuition gets re-enforced by the presence of account
in the CloudStackCluster
(I think it used to be at the top level and it's now part of the failure domain).
So, would it make sense to move this field from the credentials secret to the CloudStackCluster
object? Are there technical reasons why this is not possible?
It makes sense to me |
@g-gaston I had the same thought, but @vishesh92 advised to me that since in the credentials we don't specify account ID we can keep project ID there and it would require lesser refactorings. Ideally all configuration params including @vishesh92 could you proceed to address the review comments, and move projectID to cloudstack cluster object? |
@vishesh92 |
cc95d4a
to
b61ae4c
Compare
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.
thanks for the update @vishesh92
Is it possible to add a e2e test for project, similar as test/e2e/data/infrastructure-cloudstack/v1beta2/cluster-template-subdomain/cloudstack-cluster.yaml
?
f719a1e
to
eba72cf
Compare
Test Results : (tid-404)
|
a5c90b4
to
87a8e78
Compare
/run-e2e -c 4.19 |
@weizhouapache a jenkins job has been kicked to run test with following paramaters:
|
Setting up environment failed |
21ce310
to
37a3996
Compare
Tests were aborted. |
Setting up environment failed |
1 similar comment
Setting up environment failed |
37a3996
to
28faaac
Compare
Test Results : (tid-418)
|
@g-gaston I have made the changes and moved the project to CloudStackCluster. Please review again. |
Test Results : (tid-424)
|
/lgtm |
Sorry I didn't get to review, high level lgtm, thanks again! |
Issue #, if available:
Fixes #217
Description of changes:
Allow specifying project name along with account & domains in CloudStackClusterSpec.
Testing performed: Created and tested an env in default project and a new test project.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.