-
Notifications
You must be signed in to change notification settings - Fork 500
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
make webhook configurable #529
make webhook configurable #529
Conversation
/run-e2e-tests |
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
/run-e2e-tests |
@xiaojingchen @onlymellb PTAL |
manifests/create-cert.sh
Outdated
while [[ $# -gt 0 ]]; do | ||
case ${1} in | ||
--namespace) | ||
namespace="$2" |
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.
namespace="$2" | |
namespace="${2}" |
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.
It seems the same ……
@onlymellb please take a look. |
manifests/create-cert.sh
Outdated
EOF | ||
exit 1 | ||
} | ||
|
||
namespace=default | ||
while [[ $# -gt 0 ]]; do |
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.
Refer here to implement shell parameter parsing
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.
done
manifests/create-cert.sh
Outdated
done | ||
|
||
|
||
[ -z ${namespace} ] && namespace=default |
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 namespace=${namespace:-default}
instead.
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 we should default to tidb-admin
namespace.
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.
done
/run-e2e-tests |
/run-e2e-tests |
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
/run-e2e-tests |
* add enterprise usage * address comments * address comments * address comments * add tidb-binlog enterprise image
What problem does this PR solve?
Make webhook configurable
What is changed and how it works?
Use shell script to patch namespace to webhook.yaml
Check List
Tests
Code changes
Related changes
Does this PR introduce a user-facing change?:
None