-
Notifications
You must be signed in to change notification settings - Fork 39
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 IPPool and LoadBalancer resources #102
base: master
Are you sure you want to change the base?
Conversation
1a4686b
to
40e9847
Compare
@m-ildefons I add the 1.5.0 milestone to the related issues. The change in terraform is not tied to 1.4 or 1.5 since there is no required feature to be implemented on the Harvester side. |
e029365
to
87243a7
Compare
87243a7
to
8268f8d
Compare
would be nice to have that merged 🙏 |
This pull request is now in conflict. Could you fix it @m-ildefons? 🙏 |
related-to: harvester/harvester#4813 related-to: harvester/harvester#4814 Signed-off-by: Moritz Röhrich <[email protected]>
Enable tests, add test scaffolding for IPPool resource, speed up compilation Signed-Off-By: Moritz Roehrich <[email protected]>
More functionality, especially around the LoadBalancer resource Signed-off-by: Moritz Röhrich <[email protected]>
Signed-off-by: Moritz Röhrich <[email protected]>
Fix delete procedure for volume resource. Upon deletion, the volume (PVC) does not produce a usable event. Thus watching the K8s resource for state change will never yeild the expected result. As a consequence the Terraform provider will eventually time-out and produce an error. The fix is to watch for a resource state change instead of an event. This will propagate the deletion of the resource appropriately and the Terraform provider will succeed with the deletion. Signed-off-by: Moritz Röhrich <[email protected]>
Fix VM Network and Storage Class tests Signed-off-by: Moritz Röhrich <[email protected]>
Add negative test cases for IPPool and LoadBalancer resources. This ensures that if mandatory parameters are not given, the program exits with an appropriate error. Signed-off-by: Moritz Röhrich <[email protected]>
Add acceptance tests for VirtualMachine labels (tags) and LoadBalancer resources. The labeling/tagging mechnism is crucial for these tests to work, since a LoadBalancer is required by the admission webhook to have at least one VM that matches its selectors. Also improve documentation. Signed-off-by: Moritz Röhrich <[email protected]>
8268f8d
to
4a845ce
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 PR, as LB had some known bugs/limitations, it was refactored on v0.4.* and packed on Harvester v1.4.0, could we only support this feature from Harvester v1.4.0?
name = "service-loadbalancer" | ||
|
||
# This ensures correct ordering for the creation of the resources. | ||
# The loadbalancer resource will be rejected by the admission webhook, if not |
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.
This limitation is removed on v1.4.0 Harvester & LB v0.4.*
github.com/harvester/harvester v1.3.2 | ||
github.com/harvester/harvester-load-balancer v0.3.0 | ||
github.com/harvester/harvester-network-controller v0.5.4 |
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.
As LB v0.3.0 had some known bugs, could we bump to: Harvester v1.4.0 and LB v.0.4.3?
WORK IN PROGRESS, DO NOT MERGEThis is work in progress for adding IPPool and LoadBalancer resources to the Harvester Terraform provider. These resources are defined in the harvester-load-balancer package.
The goal is to add the ability to manage these resources to the Terraform provider, as well as documentation and tests.
The current status is that most of the data structures and scaffolding is in place, but the functionality is only partially implemented.
related-to: harvester/harvester#4813
related-to: harvester/harvester#4814