参照官方样例项目 https://github.com/kubernetes/sample-controller 中的部分内容编写,部分文件中 `import` 部分的相关依赖根据项目不用的命名情况需要作出相应的修改。