krew/README.md
Command: cd ./krew && make deploy
The binary will be generated in cmd/ install it alonside the kubectl binary.
For example: the kubectl is installed under /usr/bin, then put the bilibilipro plugin under /usr/bin too.
Prerequsites: please make sure you have the right permission to at least manage namespaces/deployments
Command: kubectl bilipro init --config config.yaml
Creates Deployment with the needed environments.
Optional Options:
--image=zai7lou/bilibili_tool_pro:2.0.1--namespace=bilipro--image-pull-secret=<docker secrets>--login to scan QR code to loginRequired Options:
--config=<config.yaml>The content of <config.yaml> is a yaml array, please refer to the example config yaml under the krew directory.
For example
- name: Ray_BiliBiliCookies__2
value: "cookie"
# DailyTrigger - required
- name: Ray_DailyTaskConfig__Cron
value: "11 11 * * *"
Suggestions: Deploy this workload in namespace other than default or kube-* namespace, because the delete logic should be improved
Command: kubectl bilipro delete [options]
Deletes Deployment. v Optional Options:
--namespace=<deploy-namespace>--name=<deploy-name>Command: kubectl bilipro version
Output the plugin version.
Pls refer to installation, you can package your own krew plugin