-
Notifications
You must be signed in to change notification settings - Fork 153
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 extra_args_array
and windows_extra_args
#427
base: master
Are you sure you want to change the base?
Conversation
Looks like the CI is failing due to a flattener test failure |
679ef05
to
234465c
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.
Based on discussion #348 (comment), this PR just needs to be retested on the latest repo version to make sure the reordering bug is fixed.
234465c
to
d21f0bc
Compare
e89d7d0
to
f440ae4
Compare
f440ae4
to
5467dea
Compare
I've reworked this PR to use I've double checked this change and did not see any instances of terraform reporting a change every time I've updated the documentation and the |
Issue: #348
Problem
Rancher and RKE allow users to specify arguments for RKE services multiple times through the use of
ExtraArgsArray
andWindowsExtraArgsArray
, however terraform does not support these fields. Additionally, terraform does not supportWindowsExtraArgs
.A previous implementation of this PR encountered difficulties suppressing diffs being detected by Terraform, however it seems that this issue has been resolved with the recent SDK update and by updating the version of terraform used during development.
Solution
Add the missing fields to the schema's for each RKE service. Some services do not have arguments that can be passed multiple times, however their schema has been updated for the sake of consistency.
For each service the
extra_args_array
andwindows_extra_args_array
fields expect a JSON encoded string value with the following format:Testing
Use the terraform listed at the bottom of the ticket to deploy a single node all roles RKE cluster. Follow the same test steps as outlined in rancher/rancher#25500, with the only difference being the modification of the terraform as opposed to the yaml within Rancher UI.
Engineering Testing
Manual Testing
Automated Testing
QA Testing Considerations
The terraform included in this PR will work by default, however a section has been commented out. This section will test the schema changes for the
scheduler
service, however it will result interraform apply
failing to create the cluster. This failure is expected, as properly configuring the environment such that the arguments are valid is outside the scope of this issue.Each k8 service will log all of the arguments it was started with, so to confirm that particular changes to the terraform have been properly passed to the service via RKE you can simply look at the first few log messages of each relevant service.
Regressions Considerations
This PR adds in net-new schema fields, and does not modify existing logic. There should be no regressions.
Terraform
Click to Expand Terraform