PowerFlex Minimal Installation Bugfix#997
Conversation
|
Should the workaround be added to the old sample files so the user doesn't have to? |
| if env.Value != "true" { | ||
| _ = drivers.RemoveInitVolume(&node.DaemonSetApplyConfig, drivers.SftpKeys) | ||
| if (cr.Spec.Driver.Node != nil) && cr.Spec.Driver.Node.Envs != nil { | ||
| for _, env := range cr.Spec.Driver.Node.Envs { |
There was a problem hiding this comment.
One observation is that it seems we don't handle duplicate environment variables. For the X_CSI_SDC_SFTP_REPO_ENABLED environment variable, the first occurrence is considered, and for the other environment variables, the last occurrence is considered. Do we need to mention this behavior in the docs?
There was a problem hiding this comment.
Is this really a concern? YAML files aren't intended to have duplicate copies of the same key in a key-value pair for environment variables, I don't think.
If there is some behavior used by other environment variables, though, I can try to make this one match-- I didn't write this statement in the first place, I believe @harishp8889 did so I'm not sure why the behavior is incongruent with other env vars.
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Description
Fix for minimal PowerFlex installations failing due to a nil reference in Operator. Also addresses out-of-date SDC versions in default configs.
A WORKAROUND exists that will work on previous release(s), by adding the following to the manifest:
But this PR makes this workaround not necessary on latest code.
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Operator E2E with --minimal --pflex has been run.