-
Notifications
You must be signed in to change notification settings - Fork 263
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
Adding encoding flag and support for base64 data #1388
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.
@vyasgun: 1 warning.
In response to this:
Description
Adding encoding option to specify base64 or text values. Adding support for base64 data through CLI
Changes
- Adding encoding option to specify the type of encoding of data.
- Adding code to identify automatically (without any encoding option specified) if given data is base64 encoded or not and setting the relevant field in PingSourceSpec.
- Adding a test case to cover these scenarios.
Reference
Fixes #
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
@@ -175,6 +175,11 @@ func (b *PingSourceBuilder) Data(data string) *PingSourceBuilder { | |||
return b | |||
} | |||
|
|||
func (b *PingSourceBuilder) DataBase64(data string) *PingSourceBuilder { |
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.
Golint comments: exported method PingSourceBuilder.DataBase64 should have comment or be unexported. More info.
Codecov Report
@@ Coverage Diff @@
## main #1388 +/- ##
==========================================
+ Coverage 76.48% 76.51% +0.02%
==========================================
Files 160 160
Lines 8215 8234 +19
==========================================
+ Hits 6283 6300 +17
- Misses 1227 1229 +2
Partials 705 705
Continue to review full report at Codecov.
|
Looking into the failed integration tests. |
/retest |
/retest |
The following is the coverage report on the affected files.
|
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.
Thanks @vyasgun! There're some nits to polish, otherwise it looks really good.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, vyasgun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vyasgun ups I missclicked on approved review instread of require changes. :) |
@dsimansk Thanks for the review! I will open another PR for update command with these comments addressed. |
Description
Adding encoding option to specify base64 or text values. Adding support for base64 data through CLI
Changes
Reference
Fixes #1204