[kn-curl] with support for namespace and better help#52
Conversation
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
|
Thanks for review @navidshaikh 🙏🏽 Will address comments today. Best. |
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
navidshaikh
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/hold
for @daisy-ycguo @rhuss to take a look
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maximilien, navidshaikh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| @@ -0,0 +1,77 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
maybe we could restrict to a simple bourne shell to make it the plugin more conservative and allow it to run on more platforms (e.g. also on Alpine which only has ash by default) ?
This would require to avoid bash specific extensions, but since this plugin is quite simple I think this should be no issue.
There was a problem hiding this comment.
Did you really mean ash?
|
Great feedback @rhuss and @navidshaikh. Addressing. Thank you 🙏 |
|
New changes are detected. LGTM label has been removed. |
|
OK latest update addresses all comments except for the two TODOs I had: 1) e2e tests (almost done) and 2) other ingress, have not started this... |
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
|
Added checks for istio and first e2e tests. Need to address some of auto the linting feedback |
|
/hold remove |
|
/unhold |
|
@navidshaikh can I get a final review and LGTM on this? Thanks |
| @@ -0,0 +1,88 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
| #!/bin/bash | |
| #!/bin/sh |
| @@ -0,0 +1,77 @@ | |||
| #!/bin/bash | |||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| USAGE=$"Usage: |
There was a problem hiding this comment.
not sure why $ is prefixed here
| # Need at least the service name | ||
| if [ -z "$1" ]; then | ||
| echo "$USAGE" | ||
| exit 0 | ||
| fi | ||
|
|
||
| # If -h or --help is first argument | ||
| if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then | ||
| echo "$USAGE" | ||
| exit 0 | ||
| fi |
There was a problem hiding this comment.
just combine the if checks then it'd print USAGE in all the three cases ?
kn-curl second attempt
Supports getting INGRESS with Istio. Needs to following: