-
Notifications
You must be signed in to change notification settings - Fork 206
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 support to export eventhub keys #3882
Conversation
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.
Approved with some minor comments.
if err != nil { | ||
return nil, errors.Wrapf(err, "failed to retreive response") | ||
} | ||
|
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.
minor: unneeded newline
|
||
collector := secrets.NewCollector(obj.Namespace) | ||
|
||
collector.AddValue(operatorSpecSecrets.PrimaryKey, *keys.PrimaryKey) |
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.
use to.Value
rather than direct deref here to hedge against panics.
collector.AddValue(operatorSpecSecrets.PrimaryKey, *keys.PrimaryKey) | |
collector.AddValue(operatorSpecSecrets.PrimaryKey, to.Value(keys.PrimaryKey)) |
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.
Same below
|
||
collector := secrets.NewCollector(obj.Namespace) | ||
|
||
collector.AddValue(operatorSpecSecrets.PrimaryKey, *keys.PrimaryKey) |
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.
Same to.Value
comment
if err != nil { | ||
return nil, errors.Wrapf(err, "failed to retreive response") | ||
} | ||
|
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.
minor: unneeded newline
|
||
collector := secrets.NewCollector(obj.Namespace) | ||
|
||
collector.AddValue(operatorSpecSecrets.PrimaryKey, *keys.PrimaryKey) |
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.
Same to.Value
comment here
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Closes #1542
What this PR does / why we need it:
Added ability to export Eventhub/Namespace and Authorization Rules Keys.
Bonus:
Add support for EventHub 2024-01-01 api versionNo bonuses for now :)Special notes for your reviewer:
Will add the test recordings once we hear back from EventHub team regarding 2024-01-01 version.If applicable: