-
Notifications
You must be signed in to change notification settings - Fork 7
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
Read zone information from PowerFlex secret #810
Conversation
pkg/drivers/powerflex.go
Outdated
type StorageArrayConfig struct { | ||
SystemID string `json:"systemId"` | ||
Zone struct { | ||
Label string `json:"label"` | ||
} `json:"zone"` |
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.
Zones in the secret will have both the 'name' and the 'label' fields, right? Do we need to keep track of both of those?
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.
Ahh, right, confirmed with Trevor. Was confused with a different acceptance criteria:
zone:
label: <user defined label name>=<zone name>
Fixed. Also, fixed the AC.
pkg/drivers/powerflex_test.go
Outdated
zone: | ||
label: topology.kubernetes.io/zone=US-EAST |
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.
Secret should have both 'labelKey' and 'name' fields, I think-- check with @tdawe or double-check the latest proposed spec
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.
Yes, you're right. Thanks! confirmed with Trevor. Was confused with a different acceptance criteria:
Fixed. Also, fixed the AC.
pkg/drivers/powerflex.go
Outdated
if configParam.SystemID == "" { | ||
return nil, fmt.Errorf("invalid value for SystemID") | ||
} | ||
if configParam.Zone.Label != "" { |
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 think that your code is accessing the secret as if it only has one field, and that field is in the format of "<labelkey>
=<zone name>
"? Which is what my other two comments are referring to. But I don't believe that's the structure of the proposed zoning secrets.
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.
Fixed
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
Description
PR adds the method to read the zoning information from the PowerFlex array secret
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
pflex-e2e-suite-standalone.txt