-
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
fix: add UntaggedNetwork and remove NetworkTypeCustom #88
Conversation
3a136ac
to
ad1cd50
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.
I'm not sure if I understand it correctly. The labels here seem to be a hackish way of passing values among different custom processors. And they will remain on the resulting NAD object. The mutator is responsible for populating those labels using the .spec.config
field. I'd suggest we leverage the NetConf struct in the network controller project to process the NAD object better. We can then serialize it in the Result()
function. But if I get the wrong perception about how the Terraform provider works, please ignore my 2c. Thank you.
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.
LGTM, thank you!
@starbops Any idea when this could be merged? |
Signed-off-by: PoAn Yang <[email protected]>
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.
LGTM, thanks!
issue: harvester/harvester#5226
Test
Setup: Create a Harvester cluster
Case 1: new terraform provider
versions.tf
.main.tf
in the temporary folder.terraform init
andterraform apply
. There are two VM Networks without error.terraform destroy
to remove all data.Case 2: Upgrade path
versions.tf
.main.tf
in the temporary folder.terraform init
andterraform apply
. There is one VM Networks without error.versions.tf
to use0.0.0-dev
.terraform init --upgrade
andterraform apply
. No change happen.