generated from bing/readnotes
copy from github
This commit is contained in:
parent
27d72bbc0c
commit
fdb9085bbb
|
@ -0,0 +1,180 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
vector<vector<int>> randMatrix(int x, int y)
|
||||
{
|
||||
vector<vector<int>> matrix(x);
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
matrix[i].resize(y);
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
matrix[i][j] = rand() % 100;
|
||||
}
|
||||
}
|
||||
return matrix;
|
||||
}
|
||||
|
||||
void display(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
cout << matrix[i][j] << " ";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
vector<int> up(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
if (x == 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x - 1][y];
|
||||
res[1] = x - 1;
|
||||
res[2] = y;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> down(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
auto xlen = matrix.size();
|
||||
if (x == xlen - 1)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x + 1][y];
|
||||
res[1] = x + 1;
|
||||
res[2] = y;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> left(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
if (y == 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x][y - 1];
|
||||
res[1] = x;
|
||||
res[2] = y - 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> right(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
auto row = matrix[x];
|
||||
auto ylen = row.size();
|
||||
if (y == ylen - 1)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x][y + 1];
|
||||
res[1] = x;
|
||||
res[2] = y + 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<vector<vector<int>>> branch(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto branch = vector<vector<vector<int>>>(x * y);
|
||||
auto index = 0;
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
branch[index].resize(7);
|
||||
branch[index][0].resize(1);
|
||||
branch[index][0][0] = matrix[i][j];
|
||||
branch[index][1].resize(1);
|
||||
|
||||
branch[index][1][0] = i;
|
||||
branch[index][2].resize(1);
|
||||
|
||||
branch[index][2][0] = j;
|
||||
|
||||
branch[index][3] = up(matrix, i, j);
|
||||
|
||||
branch[index][4] = down(matrix, i, j);
|
||||
branch[index][5] = left(matrix, i, j);
|
||||
branch[index][6] = right(matrix, i, j);
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return branch;
|
||||
}
|
||||
|
||||
int finditem(vector<vector<vector<int>>> branches, int tx, int ty, int plen = 0)
|
||||
{
|
||||
int ulen, dlen, llen, rlen;
|
||||
ulen = dlen = llen = rlen = plen;
|
||||
for (auto vi : branches)
|
||||
{
|
||||
if (vi[1][0] == tx && vi[2][0] == ty)
|
||||
{ //找到元素
|
||||
if (vi[3][0] > vi[0][0])
|
||||
{ //上
|
||||
cout << "up [" << vi[3][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
ulen++;
|
||||
ulen = finditem(branches, vi[3][1], vi[3][2], ulen);
|
||||
}
|
||||
if (vi[4][0] > vi[0][0])
|
||||
{ //下
|
||||
cout << "down [" << vi[4][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
dlen++;
|
||||
dlen = finditem(branches, vi[4][1], vi[4][2], dlen);
|
||||
}
|
||||
if (vi[5][0] > vi[0][0])
|
||||
{ //左
|
||||
cout << "left [" << vi[5][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
llen++;
|
||||
llen = finditem(branches, vi[5][1], vi[5][2], llen);
|
||||
}
|
||||
if (vi[6][0] > vi[0][0])
|
||||
{ //右
|
||||
cout << "right [" << vi[6][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
rlen++;
|
||||
rlen = finditem(branches, vi[6][1], vi[6][2], rlen);
|
||||
}
|
||||
}
|
||||
}
|
||||
plen = ulen;
|
||||
if (plen < dlen)
|
||||
{
|
||||
plen = dlen;
|
||||
}
|
||||
if (plen < llen)
|
||||
{
|
||||
plen = llen;
|
||||
}
|
||||
if (plen < rlen)
|
||||
{
|
||||
plen = rlen;
|
||||
}
|
||||
return plen;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
const int x = 4;
|
||||
const int y = 4;
|
||||
auto matrix = randMatrix(x, y);
|
||||
display(matrix, x, y);
|
||||
auto branches = branch(matrix, x, y);
|
||||
// display(branches, x * y, 7);
|
||||
auto plen = finditem(branches, 0, 3);
|
||||
cout << matrix[0][3] << "\t" << plen << endl;
|
||||
return 0;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
|
@ -0,0 +1,210 @@
|
|||
# 分支定界法
|
||||
|
||||
分支定界法(branch and bound)是一种求解整数规划问题的最常用算法。这种方法不但可以求解纯整数规划,还可以求解混合整数规划问题。分支定界法是一种搜索与迭代的方法,选择不同的分支变量和子问题进行分支。
|
||||
|
||||
通常,把全部可行解空间反复地分割为越来越小的子集,称为分支;并且对每个子集内的解集计算一个目标下界(对于最小值问题),这称为定界。在每次分枝后,凡是界限超出已知可行解集目标值的那些子集不再进一步分枝,这样,许多子集可不予考虑,这称剪枝。这就是分枝定界法的主要思路。
|
||||
|
||||
***[百度百科](https://baike.baidu.com/item/%E5%88%86%E6%94%AF%E5%AE%9A%E7%95%8C%E6%B3%95)***
|
||||
|
||||
## 问题示例
|
||||
|
||||
最近在群里看到一个问题:
|
||||
|
||||
给定m * n矩阵matrix,可以从任意位置开始,向上、向下、向左、向右移动,但要求下一个位置上的元素要大于当前元素。找出最长的递增路径长度。
|
||||
|
||||
如图,矩阵元素`5`的上下左右分别是`2`,`8`,`4`,`6`
|
||||
|
||||
![matrix](matrix.png)
|
||||
|
||||
根据某算法大佬的指导,使用分支定界法解决此问题。
|
||||
|
||||
将矩阵的每一个元素作为第一级分支A,对于每一个分支A相邻的上下左右四个元素,作为分支A的子分支B
|
||||
|
||||
选定一个元素An, 对比An与AnBm的大小,当An小于AnBm时,找到AnBm对于的元素Ax,递归循环处理,直至找不到AnBm。每递归一次,路径长度+1,最后返回最大的路径长度。
|
||||
|
||||
### 代码示例
|
||||
|
||||
[代码文件](bnb.cpp)(*这是一份快速实现的代码,所以不一定是最优。*)
|
||||
|
||||
```cpp
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
vector<vector<int>> randMatrix(int x, int y)
|
||||
{
|
||||
vector<vector<int>> matrix(x);
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
matrix[i].resize(y);
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
matrix[i][j] = rand() % 100;
|
||||
}
|
||||
}
|
||||
return matrix;
|
||||
}
|
||||
|
||||
void display(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
cout << matrix[i][j] << " ";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
vector<int> up(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
if (x == 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x - 1][y];
|
||||
res[1] = x - 1;
|
||||
res[2] = y;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> down(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
auto xlen = matrix.size();
|
||||
if (x == xlen - 1)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x + 1][y];
|
||||
res[1] = x + 1;
|
||||
res[2] = y;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> left(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
if (y == 0)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x][y - 1];
|
||||
res[1] = x;
|
||||
res[2] = y - 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<int> right(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto res = vector<int>(3) = {-1, -1, -1};
|
||||
|
||||
auto row = matrix[x];
|
||||
auto ylen = row.size();
|
||||
if (y == ylen - 1)
|
||||
{
|
||||
return res;
|
||||
}
|
||||
res[0] = matrix[x][y + 1];
|
||||
res[1] = x;
|
||||
res[2] = y + 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
vector<vector<vector<int>>> branch(vector<vector<int>> matrix, int x, int y)
|
||||
{
|
||||
auto branch = vector<vector<vector<int>>>(x * y);
|
||||
auto index = 0;
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
for (int j = 0; j < y; j++)
|
||||
{
|
||||
branch[index].resize(7);
|
||||
branch[index][0].resize(1);
|
||||
branch[index][0][0] = matrix[i][j];
|
||||
branch[index][1].resize(1);
|
||||
|
||||
branch[index][1][0] = i;
|
||||
branch[index][2].resize(1);
|
||||
|
||||
branch[index][2][0] = j;
|
||||
|
||||
branch[index][3] = up(matrix, i, j);
|
||||
|
||||
branch[index][4] = down(matrix, i, j);
|
||||
branch[index][5] = left(matrix, i, j);
|
||||
branch[index][6] = right(matrix, i, j);
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return branch;
|
||||
}
|
||||
|
||||
int finditem(vector<vector<vector<int>>> branches, int tx, int ty, int plen = 0)
|
||||
{
|
||||
int ulen, dlen, llen, rlen;
|
||||
ulen = dlen = llen = rlen = plen;
|
||||
for (auto vi : branches)
|
||||
{
|
||||
if (vi[1][0] == tx && vi[2][0] == ty)
|
||||
{ //找到元素
|
||||
if (vi[3][0] > vi[0][0])
|
||||
{ //上
|
||||
cout << "up [" << vi[3][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
ulen++;
|
||||
ulen = finditem(branches, vi[3][1], vi[3][2], ulen);
|
||||
}
|
||||
if (vi[4][0] > vi[0][0])
|
||||
{ //下
|
||||
cout << "down [" << vi[4][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
dlen++;
|
||||
dlen = finditem(branches, vi[4][1], vi[4][2], dlen);
|
||||
}
|
||||
if (vi[5][0] > vi[0][0])
|
||||
{ //左
|
||||
cout << "left [" << vi[5][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
llen++;
|
||||
llen = finditem(branches, vi[5][1], vi[5][2], llen);
|
||||
}
|
||||
if (vi[6][0] > vi[0][0])
|
||||
{ //右
|
||||
cout << "right [" << vi[6][0] << "] is great than me [" << vi[0][0] << "]" << endl;
|
||||
rlen++;
|
||||
rlen = finditem(branches, vi[6][1], vi[6][2], rlen);
|
||||
}
|
||||
}
|
||||
}
|
||||
plen = ulen;
|
||||
if (plen < dlen)
|
||||
{
|
||||
plen = dlen;
|
||||
}
|
||||
if (plen < llen)
|
||||
{
|
||||
plen = llen;
|
||||
}
|
||||
if (plen < rlen)
|
||||
{
|
||||
plen = rlen;
|
||||
}
|
||||
return plen;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
const int x = 4;
|
||||
const int y = 4;
|
||||
auto matrix = randMatrix(x, y);
|
||||
display(matrix, x, y);
|
||||
auto branches = branch(matrix, x, y);
|
||||
// display(branches, x * y, 7);
|
||||
auto plen = finditem(branches, 0, 3);
|
||||
cout << matrix[0][3] << "\t" << plen << endl;
|
||||
return 0;
|
||||
}
|
||||
```
|
|
@ -0,0 +1,74 @@
|
|||
# 安装appium
|
||||
|
||||
本安装文档仅在appium1.21上测试通过。
|
||||
|
||||
## 配置运行环境
|
||||
|
||||
### 运行环境依赖项目
|
||||
|
||||
环境|版本|说明
|
||||
--|--|--
|
||||
MAC OS |11.4|
|
||||
xcode|9.4.3
|
||||
nodejs|12
|
||||
python|3.5.8
|
||||
Homebrew|3.2.1|
|
||||
|
||||
### 安装依赖
|
||||
|
||||
#### Homebrew
|
||||
|
||||
官方安装方法
|
||||
|
||||
```
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
```
|
||||
|
||||
由于官方地址通常会被墙,建议使用gitee上的
|
||||
|
||||
```
|
||||
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
|
||||
```
|
||||
|
||||
#### nodejs
|
||||
|
||||
使用`brew`安装
|
||||
|
||||
```
|
||||
brew install nodejs
|
||||
```
|
||||
|
||||
下载官方二进制包
|
||||
|
||||
```
|
||||
cd /opt
|
||||
sudo wget https://nodejs.org/dist/v14.17.3/node-v14.17.3-darwin-x64.tar.gz
|
||||
sudo tar node-v14.17.3-darwin-x64.tar.gz
|
||||
sudo ln -s node-v14.17.3-darwin-x64 node
|
||||
sudo echo 'PATH=$PATH:/opt/node/bin' >> /etc/profile
|
||||
```
|
||||
|
||||
#### appium
|
||||
|
||||
下载官方版本安装
|
||||
|
||||
```
|
||||
https://github.com/appium/appium-desktop/releases/download/v1.21.0/Appium-mac-1.21.0.dmg
|
||||
```
|
||||
|
||||
#### appium-doctor
|
||||
|
||||
使用npm安装
|
||||
|
||||
```
|
||||
npm install -g appium-doctor
|
||||
```
|
||||
|
||||
#### 其他依赖
|
||||
|
||||
暂时还没统计。
|
||||
|
||||
### 配置环境
|
||||
|
||||
使用 `appium-doctor --ios`检测,确保每项都是`√`
|
||||
|
|
@ -0,0 +1 @@
|
|||
# appium
|
|
@ -0,0 +1,12 @@
|
|||
FROM golang:1.15 as builder
|
||||
WORKDIR /workspace
|
||||
ENV GOPROXY=https://goproxy.cn,direct GO111MODULE=on
|
||||
COPY main.go main.go
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o main main.go && mkdir /data
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /workspace/main /
|
||||
COPY --from=builder /data /
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/main"]
|
|
@ -0,0 +1,10 @@
|
|||
IMAGE="registry.bing89.com/tools/demo:1.0"
|
||||
|
||||
# Build the docker image
|
||||
docker-build:
|
||||
docker build . -t ${IMAGE}
|
||||
|
||||
# Push the docker image
|
||||
docker-push: docker-build
|
||||
docker push ${IMAGE}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"net/http"
|
||||
"net"
|
||||
)
|
||||
|
||||
func get(resp http.ResponseWriter, req *http.Request){
|
||||
hostname, err := os.Hostname()
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("get hostname error:%v", err)))
|
||||
return
|
||||
}
|
||||
addrs, err := net.InterfaceAddrs()
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("get ip address error:%v", err)))
|
||||
return
|
||||
}
|
||||
addrString := ""
|
||||
for _, addr := range addrs{
|
||||
addrString += " " + addr.String()
|
||||
}
|
||||
resp.Write([]byte(fmt.Sprintf("response from host: %s, ip is:%s", hostname, addrString)))
|
||||
}
|
||||
|
||||
//read the file which path is "/data/test.txt"
|
||||
func readFile(resp http.ResponseWriter, req *http.Request){
|
||||
file, err := os.Open("/data/test.txt")
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("open /data/test.txt error:%v", err)))
|
||||
return
|
||||
}
|
||||
defer file.Close()
|
||||
data := make([]byte, 1024)
|
||||
n, err := file.Read(data)
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("read /data/test.txt error:%v", err)))
|
||||
return
|
||||
}
|
||||
resp.Write(data[0:n])
|
||||
}
|
||||
|
||||
//write a string to the file
|
||||
func writeFile(resp http.ResponseWriter, req *http.Request){
|
||||
file, err := os.OpenFile("/data/test.txt", os.O_RDWR|os.O_APPEND, os.ModePerm)
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("open /data/test.txt error:%v", err)))
|
||||
return
|
||||
}
|
||||
defer file.Close()
|
||||
hostname, _ := os.Hostname()
|
||||
_, err = file.Write([]byte(fmt.Sprintf("write by pod %s", hostname)))
|
||||
if err != nil {
|
||||
resp.Write([]byte(fmt.Sprintf("write /data/test.txt error:%v", err)))
|
||||
return
|
||||
}
|
||||
resp.Write([]byte("write file successed."))
|
||||
}
|
||||
|
||||
func main (){
|
||||
router := http.DefaultServeMux
|
||||
router.HandleFunc("/", get)
|
||||
router.HandleFunc("/read", readFile)
|
||||
router.HandleFunc("/write", writeFile)
|
||||
log.Println("listen on 0.0.0.0:8080")
|
||||
err := http.ListenAndServe("0.0.0.0:8080", nil)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# demo
|
||||
|
||||
这是一个由go语言编写的基本http服务,用于各种测试。
|
||||
|
||||
## 编译
|
||||
|
||||
```bash
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main main.go
|
||||
```
|
||||
|
||||
## 打包
|
||||
|
||||
```bash
|
||||
docker build -t demo:1.0 .
|
||||
```
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: bing
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: docker-registry
|
||||
data:
|
||||
config.yml: |
|
||||
version: 0.1
|
||||
log:
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
cache:
|
||||
blobdescriptor: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /var/lib/registry
|
||||
http:
|
||||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
threshold: 3
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: registry
|
||||
namespace: bing
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: registry
|
||||
version: "2.0"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: registry
|
||||
version: "2.0"
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: registry:2
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
volumeMounts:
|
||||
- name: library
|
||||
mountPath: /var/lib/registry
|
||||
- name: config
|
||||
mountPath: /etc/docker/registry
|
||||
volumes:
|
||||
- name: library
|
||||
nfs:
|
||||
path: /data2/registry
|
||||
server: 192.168.0.248
|
||||
- name: config
|
||||
configMap:
|
||||
name: docker-registry
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: registry
|
||||
namespace: bing
|
||||
spec:
|
||||
selector:
|
||||
app: registry
|
||||
version: "2.0"
|
||||
ports:
|
||||
- port: 5000
|
||||
targetPort: 5000
|
||||
nodePort: 30500
|
||||
type: NodePort
|
|
@ -0,0 +1,38 @@
|
|||
upstream docker-registry {
|
||||
server 172.16.0.3:20500;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443;
|
||||
server_name registry.bing89.com;
|
||||
ssl on;
|
||||
ssl_certificate conf.d/ssl/registry.bing89.com.pem;
|
||||
ssl_certificate_key conf.d/ssl/registry.bing89.com.key;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
client_max_body_size 0;
|
||||
chunked_transfer_encoding on;
|
||||
add_header 'Docker-Distribution-Api-Version' 'registry/2.0' always;
|
||||
location / {
|
||||
auth_basic "Restricted";
|
||||
auth_basic_user_file conf.d/auth/registry.bing89.com.txt;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 900;
|
||||
proxy_pass http://docker-registry;
|
||||
}
|
||||
location /_ping {
|
||||
auth_basic off;
|
||||
proxy_pass http://docker-registry;
|
||||
}
|
||||
location /v2/_ping {
|
||||
auth_basic off;
|
||||
proxy_pass http://docker-registry;
|
||||
}
|
||||
location /v2/_catalog {
|
||||
auth_basic off;
|
||||
proxy_pass http://docker-registry;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
# etcd 备份与还原
|
||||
|
||||
## 备份
|
||||
|
||||
[参考](https://github.com/coreos/etcd-operator/blob/master/example/etcd-backup-operator/backup_cr.yaml)
|
||||
[参考](https://kubernetes.io/zh/docs/tasks/administer-cluster/configure-upgrade-etcd/)
|
|
@ -0,0 +1 @@
|
|||
# etcd
|
|
@ -0,0 +1,46 @@
|
|||
module blog.bing89.com
|
||||
|
||||
go 1.17
|
||||
|
||||
require (
|
||||
github.com/coreos/go-oidc/v3 v3.1.0
|
||||
github.com/spf13/cobra v1.3.0
|
||||
k8s.io/api v0.23.1
|
||||
k8s.io/apimachinery v0.23.1
|
||||
k8s.io/client-go v0.23.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/go-logr/logr v1.2.0 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/protobuf v1.5.2 // indirect
|
||||
github.com/google/go-cmp v0.5.6 // indirect
|
||||
github.com/google/gofuzz v1.1.0 // indirect
|
||||
github.com/googleapis/gnostic v0.5.5 // indirect
|
||||
github.com/imdario/mergo v0.3.5 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
|
||||
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
|
||||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
|
||||
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
|
||||
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
|
||||
golang.org/x/text v0.3.7 // indirect
|
||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
|
||||
google.golang.org/appengine v1.6.7 // indirect
|
||||
google.golang.org/protobuf v1.27.1 // indirect
|
||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
||||
k8s.io/klog/v2 v2.30.0 // indirect
|
||||
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
|
||||
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
|
||||
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
|
||||
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
|
||||
sigs.k8s.io/yaml v1.2.0 // indirect
|
||||
)
|
|
@ -0,0 +1,897 @@
|
|||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
|
||||
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
|
||||
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
|
||||
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
|
||||
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
|
||||
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
|
||||
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
|
||||
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
|
||||
cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
|
||||
cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
|
||||
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
|
||||
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||
cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
|
||||
cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
|
||||
cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
|
||||
cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
|
||||
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
|
||||
cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY=
|
||||
cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM=
|
||||
cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY=
|
||||
cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ=
|
||||
cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI=
|
||||
cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4=
|
||||
cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc=
|
||||
cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM=
|
||||
cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA=
|
||||
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||
cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY=
|
||||
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
|
||||
github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA=
|
||||
github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M=
|
||||
github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74=
|
||||
github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
|
||||
github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
|
||||
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
|
||||
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
|
||||
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
|
||||
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
|
||||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
|
||||
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
|
||||
github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc=
|
||||
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
|
||||
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
||||
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
|
||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
|
||||
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
|
||||
github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/coreos/go-oidc/v3 v3.1.0 h1:6avEvcdvTa1qYsOZ6I5PRkSYHzpTNWgKYmaJfaYbrRw=
|
||||
github.com/coreos/go-oidc/v3 v3.1.0/go.mod h1:rEJ/idjfUyfkBit1eI1fvyr+64/g9dcKpAm8MJMesvo=
|
||||
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
|
||||
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
|
||||
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
|
||||
github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
|
||||
github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws=
|
||||
github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
|
||||
github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI=
|
||||
github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU=
|
||||
github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
|
||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
|
||||
github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
|
||||
github.com/go-logr/logr v1.2.0 h1:QK40JKJyMdUDz+h+xvCsru/bJhvG0UxvePV0ufL/AcE=
|
||||
github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
|
||||
github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
|
||||
github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8=
|
||||
github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
|
||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
||||
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
|
||||
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
|
||||
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g=
|
||||
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk=
|
||||
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
|
||||
github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM=
|
||||
github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU=
|
||||
github.com/googleapis/gnostic v0.5.5 h1:9fHAtK0uDfpveeqqo1hkEZJcFvYXAiCN3UutL8F9xHw=
|
||||
github.com/googleapis/gnostic v0.5.5/go.mod h1:7+EbHbldMins07ALC74bsA81Ovc97DwqyJO1AENw9kA=
|
||||
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
|
||||
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M=
|
||||
github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
|
||||
github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
||||
github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
|
||||
github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA=
|
||||
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
|
||||
github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
|
||||
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
|
||||
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
|
||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
|
||||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY=
|
||||
github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc=
|
||||
github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE=
|
||||
github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE=
|
||||
github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk=
|
||||
github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q=
|
||||
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
|
||||
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
|
||||
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
|
||||
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
|
||||
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w=
|
||||
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
|
||||
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
|
||||
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
|
||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||
github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
|
||||
github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
|
||||
github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
|
||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
|
||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||
github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
|
||||
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
|
||||
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
|
||||
github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA=
|
||||
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
|
||||
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
|
||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||
github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE=
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
|
||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
|
||||
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
||||
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
|
||||
github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU=
|
||||
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
||||
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
|
||||
github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
|
||||
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
|
||||
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||
github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig=
|
||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
|
||||
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
|
||||
github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
|
||||
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
|
||||
github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cobra v1.3.0 h1:R7cSvGu+Vv+qX0gW5R/85dx2kmmJT5z5NM8ifdYjdn0=
|
||||
github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4=
|
||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM=
|
||||
github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
|
||||
go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs=
|
||||
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
|
||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ=
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
|
||||
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
|
||||
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
|
||||
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
|
||||
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200505041828-1ed23360d12c/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8=
|
||||
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20211209124913-491a49abca63 h1:iocB37TsdFuN6IBRZ+ry36wrkoV51/tl5vOWqkcPGvY=
|
||||
golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg=
|
||||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d h1:FjkYO/PPp4Wi0EAUOVLxePm7qVW4r4ctbWpURyuOD0E=
|
||||
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b h1:9zKuko04nR4gjZ4+DNjHqRlAJqbJETHwiNKDqTfOjfE=
|
||||
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
|
||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
|
||||
golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
|
||||
golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
||||
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
|
||||
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
|
||||
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||
google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
|
||||
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
|
||||
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
|
||||
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
|
||||
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
|
||||
google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo=
|
||||
google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4=
|
||||
google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw=
|
||||
google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU=
|
||||
google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k=
|
||||
google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE=
|
||||
google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE=
|
||||
google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI=
|
||||
google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU=
|
||||
google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I=
|
||||
google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
|
||||
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
|
||||
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
|
||||
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
|
||||
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
|
||||
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
|
||||
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
|
||||
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
|
||||
google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
|
||||
google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
|
||||
google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
|
||||
google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
|
||||
google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w=
|
||||
google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
|
||||
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||
google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8=
|
||||
google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
|
||||
google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
|
||||
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
|
||||
google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
|
||||
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
||||
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
|
||||
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
|
||||
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
||||
gopkg.in/square/go-jose.v2 v2.5.1 h1:7odma5RETjNHWJnR32wx8t+Io4djHE1PqxCFx3iiZ2w=
|
||||
gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
||||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
k8s.io/api v0.23.1 h1:ncu/qfBfUoClqwkTGbeRqqOqBCRoUAflMuOaOD7J0c8=
|
||||
k8s.io/api v0.23.1/go.mod h1:WfXnOnwSqNtG62Y1CdjoMxh7r7u9QXGCkA1u0na2jgo=
|
||||
k8s.io/apimachinery v0.23.1 h1:sfBjlDFwj2onG0Ijx5C+SrAoeUscPrmghm7wHP+uXlo=
|
||||
k8s.io/apimachinery v0.23.1/go.mod h1:SADt2Kl8/sttJ62RRsi9MIV4o8f5S3coArm0Iu3fBno=
|
||||
k8s.io/client-go v0.23.1 h1:Ma4Fhf/p07Nmj9yAB1H7UwbFHEBrSPg8lviR24U2GiQ=
|
||||
k8s.io/client-go v0.23.1/go.mod h1:6QSI8fEuqD4zgFK0xbdwfB/PthBsIxCJMa3s17WlcO0=
|
||||
k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
|
||||
k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
|
||||
k8s.io/klog/v2 v2.30.0 h1:bUO6drIvCIsvZ/XFgfxoGFQU/a4Qkh0iAlvUR7vlHJw=
|
||||
k8s.io/klog/v2 v2.30.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
|
||||
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 h1:E3J9oCLlaobFUqsjG9DfKbP2BmgwBL2p7pn0A3dG9W4=
|
||||
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65/go.mod h1:sX9MT8g7NVZM5lVL/j8QyCCJe8YSMW30QvGZWaCIDIk=
|
||||
k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b h1:wxEMGetGMur3J1xuGLQY7GEQYg9bZxKn3tKo5k/eYcs=
|
||||
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 h1:fD1pz4yfdADVNfFmcP2aBEtudwUQ1AlLnRBALr33v3s=
|
||||
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6/go.mod h1:p4QtZmO4uMYipTQNzagwnNoseA6OxSUutVw05NhYDRs=
|
||||
sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw=
|
||||
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 h1:Hr/htKFmJEbtMgS/UD0N+gtgctAqz81t3nu+sPzynno=
|
||||
sigs.k8s.io/structured-merge-diff/v4 v4.1.2/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4=
|
||||
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
|
@ -0,0 +1,39 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
func main(){
|
||||
cmd := cobra.Command{
|
||||
Use: "cobra",
|
||||
Short: "this is a cobra demo",
|
||||
Run: func(cmd *cobra.Command, args []string){
|
||||
fmt.Println("good! you run a cobra command!")
|
||||
},
|
||||
}
|
||||
var newLine *bool
|
||||
subCmd := cobra.Command{
|
||||
Use: "echo",
|
||||
Short: "echo your input",
|
||||
Run: func(cmd *cobra.Command, args []string){
|
||||
for _, arg := range args {
|
||||
if newLine != nil && *newLine{
|
||||
fmt.Println(arg)
|
||||
}else{
|
||||
fmt.Printf("%s ", arg)
|
||||
}
|
||||
}
|
||||
if newLine == nil || ! *newLine{
|
||||
fmt.Println()
|
||||
}
|
||||
},
|
||||
}
|
||||
newLine = subCmd.Flags().BoolP("newline", "n", false, "display one word per line")
|
||||
|
||||
cmd.AddCommand(&subCmd)
|
||||
cmd.Execute()
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
# cobra
|
||||
|
||||
[cobra](http://github.com/spf13/cobra) 是一个强大开源的go命令行包,很多开源项目都使用cobra实现启动入口,如kubernetes。
|
||||
|
||||
# 安装
|
||||
|
||||
```bash
|
||||
go get github.com/spf13/cobra
|
||||
```
|
||||
|
||||
# 使用
|
||||
|
||||
使用cobra需要先创建一个`Command`对象,然后执行这个对象的`Execute`方法
|
||||
|
||||
```go
|
||||
cmd := cobra.Command{Use: "cobra"}
|
||||
cmd.Execute()
|
||||
```
|
||||
|
||||
上面的代码没有任何功能,任何参数都不进行处理。
|
||||
|
||||
现在来扩展一下
|
||||
|
||||
```go
|
||||
cmd := cobra.Command{
|
||||
Use: "cobra",
|
||||
Short: "this is a cobra demo",
|
||||
Run: func(cmd *cobra.Command, args []string){
|
||||
fmt.Println("good! you run a cobra command!")
|
||||
},
|
||||
}
|
||||
cmd.Execute()
|
||||
```
|
||||
|
||||
这里为cmd赋值了两个属性`Short` 和`Run`。 `Short` 就是帮助信息的简短说明,`Run` 就是命令行命中时执行的方法。 由于现在只有一个根命令,所以执行的话会打印`good! you run a cobra command!` 添加任何命参数(`-`开头)将会显示错误及usage信息。
|
||||
|
||||
下面为cmd添加一个子命令,并处理参数`-n`
|
||||
|
||||
```go
|
||||
cmd := cobra.Command{
|
||||
Use: "cobra",
|
||||
Short: "this is a cobra demo",
|
||||
Run: func(cmd *cobra.Command, args []string){
|
||||
fmt.Println("good! you run a cobra command!")
|
||||
},
|
||||
}
|
||||
var newLine *bool
|
||||
subCmd := cobra.Command{
|
||||
Use: "echo",
|
||||
Short: "echo your input",
|
||||
Run: func(cmd *cobra.Command, args []string){
|
||||
for _, arg := range args {
|
||||
if newLine != nil && *newLine{
|
||||
fmt.Println(arg)
|
||||
}else{
|
||||
fmt.Printf("%s ", arg)
|
||||
}
|
||||
}
|
||||
if newLine == nil || ! *newLine{
|
||||
fmt.Println()
|
||||
}
|
||||
},
|
||||
}
|
||||
newLine = subCmd.Flags().BoolP("newline", "n", false, "display one word per line")
|
||||
|
||||
cmd.AddCommand(&subCmd)
|
||||
cmd.Execute()
|
||||
```
|
||||
|
||||
这是一个简单的`echo`程序, cmd 拥有一个子命令 `subCmd`, `subCmd`通过`echo`(`Use: "echo"`)调用。`newLine = subCmd.Flags().BoolP("newline", "n", false, "display one word per line")` 为`subCmd` 添加了一个可选布尔型参数`-n`或`--newline`,这个参数的默认值是`false`。`newLine` 记录这个参数的值并在`Run`回调方法中使用。
|
||||
|
||||
运行结果
|
||||
|
||||
```bash
|
||||
$ go run cobra.go echo aaa bbb
|
||||
aaa bbb
|
||||
```
|
||||
|
||||
```bash
|
||||
$ go run cobra.go echo -n aaa bbb
|
||||
aaa
|
||||
bbb
|
||||
```
|
|
@ -0,0 +1,99 @@
|
|||
# GO 操作 mongodb
|
||||
|
||||
go 使用官方驱动[`go.mongodb.org/mongo-driver/mongo`](https://github.com/mongodb/mongo-go-driver)来操作mongo数据库。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
go get go.mongodb.org/mongo-driver/mongo
|
||||
```
|
||||
|
||||
## 使用
|
||||
|
||||
连接
|
||||
|
||||
```go
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
"go.mongodb.org/mongo-driver/mongo/readpref"
|
||||
)
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
client, err := mongo.Connect(ctx, options.Client().ApplyURI("mongodb://localhost:27017"))
|
||||
defer func() {
|
||||
if err = client.Disconnect(ctx); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}()
|
||||
```
|
||||
|
||||
测试连接
|
||||
|
||||
```go
|
||||
ctx, cancel = context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
err = client.Ping(ctx, readpref.Primary())
|
||||
```
|
||||
|
||||
获取collection
|
||||
|
||||
```go
|
||||
collection := client.Database("testing").Collection("numbers")
|
||||
```
|
||||
|
||||
## 特殊类型
|
||||
|
||||
包 `go.mongodb.org/mongo-driver/bson/primitive` 转换一些数据到mongo类型
|
||||
|
||||
### `ISODate`
|
||||
|
||||
```go
|
||||
t, err := time.Parse("2006-01-02T15:04:05.999", "2021-04-21T11:30:58.883")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
t1 := primitive.NewDateTimeFromTime(t.Add(-8 * time.Hour))
|
||||
```
|
||||
|
||||
## 复杂查询
|
||||
|
||||
```js
|
||||
db.numbers.find({ "order_source" : 1, "order_history": { $elemMatch: { "order_status": "27", "change_at": { $gte: ISODate("2021-04-21T11:30:58.883+08:00"),$lte: ISODate("2021-04-21T11:43:58.883+08:00")} } } })
|
||||
```
|
||||
|
||||
```go
|
||||
t, err := time.Parse("2006-01-02T15:04:05.999+08:00", "2021-04-21T11:30:58.883+08:00")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
t1 := primitive.NewDateTimeFromTime(t.Add(-8 * time.Hour)) //
|
||||
t, err = time.Parse("2006-01-02T15:04:05.999+08:00", "2021-04-21T11:43:58.883+08:00")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
t2 := primitive.NewDateTimeFromTime(t.Add(-8 * time.Hour)) //
|
||||
filter := bson.M{
|
||||
"order_source" : 1,
|
||||
"order_history": bson.M{
|
||||
"$elemMatch": bson.M{
|
||||
"order_status": "27",
|
||||
"change_at": bson.M{ "$gte": t1,"$lte": t2},
|
||||
},
|
||||
},
|
||||
}
|
||||
ctx, cancel = context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
collection.find(ctx, filter)
|
||||
```
|
||||
|
||||
查询排序
|
||||
|
||||
```bash
|
||||
opt := options.FindOptions{}
|
||||
opt.SetSort(bson.D{{"order_no",1}})
|
||||
ctx, cancel = context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
collection.find(ctx, filter, &opt)
|
||||
```
|
|
@ -0,0 +1,43 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
var oauth2Config oauth2.Config
|
||||
|
||||
var (
|
||||
clientID = "demo-client"
|
||||
clientSecret = "cbfd6e04-a51c-4982-a25b-7aaba4f30c81"
|
||||
|
||||
redirectURL = "http://localhost:8181/demo/callback"
|
||||
state = "somestate"
|
||||
)
|
||||
|
||||
func handleRedirect(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, oauth2Config.AuthCodeURL(state), http.StatusFound)
|
||||
}
|
||||
|
||||
func main() {
|
||||
provider, err := oidc.NewProvider(context.Background(), "http://localhost:8181/demo/callback")
|
||||
if err != nil {
|
||||
// handle error
|
||||
}
|
||||
|
||||
// Configure an OpenID Connect aware OAuth2 client.
|
||||
oauth2Config = oauth2.Config{
|
||||
ClientID: clientID,
|
||||
ClientSecret: clientSecret,
|
||||
RedirectURL: redirectURL,
|
||||
|
||||
// Discovery returns the OAuth2 endpoints.
|
||||
Endpoint: provider.Endpoint(),
|
||||
|
||||
// "openid" is a required scope for OpenID Connect flows.
|
||||
Scopes: []string{oidc.ScopeOpenID, "profile", "email"},
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
# 创建一个只读用户
|
||||
|
||||
创建证书
|
||||
|
||||
```bash
|
||||
mkdir temp
|
||||
cd temp
|
||||
USER=viewer
|
||||
openssl genrsa -out ${USER}.key 2048
|
||||
openssl req -new -key ${USER}.key -out ${USER}.csr -subj "/CN=${USER}"
|
||||
openssl x509 -req -in ${USER}.csr -CA /etc/kubernetes/pki/ca.crt -CAkey /etc/kubernetes/pki/ca.key -CAcreateserial -out ${USER}.crt -days 365
|
||||
```
|
||||
|
||||
创建用户
|
||||
|
||||
```bash
|
||||
kubectl create clusterrolebinding kubernetes-viewer --clusterrole=view --user=${USER}
|
||||
```
|
||||
|
||||
修改配置
|
||||
|
||||
```bash
|
||||
cp -a ~/.kube/config ./config
|
||||
vim config
|
||||
```
|
||||
|
||||
config示例, 替换其中的${USER}为你的用户名,替换`client-certificate-data`和`client-key-data`为对应值
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
clusters:
|
||||
- cluster:
|
||||
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvakNDQWVhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJeE1Ea3hNekE1TWprek4xb1hEVE14TURreE1UQTVNamt6TjFvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTW4wCmZlaUZuR1pvVjZEVGpabk5zME5UN2ZaRzd4UDQrOVF1eDd6MnRCZ0swVkVzRFhVUEx6VE4wLzNVdXdWaDFYeGwKRmJFNEQrcUJYVjFwLzU1TVBUcGRQWjBQdzVUZlN5NFp6bm1vOTY5cHorNW9OVmtjQnVIMFJFbzB6NjcxNDFYZQphcXFIZnNVcWx4QWJvWUxsV3FoWkp2Sm9JZlBFYXFObE5xUitaaFhmWkhXY0pCRC9OQTB2dXNtVmszVzRTV3VECnF2QUt1MHBVT0RKTnpTcTFpWWx4WG1JUEszNEZQQmVhYnAyb2gxWVMrbVVmNUZMcnM5T05hSUkwSEMyQ3VKRDgKcGtIOTJaakNhT3RrSTVZajcxcEZ0YytQcGQwN0d2OS9DTUxpbGgxSGlwbVBEM2lwMkFUSlFSb01tSnFrcjgvRQpxMjBYbUlkNFh4YXphd1gxR0o4Q0F3RUFBYU5aTUZjd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0hRWURWUjBPQkJZRUZQNndyYlBTc2xyWUhxUGMxU25vbTJWdk4rV3hNQlVHQTFVZEVRUU8KTUF5Q0NtdDFZbVZ5Ym1WMFpYTXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBRkRSaTR5ZXNHKzlTWk10cy9lcAoxcXdIdnBQOUpraHRXbnBlTndaRzlzcU1BSW9TeHcvK01CNXh4RXRnSzhqTk00NzFvWmxVV3IzZ01vTGNmUUVMCmtvVHNTNTgwV1ZXd1pOODd1QnBqV3I0dWdEWmJoalBBM0hRcVdJdTNMYmd1WUJJdmlVOTFoZU5UKzlFYk9qSlgKVXFwamlnbmw1QVZkSThhYmxNcHZEUnBDZ0lFQjRVQnN4R21BU3BZaTJtSmVqSVNUbTR4U1lGdnZVcC80Q1JzaQpBNUZ4b1FvSjN5MUJHam45a0ZCQ0E0UzFFUlFPMWRFZUhDRVZwQnlRRFhIa0pGb0VZZHBtSTNEYjgvMmlUSTNDCkFSUzBPdGVVejd6Y2tGYzNsbnVxUUtzUnE5V0JQWXdtWlN5ZFZ0dmo2NVZEcVhycWwvVWZOWjFSdTlwU25kQlUKL09rPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
||||
server: https://10.0.1.43:6443
|
||||
name: kubernetes
|
||||
contexts:
|
||||
- context:
|
||||
cluster: kubernetes
|
||||
user: ${USER}
|
||||
name: ${USER}@kubernetes
|
||||
current-context: ${USER}@kubernetes
|
||||
kind: Config
|
||||
preferences: {}
|
||||
users:
|
||||
- name: intbee
|
||||
user:
|
||||
# data from result of command: cat ${USER}.crt | base64 --wrap=0
|
||||
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNyVENDQVpVQ0ZIRDQwd25lbzJCR2RKUGZjWEdwMjVzcVZNcEhNQTBHQ1NxR1NJYjNEUUVCQ3dVQU1CVXgKRXpBUkJnTlZCQU1UQ210MVltVnlibVYwWlhNd0hoY05NakV4TVRBNU1EY3pOakl6V2hjTk1qSXhNVEE1TURjegpOakl6V2pBUk1ROHdEUVlEVlFRRERBWnBiblJpWldVd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3CmdnRUtBb0lCQVFDeVZwdk1IcmNCMmJ6NG54bTNYNnJtQzQ0Z0ZsWnlSelBnUDRyNyswSjBEUXVLdzNyZ2VGSE0KZnZaN1N1RzhRMUQ2RlJHWi9EdCt6UGorWDZiYWZ4aFFMb3Z6eGRYQmpCUnBHUFdaUjcxS3UwSk5CWkNWY3dYSgpORmNZcDI1WVl3QUsreEpDSU0vaENzQnJEdWpZRFVYM1d3a0tXYVRGS21BVlBXNTBCTkJqQzVlMy9xTGxsdTVPCk1ETW1YL0xNZGtTWG1XaDZWdjZtQmRNS3ZlY3cxK2VndTI4dS9Kam9pWnBJNWM0aTdKNmd5ZzdvREZHMDlKZ1EKVGU5VkNoSHp1ckpvZWRaTUtFTTlOMVBOYVFkMW9aU29vOFdCUHJoQzRma3I2V3BiVnJES0QxTlFIWUlCdWtWVgpRRS9HY0c1Mkl6WkJ4N0djOWM3c0NJTWtkdEtQQzdOUkFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCCkFGSmhCcW9pOVRHdCt6cGlITHgwV1FJakNMQy9LZitqOU5lTU44MnJweVhhQlZNNVN2U1dRVjdwaTFIN2RpdHYKUkJGK2VwVXBuNlNSOHNPMlNkRjF5N2ZzV0VEaUc5K2VzWHdlUFNZdDZxd3Z5UjZJSEFSaGU3M1ZTWkZyZ08wOQp4ZVBWYjlBRndzUnRqVkZZUk5wNzNMd1o4bnhWM3JOdkF3YzdudGl3dkRQSEdMV0pFU0pTVDVlSTh3dlFlM2V1Ck15dHEzeVF6WWxPVVdJcFhRMysyaGU1L1lLRml1UUNldFBpTHBybytCS0FTMmoyV3RnS3JmeFRIU0JCQ0RjMGoKbHh1WkJrWkRFTGdDUVN2UXdtN0VhMXljUXpsUlF5dFh6YUc2cFY4d3Uvb2lBdG9vbnBWd2lWekdaVjdoODFhRgpHOWc0TVlMS0ordU12c0ptMzJtOFViWT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
|
||||
|
||||
# data from result of command: cat ${USER}.key | base64 --wrap=0
|
||||
client-key-data: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBc2xhYnpCNjNBZG04K0o4WnQxK3E1Z3VPSUJaV2NrY3o0RCtLKy90Q2RBMExpc042CjRIaFJ6SDcyZTByaHZFTlEraFVSbWZ3N2ZzejQvbCttMm44WVVDNkw4OFhWd1l3VWFSajFtVWU5U3J0Q1RRV1EKbFhNRnlUUlhHS2R1V0dNQUN2c1NRaURQNFFyQWF3N28yQTFGOTFzSkNsbWt4U3BnRlQxdWRBVFFZd3VYdC82aQo1WmJ1VGpBekpsL3l6SFpFbDVsb2VsYitwZ1hUQ3Izbk1OZm5vTHR2THZ5WTZJbWFTT1hPSXV5ZW9Nb082QXhSCnRQU1lFRTN2VlFvUjg3cXlhSG5XVENoRFBUZFR6V2tIZGFHVXFLUEZnVDY0UXVINUsrbHFXMWF3eWc5VFVCMkMKQWJwRlZVQlB4bkJ1ZGlNMlFjZXhuUFhPN0FpREpIYlNqd3V6VVFJREFRQUJBb0lCQVFDWGVDWWxiV1VFaGxvUgpWSmh6L2laWjh6Q0lvbEJVQ1pQUEFFbGNrZUMwVHF3aDlMdjEwVnV3YzVtSHlHY0lEcWpGYjRXZW92UXBVNUNjCkJNUGp5cFRzN1V2akJZSHpQTFhOT2V6SGZuNFE3aEYyOTZZQXVVd053NDNDRzlzRjZUZ05HNGc3Y0VEL283RWcKZk81WktwVGxiWVcxSzhSZHpnc0RuMFNqOTc3Q2o1ZEl0cVRhNkN6V3VWOHd2aFMvWXlRbW8vbXB4V0dYNzdWNQpGdGoweVJJd3NNSlR6Z29SUW55WFc2SEtYc09MeDBwZ3djUUMzck9IOENFM3U4UXBSRVhPV0Y0Q2d0d0d2bVdXCmNMSmhJRjV6L0llSm5jQlZrREZLVU5LOTErTVpaV2k5emRldmZ1S2NTYVBzaWdudEJPYTRaQVF2QnZFUHhGZzAKM1laR3ZNUEJBb0dCQU9TVjVtN3BWK3BCeFdjdUxYZitjdEs5VjNDbFhnSUFMdUNEV2Q5SFJrNjBVV0gxaGdQQQpkSlFtcExSRzlIVGF2MHFCYUZScWJNUkx2eFlubnhaMHpPSEgyRnVjNHB2ZFNuenJWTG96aitDc2k5VmlsU2hkClJVOG5PNVUvbUF6b2JCSWQ4UkoxUW9yWk41SithT3l3MWdDOW1OUW54Vm04c0wyT2xEc3V4Tm1KQW9HQkFNZTYKQU5uTnRTblVvMlRNR1liOWZzRGpvbnFhb3lsTWozZFk3S3k2UkU0T1JlcVpqUFprNG1TaDRPSG9FbG5TazB1bQp0Y1oxS21VQkxpeW9DaERocWtnR3p1MEw2L0lmQm5XZ2FFbHhEekxRQ0w2bGd1cUJ6ZXFvQjQrTVpzZDBSTVpOClpKdGhsNXEzdXJnY2MvWDhPR1k0TXFidlo4UWt5bWVXaDcxc1c4R0pBb0dBRW1tY3NTeHNuM3NDeXFmbWs3YlUKU3ZOamVyaG5WU1Bzb3JzUjN6RmZrWEZtNk13ZEttb3pPY2ZQRnBKc21Ja1NSWThjOTBmSFVSeUUzT1QrSkpIdAordlhkRUt3WGVOU2ZibWFLWWFGTG9wNWplU0hDd0FpYlQ1L3FaY0JFb0MyTW52ejRjVE11MC81aFFwU2FJUTZ4CmZrZkhhcmQxWnlBUzRJSCtvTEhJdTNrQ2dZRUFzTmUwNFNVTy81YlRoZkJodWZEQ1JyQkhzUjh5ME9LRk5UdDcKZEFVSmJjT2RqSGVoSkpsM0MzdDV6d3paRXNjc3ZKTkQ2QkRlRk1qU3haK1VLaFpsMjVpTHA4QWlqaU9DYUt3NwpLcXY4dFJVV2FSZkxyekIzendvd2g1M2RjMFV6a0JIK3ZzWE9vcU9EcEhrdEErVHJXemJ2UW5nLy9LQkd4eW0xCnpyY2ZGMkVDZ1lBQW5VaXhDVFdWaW42QzV3NzJVV1pObmR4R1BBb3NiVVN6VUdPcFdnNVVHSDB5MVBSR1huNHcKeG00dGtrZ2ZoQnNqTGZ3T1FWN0t0N2Z1Z1VSYmJPazJ0OUNHbTFsUXRURmVKRldOV2F6ZVFENEZBdHozZmFkdQpoUk1mZHBDMDZ4c1p0ZjlvNHFKbmwvNm9qMExIR1dqL3FJNjFpZy9qcHlNeW93Vmh1NEM0ZHc9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
|
||||
```
|
|
@ -0,0 +1,32 @@
|
|||
# kubernetes 集群证书过期处理
|
||||
|
||||
## 查看证书到期时间
|
||||
|
||||
```bash
|
||||
kubeadm alpha certs check-expiration
|
||||
```
|
||||
|
||||
## 修改时间使证书暂时有效
|
||||
|
||||
```bash
|
||||
date -s '0000-00-00'
|
||||
```
|
||||
|
||||
## 重新分发证书
|
||||
|
||||
```bash
|
||||
kubeadm alpha certs renew all
|
||||
```
|
||||
|
||||
## 重启服务,重载证书
|
||||
|
||||
```bash
|
||||
docker ps | grep -v pause | grep -E "etcd|scheduler|controller|apiserver" | awk '{print $1}' | awk '{print "docker","restart",$1}' | bash
|
||||
ntpdate pool.ntp.org
|
||||
```
|
||||
|
||||
## 更新用户配置
|
||||
|
||||
```bash
|
||||
cp /etc/kubernetes/admin.conf ~/.kube/config
|
||||
```
|
|
@ -0,0 +1 @@
|
|||
# kuberntes 集群证书相关问题
|
|
@ -0,0 +1,49 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/tools/clientcmd"
|
||||
)
|
||||
|
||||
func homeDir() string {
|
||||
if h := os.Getenv("HOME"); h != "" {
|
||||
return h
|
||||
}
|
||||
return os.Getenv("USERPROFILE") // windows
|
||||
}
|
||||
|
||||
func connectCluster() (*kubernetes.Clientset, error) {
|
||||
conf := filepath.Join(homeDir(), ".kube", "config")
|
||||
config, err := clientcmd.BuildConfigFromFlags("", conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
clientset, err := kubernetes.NewForConfig(config)
|
||||
return clientset, err
|
||||
}
|
||||
|
||||
func getDeployment(client *kubernetes.Clientset, namespace, name string) (*appsv1.Deployment, error) {
|
||||
dp, err := client.AppsV1().Deployments(namespace).Get(context.Background(), name, v1.GetOptions{})
|
||||
return dp, err
|
||||
}
|
||||
|
||||
func main() {
|
||||
client, err := connectCluster()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
dp, err := getDeployment(client, "server", "code-bing")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
for _, c := range dp.Spec.Template.Spec.Containers {
|
||||
log.Println(c.Name, c.Image)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# 开发kubernetes管理工具
|
||||
|
||||
开发kubernetes管理工具要用到`client-go`([Github](https://github.com/kubernetes/client-go))包
|
||||
|
|
@ -0,0 +1,427 @@
|
|||
# 定制Kubernetes资源
|
||||
|
||||
[定制资源(Custom Resource)](https://kubernetes.io/zh/docs/concepts/extend-kubernetes/api-extension/custom-resources/) 是对 Kubernetes API 的扩展,可以开发定制的资源及控制器,这些资源仍旧可以通过kubernetes api来访问。
|
||||
|
||||
可以单独开发定制资源,也可以连定制同控制器一起开发。
|
||||
|
||||
## 准备
|
||||
|
||||
开发定制资源(CRD)需要安装controller-gen、kubebuilder、kustomize这三个工具。
|
||||
|
||||
***这里所有工具都默认安装到`${HOME}/go/bin/`***
|
||||
|
||||
### controller-gen
|
||||
|
||||
[controller-gen](https://github.com/kubernetes-sigs/controller-tools) 用于生成crd controller的基础代码, 省去不少工作。
|
||||
|
||||
安装
|
||||
|
||||
```bash
|
||||
git clone https://github.com/kubernetes-sigs/controller-tools.git
|
||||
cd controller-tools/cmd/controller-gen/
|
||||
go build -o ${HOME}/go/bin/controller-gen main.go
|
||||
```
|
||||
|
||||
使用方法
|
||||
|
||||
```bash
|
||||
# controller-gen crd --paths=[api code path]/... output:dir=[output dir]
|
||||
controller-gen crd --paths=/git/demo/api/... output:dir=/git/demo/crd
|
||||
```
|
||||
|
||||
### kubebuilder
|
||||
|
||||
[kubebuilder](https://github.com/kubernetes-sigs/kubebuilder)用于生成crd基础代码。
|
||||
|
||||
安装
|
||||
|
||||
```bash
|
||||
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.2.0/kubebuilder_linux_amd64 -O ${HOME}/go/bin/kubebuilder
|
||||
chmod +x ${HOME}/go/bin/kubebuilder
|
||||
|
||||
```
|
||||
方法2
|
||||
|
||||
```bash
|
||||
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)
|
||||
chmod +x kubebuilder && mv kubebuilder /usr/local/bin/
|
||||
```
|
||||
|
||||
#### 使用方法
|
||||
|
||||
kubebuilder详细使用方法参见[官方文档](https://book.kubebuilder.io/)
|
||||
|
||||
创建一个项目
|
||||
|
||||
```bash
|
||||
mkdir $GOPATH/src/example
|
||||
cd $GOPATH/src/example
|
||||
kubebuilder init --domain project.demo.io
|
||||
```
|
||||
|
||||
创建一个api资源
|
||||
|
||||
```bash
|
||||
kubebuilder create api --group project.demo.io --version v1 --kind Demo
|
||||
```
|
||||
|
||||
***这个api资源就是project.demo.io/v1/demos***
|
||||
|
||||
### kustomize
|
||||
|
||||
[kustomize](https://github.com/kubernetes-sigs/kustomize)把简明的kustomization 模板转换成kubernetes的资源配置。kustomize 可以用于crd也可以用于内置资源(参见文档[manage-kubernetes-objects](https://kubernetes.io/zh/docs/tasks/manage-kubernetes-objects/kustomization/))的管理。
|
||||
|
||||
安装
|
||||
|
||||
```bash
|
||||
go get sigs.k8s.io/kustomize/kustomize/v3
|
||||
```
|
||||
|
||||
使用方法参见[官方指南](https://kubectl.docs.kubernetes.io/zh/guides)
|
||||
|
||||
## 开始
|
||||
|
||||
安装好相关工具之后,就可以开始愉快的玩耍了。
|
||||
|
||||
### 初始化项目
|
||||
|
||||
```bash
|
||||
PROJECT_DIR=demo #
|
||||
API_DOMAIN=demo
|
||||
GO_MODULE_DOMAIN=crd.io
|
||||
OWNER=bing
|
||||
mkdir ${PROJECT_DIR}
|
||||
cd ${PROJECT_DIR}
|
||||
kubebuilder init --plugins go/v3 --domain ${API_DOMAIN} --owner ${OWNER} --repo ${GO_MODULE_DOMAIN} --skip-go-version-check
|
||||
```
|
||||
|
||||
- `PROJECT_DIR` 是项目目录
|
||||
- `GO_MODULE_DOMAIN` 是go mod 的名称, 也是api resource group的后缀,如果使用GOPATH则不需要配置
|
||||
- `API_DOMAIN` 是api resource的域名,也是group名的一部分
|
||||
- `OWNER` 是项目所有人
|
||||
|
||||
***最终`apiVersion:${API_DOMAIN}.${GO_MODULE_DOMAIN}`***
|
||||
|
||||
现在,`PROJECT_DIR` 目录下文件(夹)如下
|
||||
|
||||
```bash
|
||||
config Dockerfile go.mod go.sum hack main.go Makefile PROJECT
|
||||
```
|
||||
|
||||
- `config` 存放kustomization配置
|
||||
- `Dockerfile` 生产docker镜像的配置,这个文件包含了代码编译操作
|
||||
- `hack` 这个文件夹存放了一个名为`boilerplate.go.txt`的文件
|
||||
- `main.go` 程序入口文件,启动一个manager,负责管理crd
|
||||
- `Makefile` `make`命令的配置文件
|
||||
- `PROJECT` 项目配置文件
|
||||
|
||||
#### main.go
|
||||
|
||||
main.go 是manager启动的入口文件。
|
||||
|
||||
##### 处理启动参数
|
||||
|
||||
```go
|
||||
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
|
||||
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
|
||||
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
|
||||
"Enable leader election for controller manager. "+
|
||||
"Enabling this will ensure there is only one active controller manager.")
|
||||
opts := zap.Options{
|
||||
Development: true,
|
||||
}
|
||||
opts.BindFlags(flag.CommandLine)
|
||||
flag.Parse()
|
||||
```
|
||||
|
||||
##### 创建manager
|
||||
|
||||
创建了一个manager `mgr`
|
||||
|
||||
```go
|
||||
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
|
||||
Scheme: scheme,
|
||||
MetricsBindAddress: metricsAddr,
|
||||
Port: 9443,
|
||||
HealthProbeBindAddress: probeAddr,
|
||||
LeaderElection: enableLeaderElection,
|
||||
LeaderElectionID: "e71592d6.demo",
|
||||
})
|
||||
```
|
||||
|
||||
##### 为manager添加healthy和ready检查
|
||||
|
||||
```go
|
||||
//+kubebuilder:scaffold:builder
|
||||
|
||||
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
|
||||
setupLog.Error(err, "unable to set up health check")
|
||||
os.Exit(1)
|
||||
}
|
||||
if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil {
|
||||
setupLog.Error(err, "unable to set up ready check")
|
||||
os.Exit(1)
|
||||
}
|
||||
```
|
||||
|
||||
***注意:注释`//+kubebuilder:scaffold:builder`也是代码的一部分。所有`//+kubebuilder:开头的注释都有他的特殊意义。***
|
||||
|
||||
##### 启动manager
|
||||
|
||||
```go
|
||||
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
|
||||
setupLog.Error(err, "problem running manager")
|
||||
os.Exit(1)
|
||||
}
|
||||
```
|
||||
|
||||
### 创建一个CRD
|
||||
|
||||
```bash
|
||||
kubebuilder create api --group ${API_DOMAIN} --version v1 --kind Demo
|
||||
```
|
||||
|
||||
***创建时会询问是否创建resource及controller***
|
||||
|
||||
现在项目目录下多了几个文件夹
|
||||
|
||||
```bash
|
||||
api bin config controllers Dockerfile go.mod go.sum hack main.go Makefile PROJECT
|
||||
```
|
||||
|
||||
- `api` api resource 的代码目录,目录下是版本子目录,resource的代码文件位于版本子目录内
|
||||
|
||||
- `bin` `controller-gen` 可执行文件位于此处
|
||||
|
||||
- `controllers` controller的代码目录
|
||||
|
||||
#### main.go
|
||||
|
||||
看一下main.go的新增部分
|
||||
|
||||
```go
|
||||
if err = (&controllers.DemoReconciler{
|
||||
Client: mgr.GetClient(),
|
||||
Log: ctrl.Log.WithName("controllers").WithName("Demo"),
|
||||
Scheme: mgr.GetScheme(),
|
||||
}).SetupWithManager(mgr); err != nil {
|
||||
setupLog.Error(err, "unable to create controller", "controller", "Demo")
|
||||
os.Exit(1)
|
||||
}
|
||||
```
|
||||
创建一个对应的controller对象(`DemoReconciler`), 并设置这个controller的manager为`mgr`
|
||||
|
||||
#### `api/v1/demo_types.go`
|
||||
|
||||
定义Demo资源规约`DemoSpec`,
|
||||
|
||||
```go
|
||||
type DemoSpec struct {
|
||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
// Important: Run "make" to regenerate code after modifying this file
|
||||
|
||||
// Foo is an example field of Demo. Edit demo_types.go to remove/update
|
||||
Foo string `json:"foo,omitempty"`
|
||||
}
|
||||
```
|
||||
|
||||
定义Demo状态
|
||||
|
||||
```go
|
||||
type DemoStatus struct {
|
||||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
||||
// Important: Run "make" to regenerate code after modifying this file
|
||||
}
|
||||
```
|
||||
|
||||
注册资源
|
||||
|
||||
```go
|
||||
func init() {
|
||||
SchemeBuilder.Register(&Demo{}, &DemoList{})
|
||||
}
|
||||
```
|
||||
|
||||
#### `api/v1/groupversion_info.go`
|
||||
|
||||
api 资源组配置。
|
||||
|
||||
```go
|
||||
// Package v1 contains API Schema definitions for the demo.io v1 API group
|
||||
//+kubebuilder:object:generate=true
|
||||
//+groupName=demo.crd.io
|
||||
package v1
|
||||
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"sigs.k8s.io/controller-runtime/pkg/scheme"
|
||||
)
|
||||
|
||||
var (
|
||||
// GroupVersion is group version used to register these objects
|
||||
GroupVersion = schema.GroupVersion{Group: "demo.crd.io", Version: "v1"}
|
||||
|
||||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
|
||||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
|
||||
|
||||
// AddToScheme adds the types in this group-version to the given scheme.
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
```
|
||||
|
||||
***注意:注释`+groupName=demo.crd.io`不可删除,与`+kubebuilder:object:generate=true`一样,有他的特殊意义。后续还能看到用于设定的很多注释***
|
||||
|
||||
#### `api/v1/zz_generated.deepcopy.go`
|
||||
|
||||
这是一个自动生成的深度复制的文件,不要随意修改此文件,除非明确知道要做什么。kubebuilder会自动配置及更新该文件。
|
||||
|
||||
#### `controllers/demo_controller.go`
|
||||
|
||||
资源demo的控制器文件。
|
||||
|
||||
##### DemoReconciler
|
||||
|
||||
`DemoReconciler`对象定义。一般来说,无需为其添加任何内容,除非有特别需求
|
||||
|
||||
```go
|
||||
|
||||
// DemoReconciler reconciles a Demo object
|
||||
type DemoReconciler struct {
|
||||
client.Client
|
||||
Log logr.Logger
|
||||
Scheme *runtime.Scheme
|
||||
}
|
||||
```
|
||||
- `DemoReconciler`对象有三个成员,`client.Client` 是kubernetes client接口,提供如Get、Update、Create、Delete等方法。
|
||||
|
||||
- `Log` 统一的log处理
|
||||
|
||||
- `Scheme` 这个功能比较多,比如序列化与反序列化对象
|
||||
|
||||
##### Reconcile
|
||||
|
||||
处理程序。每一次CRD的变更都会调用此方法。
|
||||
|
||||
```go
|
||||
|
||||
//+kubebuilder:rbac:groups=demo.demo,resources=demoes,verbs=get;list;watch;create;update;patch;delete
|
||||
//+kubebuilder:rbac:groups=demo.demo,resources=demoes/status,verbs=get;update;patch
|
||||
//+kubebuilder:rbac:groups=demo.demo,resources=demoes/finalizers,verbs=update
|
||||
|
||||
func (r *DemoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
|
||||
_ = r.Log.WithValues("demo", req.NamespacedName)
|
||||
|
||||
// your logic here
|
||||
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
```
|
||||
|
||||
***注意:`+kubebuilder:rbac`是用于授权的注释,只有在此授权了的资源,才能够使用对应权限访问。`kustomize`会依据此配置生成`config/rbac`配置。***
|
||||
|
||||
##### SetupWithManager
|
||||
|
||||
设置controller的manager,通常不需要修改这部分代码就可以正常工作,但有时需要进行改动,比如watch其他资源的时候。
|
||||
|
||||
```go
|
||||
// SetupWithManager sets up the controller with the Manager.
|
||||
func (r *DemoReconciler) SetupWithManager(mgr ctrl.Manager) error {
|
||||
return ctrl.NewControllerManagedBy(mgr).
|
||||
For(&demov1.Demo{}).
|
||||
Complete(r)
|
||||
}
|
||||
```
|
||||
|
||||
### 为controller添加功能
|
||||
|
||||
#### 添加字段
|
||||
|
||||
首先为crd添加两个字段。一个规约字段`Bar`和一个状态字段`UpdatedAt`
|
||||
|
||||
```go
|
||||
type DemoSpec struct {
|
||||
Foo string `json:"foo,omitempty"`
|
||||
Bar string `json:"Bar,omitempty"`
|
||||
}
|
||||
|
||||
// DemoStatus defines the observed state of Demo
|
||||
type DemoStatus struct {
|
||||
UpdatedAt *metav1.Time `json:"UpdatedAt,omitempty"`
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
#### 修改Reconcile
|
||||
|
||||
```go
|
||||
import apiv1 "demo.crd.io/api/v1"
|
||||
|
||||
func (r *DemoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
|
||||
_ = r.Log.WithValues("demo", req.NamespacedName)
|
||||
|
||||
// your logic here
|
||||
demo := apiv1.Demo{}
|
||||
err := r.Get(context.Background(), req.NamespacedName, &demo)
|
||||
if err != nil {
|
||||
r.Log.Error(err, "get demo resource error")
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
//更新操作
|
||||
if demo.ObjectMeta.DeletionTimestamp.IsZero() {
|
||||
//更新
|
||||
err = r.processUpdate(&demo)
|
||||
}
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
|
||||
//处理更新
|
||||
func (r *DemoReconciler)processUpdate(demo *apiv1.Demo)error{
|
||||
r.Log.Info("the bar of %s is %s", demo.GetName(), demo.Spec.Bar)
|
||||
now := metav1.Now()
|
||||
demo.Status.UpdatedAt = &now
|
||||
err := r.Status().Update(context.Background(), demo)
|
||||
return err
|
||||
}
|
||||
```
|
||||
|
||||
这里首先获取到触发此次reconcile的对象`demo`, 然后通过`demo.ObjectMeta.DeletionTimestamp.IsZero()`来判断是删除操作还是更新操作(创建对象也是更新操作)。对于更新操作,执行方法`processUpdate`
|
||||
|
||||
在`processUpdate`中,先将`demo.Spec.Bar`打印到日志:`r.Log.Info("the bar of %s is %s", demo.GetName(), demo.Spec.Bar)`, 之后更新`demo.Status.UpdatedAt`字段。
|
||||
|
||||
这里使用了`r.Status().Update(context.Background(), demo)`,这需要有注释`// +kubebuilder:subresource:status` 默认已经添加了该注释,如果误删除了,需要添加上。
|
||||
|
||||
```go
|
||||
//+kubebuilder:object:root=true
|
||||
//+kubebuilder:subresource:status
|
||||
|
||||
// Demo is the Schema for the demoes API
|
||||
type Demo struct {
|
||||
```
|
||||
|
||||
**注意这里注释的位置和空行。**
|
||||
|
||||
### 多group
|
||||
|
||||
初始化
|
||||
|
||||
```bash
|
||||
PROJECT_DIR=demo #
|
||||
GO_MODULE_DOMAIN=crd.io
|
||||
OWNER=bing
|
||||
CRD_VERSION=v1beta1
|
||||
|
||||
|
||||
echo "init crd env"
|
||||
kubebuilder init --plugins go/v3 --owner ${OWNER} --repo ${GO_MODULE_DOMAIN} --skip-go-version-check
|
||||
echo "open multi group..."
|
||||
kubebuilder edit --multigroup
|
||||
```
|
||||
|
||||
`kubebuilder edit --multigroup` 开启多组支持
|
||||
|
||||
创建CRD
|
||||
|
||||
```bash
|
||||
kubebuilder create api --group group1 --version ${CRD_VERSION} --kind Demo --crd-version ${CRD_VERSION} --controller --resource
|
||||
kubebuilder create api --group group2 --version ${CRD_VERSION} --kind Demo --crd-version ${CRD_VERSION} --controller --resource
|
||||
```
|
|
@ -0,0 +1,109 @@
|
|||
# 为节点添加扩展资源
|
||||
|
||||
## 启用apiserver代理
|
||||
|
||||
启用apiserver代理,以便发送请求
|
||||
|
||||
```bash
|
||||
kubectl proxy
|
||||
```
|
||||
|
||||
## 添加扩展资源
|
||||
|
||||
```bash
|
||||
export NODE=k8snode1
|
||||
curl --header "Content-Type: application/json-patch+json" \
|
||||
--request PATCH \
|
||||
--data '[{"op": "add", "path": "/status/capacity/bing89.com~1demo", "value": "4"}]' \
|
||||
http://localhost:8001/api/v1/nodes/${NODE}/status
|
||||
```
|
||||
|
||||
输出显示该节点的当前资源容量
|
||||
|
||||
```json
|
||||
"capacity": {
|
||||
"bing89.com/demo": "4",
|
||||
"cpu": "2",
|
||||
"ephemeral-storage": "17394Mi",
|
||||
"hugepages-2Mi": "0",
|
||||
"memory": "4045168Ki",
|
||||
"pods": "110"
|
||||
}
|
||||
```
|
||||
|
||||
显示节点信息
|
||||
|
||||
```bash
|
||||
kubectl describe node ${NODE}
|
||||
```
|
||||
|
||||
输出
|
||||
|
||||
```bash
|
||||
Capacity:
|
||||
bing89.com/demo: 4
|
||||
cpu: 2
|
||||
ephemeral-storage: 17394Mi
|
||||
hugepages-2Mi: 0
|
||||
memory: 4045168Ki
|
||||
pods: 110
|
||||
```
|
||||
|
||||
## 测试
|
||||
|
||||
创建一个申请demo资源的[pod](../apiresources/yaml/pod/demo-extend-resouce.yaml)
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: demo-extend-resource
|
||||
spec:
|
||||
containers:
|
||||
- name: demo-extend-resource
|
||||
image: registry.bing89.com/tools/demo:1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http-port
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
bing89.com/demo: 1
|
||||
limits:
|
||||
cpu: 100m
|
||||
bing89.com/demo: 1
|
||||
restartPolicy: OnFailure
|
||||
```
|
||||
|
||||
```bash
|
||||
kubectl -n mem-demo apply -f kubernetes/apiresources/yaml/pod/demo-extend-resouce.yaml
|
||||
```
|
||||
|
||||
查看pod
|
||||
|
||||
```bash
|
||||
kubectl -n mem-demo get pod -o wide
|
||||
```
|
||||
|
||||
现在,pod已经被分配到有资源的`${NODE}(k8snode1)`
|
||||
|
||||
```bash
|
||||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
|
||||
demo 1/1 Running 0 2d1h 172.16.98.195 k8snode3 <none> <none>
|
||||
demo-extend-resource 1/1 Running 0 25s 172.16.249.5 k8snode1 <none> <none>
|
||||
```
|
||||
|
||||
## 清理扩展资源
|
||||
|
||||
```bash
|
||||
curl --header "Content-Type: application/json-patch+json" \
|
||||
--request PATCH \
|
||||
--data '[{"op": "remove", "path": "/status/capacity/bing89.com~1demo"}]' \
|
||||
http://localhost:8001/api/v1/nodes/${NODE}/status
|
||||
```
|
||||
|
||||
验证是否已经被移除
|
||||
|
||||
```bash
|
||||
kubectl describe node ${NODE} | grep demo
|
||||
```
|
|
@ -0,0 +1 @@
|
|||
# kubernetes 扩展
|
|
@ -0,0 +1,231 @@
|
|||
# 配置运行环境
|
||||
|
||||
## 升级内核
|
||||
|
||||
由于centos内核实在太老旧,需要升级系统内核。
|
||||
|
||||
```bash
|
||||
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
|
||||
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm
|
||||
yum --enablerepo=elrepo-kernel install kernel-lt -y
|
||||
sed -i s/saved/0/g /etc/default/grub
|
||||
grub2-set-default "$(cat /boot/efi/EFI/centos/grub.cfg |grep menuentry|grep 'menuentry '|head -n 1|awk -F "'" '{print $2}')"
|
||||
#查看默认启动版本
|
||||
grub2-editenv list
|
||||
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg && reboot
|
||||
|
||||
```
|
||||
|
||||
***注意:这里默认升级到最新版本的linux内核, 也可以自行指定内核版本。不升级也能够运行kubernetes***
|
||||
|
||||
## 配置selinux
|
||||
|
||||
```bash
|
||||
sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
|
||||
setenforce 0
|
||||
```
|
||||
|
||||
***也可完全关闭selinux(`sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config`),但并不推荐。***
|
||||
|
||||
## 配置防火墙
|
||||
|
||||
为kubernetes创建一个zone
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=public --new-service=kubernetes --permanent
|
||||
#source是源ip
|
||||
firewall-cmd --zone=public --service=kubernetes --add-source=192.168.0.0/24
|
||||
```
|
||||
|
||||
kubernetes 使用下表所述端口:
|
||||
|
||||
**控制节点**
|
||||
|
||||
协议|方向|端口范围|作用|使用者
|
||||
--|--|--|--|--
|
||||
TCP|入站|6443*|Kubernetes API 服务器|所有组件
|
||||
TCP|入站|10250|Kubelet API|kubelet 自身、Control plane
|
||||
TCP|入站|10251|kube-scheduler|kube-scheduler 自身
|
||||
TCP|入站|10252|kube-controller-manager|kube-controller-manager 自身
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=6443/tcp --permanent
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=10250/tcp --permanent
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=10251/tcp --permanent
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=10252/tcp --permanent
|
||||
```
|
||||
|
||||
**工作节点**
|
||||
|
||||
协议|方向|端口范围|作用|使用者
|
||||
--|--|--|--|--
|
||||
TCP|入站|10250|Kubelet API|kubelet 自身、控制平面组件
|
||||
TCP|入站|30000-32767|NodePort 服务**|所有组件
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=public --new-service=kubernetes --permanent
|
||||
#source是源ip
|
||||
firewall-cmd --zone=public --service=kubernetes --add-source=192.168.0.0/24
|
||||
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=10250/tcp --permanent
|
||||
```
|
||||
|
||||
**etcd节点**
|
||||
|
||||
协议|方向|端口范围|作用|使用者
|
||||
--|--|--|--|--
|
||||
TCP|入站|2379-2380|etcd server client API|kube-apiserver, etcd
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=public --new-service=kubernetes --permanent
|
||||
#source是源ip
|
||||
firewall-cmd --zone=public --service=kubernetes --add-source=192.168.0.0/24
|
||||
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=2379/tcp --permanent
|
||||
firewall-cmd --zone=public --service=kubernetes --add-port=2380/tcp --permanent
|
||||
```
|
||||
|
||||
**添加service到zone**
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=public --add-service=kubernetes --permanent
|
||||
```
|
||||
|
||||
**重新加载配置**
|
||||
|
||||
***确保每一步操作都加了参数`--permanent`持久化配置***
|
||||
|
||||
```bash
|
||||
firewall-cmd --reload
|
||||
```
|
||||
|
||||
**查看防火墙配置**
|
||||
|
||||
```bash
|
||||
firewall-cmd --zone=kubernetes --list-all
|
||||
```
|
||||
|
||||
应该可以看到输出
|
||||
|
||||
```bash
|
||||
kubernetes (active)
|
||||
target: default
|
||||
icmp-block-inversion: no
|
||||
interfaces: enp4s0
|
||||
sources: 192.168.0.0/24 10.244.0.0/16
|
||||
services:
|
||||
ports: 6443/tcp 10250/tcp 10251/tcp 10252/tcp
|
||||
protocols:
|
||||
masquerade: no
|
||||
forward-ports:
|
||||
source-ports:
|
||||
icmp-blocks:
|
||||
rich rules:
|
||||
```
|
||||
|
||||
***也可完全关闭防火墙(`systemctl disable --now firewalld`),但并不推荐***
|
||||
|
||||
## 关闭swap
|
||||
|
||||
```bash
|
||||
swapoff -a && sysctl -w vm.swappiness=0
|
||||
#/etc/fstab中swap相关的需要删除,否则会导致重启时kubelet启动失败
|
||||
sed -i 's|\(^/dev/mapper/.*-swap.*\)|#\1|' /etc/fstab
|
||||
```
|
||||
|
||||
## 配置系统参数
|
||||
|
||||
配置完成后需要重启
|
||||
|
||||
```bash
|
||||
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
|
||||
overlay
|
||||
br_netfilter
|
||||
EOF
|
||||
|
||||
iptables -P FORWARD ACCEPT
|
||||
cat <<EOF > /etc/sysctl.d/k8s.conf
|
||||
net.bridge.bridge-nf-call-ip6tables=1
|
||||
net.bridge.bridge-nf-call-iptables=1
|
||||
vm.swappiness=0
|
||||
net.ipv4.ip_forward=1
|
||||
EOF
|
||||
sysctl --system
|
||||
#添加,rockylinux8.5 + k8s1.22.4
|
||||
echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
|
||||
```
|
||||
|
||||
## 配置hosts
|
||||
|
||||
```bash
|
||||
cat <<EOF >>/etc/hosts
|
||||
#私有仓库地址
|
||||
192.168.0.248 registry.bing89.com
|
||||
#kubernetes cluster nodes
|
||||
192.168.0.201 k8smaster1
|
||||
192.168.0.202 k8smaster2
|
||||
192.168.0.203 k8smaster3
|
||||
192.168.0.211 k8snode1
|
||||
192.168.0.212 k8snode2
|
||||
192.168.0.213 k8snode3
|
||||
192.168.0.221 etcd1
|
||||
192.168.0.222 etcd2
|
||||
192.168.0.223 etcd3
|
||||
EOF
|
||||
```
|
||||
|
||||
## 配置ssh免密登录
|
||||
|
||||
***若不进行此配置,可能需要频繁输入密码***
|
||||
|
||||
```bash
|
||||
HOSTS=(k8smaster1 k8smaster2 k8smaster3 k8snode1 k8snode2 k8snode3)
|
||||
ssh-keygen
|
||||
for host in ${HOSTS[@]};do ssh-copyid ${host}; done
|
||||
```
|
||||
|
||||
## 安装tc
|
||||
|
||||
***不安装可能会出现`[WARNING FileExisting-tc]: tc not found in system path`***
|
||||
|
||||
```bash
|
||||
yum install iproute-tc
|
||||
```
|
||||
|
||||
## 配置ipvs内核模块
|
||||
|
||||
***如果不安装高可用集群,可以不配置***
|
||||
|
||||
```bash
|
||||
cat >>/etc/profile<<EOF
|
||||
modprobe ip_vs
|
||||
modprobe ip_vs_rr
|
||||
modprobe ip_vs_wrr
|
||||
modprobe ip_vs_sh
|
||||
modprobe nf_conntrack
|
||||
EOF
|
||||
source /etc/profile
|
||||
```
|
||||
|
||||
## 安装软件包
|
||||
|
||||
由于kubernetes已经放弃了docker兼容,这里是用containerd的内置cri插件作为容器运行时(CRI).
|
||||
|
||||
### 安装containerd
|
||||
|
||||
参见[安装containerd](containerd.md)
|
||||
|
||||
### 安装kubelet,kubeadm,kubectl
|
||||
|
||||
```bash
|
||||
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
|
||||
[kubernetes]
|
||||
name=Kubernetes
|
||||
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
repo_gpgcheck=1
|
||||
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
|
||||
EOF
|
||||
yum install -y kubelet kubeadm kubectl
|
||||
```
|
|
@ -0,0 +1,133 @@
|
|||
# Containerd 安装配置与管理
|
||||
|
||||
使用[containerd](https://github.com/containerd/cri)的内置CRI插件作为kubernetes CRI
|
||||
|
||||
***注意:本文档仅在1.4.x版本上测试通过***
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
#使用aliyun的docker-ce镜像源,方便快速安装最新版containerd
|
||||
yum install -y yum-utils device-mapper-persistent-data lvm2 wget
|
||||
wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
|
||||
yum makecache fast
|
||||
yum install -y containerd.io
|
||||
```
|
||||
|
||||
|
||||
## 配置
|
||||
|
||||
containerd 的配置文件位于`/etc/containerd/config.toml`,若系统种还没有这个文件,执行以下命令生成
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /etc/containerd
|
||||
containerd config default | sudo tee /etc/containerd/config.toml
|
||||
```
|
||||
|
||||
### 配置 cri
|
||||
|
||||
1. cgroup driver 为systemd
|
||||
|
||||
2. sandbox image为私有仓库镜像
|
||||
|
||||
3. 私有镜像仓库不验证证书
|
||||
|
||||
```bash
|
||||
[plugins]
|
||||
[plugins."io.containerd.grpc.v1.cri"]
|
||||
sandbox_image = "registry.bing89.com/kubernetes/pause:3.2"
|
||||
#systemd_cgroup = true 似乎不起作用
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
SystemdCgroup = true
|
||||
```
|
||||
```bash
|
||||
[plugins]
|
||||
[plugins."io.containerd.grpc.v1.cri"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
||||
endpoint = ["https://pqbap4ya.mirror.aliyuncs.com"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.bing89.com"]
|
||||
endpoint = ["https://registry.bing89.com"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs."registry.bing89.com".tls]
|
||||
insecure_skip_verify = true
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs."registry.bing89.com".auth]
|
||||
username = "xxxx"
|
||||
password = "xxxx"
|
||||
```
|
||||
### 配置cni
|
||||
|
||||
创建网桥
|
||||
|
||||
```bash
|
||||
cat <<EOF >/etc/sysconfig/network-scripts/ifcfg-brcontainerd0
|
||||
TYPE="Bridge"
|
||||
UUID="ba72d9bd-9be9-4a87-a587-ee9e070052d2"
|
||||
DEVICE="brcontainer0"
|
||||
ONBOOT="yes"
|
||||
BOOTPROTO="none"
|
||||
EOF
|
||||
#重启network
|
||||
systemctl restart network
|
||||
#used in rockylinux 8.5
|
||||
nmcli connection reload
|
||||
```
|
||||
|
||||
添加cni网络配置
|
||||
|
||||
```bash
|
||||
mkdir /etc/cni/net.d -p
|
||||
cat <<EOF >/etc/cni/net.d/172-my.conf
|
||||
{
|
||||
"cniVersion": "0.2.0",
|
||||
"name": "mynet",
|
||||
"type": "bridge",
|
||||
"bridge": "brcontainer0",
|
||||
"isGateway": true,
|
||||
"ipMasq": true,
|
||||
"ipam": {
|
||||
"type": "host-local",
|
||||
"subnet": "172.17.0.0/16",
|
||||
"routes": [
|
||||
{ "dst": "0.0.0.0/0" }
|
||||
],
|
||||
"dataDir": "/run/ipam-state"
|
||||
},
|
||||
"dns": {
|
||||
"nameservers": [ "223.5.5.5", "223.6.6.6", "114.114.114.114" ]
|
||||
}
|
||||
}
|
||||
EOF
|
||||
```
|
||||
### 应用配置
|
||||
|
||||
重启containerd使配置生效
|
||||
|
||||
```bash
|
||||
systemctl daemon-reload && systemctl restart containerd
|
||||
```
|
||||
|
||||
### 配置critrl
|
||||
|
||||
crictl是containerd的管理工具,类似于docker-client
|
||||
|
||||
```bash
|
||||
cat <<EOF >/etc/crictl.yaml
|
||||
runtime-endpoint: unix:///run/containerd/containerd.sock
|
||||
image-endpoint: unix:///run/containerd/containerd.sock
|
||||
timeout: 10
|
||||
debug: false
|
||||
EOF
|
||||
```
|
||||
|
||||
## 使用ctr运行一个容器
|
||||
|
||||
```bash
|
||||
ctr run --mount type=bind,src=/etc/nginx/nginx.conf,dst=/etc/nginx/nginx.conf,options=rbind:ro --mount type=bind,src=/etc/nginx/conf.d,dst=/etc/nginx/conf.d,options=rbind:ro --memory-limit 1024000000 --net-host -d docker.io/library/nginx:1.9 nginx
|
||||
|
||||
```
|
|
@ -0,0 +1,155 @@
|
|||
# crictl
|
||||
crictl 是一个开源的container runtime 管理工具。
|
||||
|
||||
## 安装crictl
|
||||
|
||||
crictl是kubeadmin的依赖包,安装kubeadm会自动安装cri-tools包
|
||||
|
||||
也可以安装指定版本
|
||||
|
||||
```bash
|
||||
VERSION="v1.20.0"
|
||||
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz
|
||||
sudo tar zxvf crictl-$VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
||||
rm -f crictl-$VERSION-linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
***21-12-09更新,crictl 工具 1.19版(k8s1.23)已经无法兼容containerd 1.4,Redhat8库里面的是1.4无法正常使用,需要安装1.5版本***
|
||||
|
||||
## 配置crictl
|
||||
|
||||
配置文件位于`/etc/crictl.yaml`
|
||||
|
||||
docker
|
||||
|
||||
```bash
|
||||
runtime-endpoint: unix:///var/run/dockershim.sock
|
||||
image-endpoint: unix:///var/run/dockershim.sock
|
||||
timeout: 2
|
||||
debug: true
|
||||
pull-image-on-create: false
|
||||
```
|
||||
|
||||
containerd
|
||||
|
||||
```bash
|
||||
cat <<EOF >/etc/crictl.yaml
|
||||
runtime-endpoint: unix:///run/containerd/containerd.sock
|
||||
image-endpoint: unix:///run/containerd/containerd.sock
|
||||
timeout: 10
|
||||
debug: false
|
||||
EOF
|
||||
```
|
||||
|
||||
## 创建pod
|
||||
|
||||
编写pod配置,需要两个json文件或两个yaml文件
|
||||
|
||||
pod.json
|
||||
|
||||
```json
|
||||
{
|
||||
"metadata": {
|
||||
"name": "nginx-sandbox",
|
||||
"namespace": "default",
|
||||
"attempt": 1,
|
||||
"uid": "hdishd83djaidwnduwk28bcsb"
|
||||
},
|
||||
"log_directory": "/tmp",
|
||||
"linux": {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
container.json
|
||||
|
||||
```json
|
||||
{
|
||||
"metadata": {
|
||||
"name": "busybox"
|
||||
},
|
||||
"image":{
|
||||
"image": "busybox"
|
||||
},
|
||||
"command": [
|
||||
"top"
|
||||
],
|
||||
"log_path":"busybox.0.log",
|
||||
"linux": {
|
||||
}
|
||||
}
|
||||
```
|
||||
pod.yaml
|
||||
|
||||
```yaml
|
||||
metadata:
|
||||
attempt: 1
|
||||
name: busybox-sandbox
|
||||
namespace: default
|
||||
uid: hdishd83djaidwnduwk28bcsb
|
||||
log_directory: /tmp
|
||||
linux:
|
||||
namespaces:
|
||||
options: {}
|
||||
```
|
||||
|
||||
container.yaml
|
||||
|
||||
```yaml
|
||||
metadata:
|
||||
name: busybox
|
||||
image:
|
||||
image: busybox:latest
|
||||
command:
|
||||
- top
|
||||
log_path: busybox.0.log
|
||||
```
|
||||
|
||||
执行命令
|
||||
|
||||
```bash
|
||||
crictl runp container.json pod.json
|
||||
#crictl runp container.yaml pod.yaml
|
||||
```
|
||||
|
||||
## nginx
|
||||
|
||||
container.yaml
|
||||
|
||||
```yaml
|
||||
metadata:
|
||||
name: nginx
|
||||
image:
|
||||
image: nginx:1.19
|
||||
log_path: nginx.0.log
|
||||
mounts:
|
||||
- container_path: /etc/nginx/nginx.conf
|
||||
host_path: /etc/nginx/nginx.conf
|
||||
readonly: true
|
||||
- container_path: /etc/nginx/conf.d
|
||||
host_path: /etc/nginx/conf.d
|
||||
readonly: true
|
||||
linux:
|
||||
namespaces:
|
||||
options: {}
|
||||
```
|
||||
|
||||
pod.yaml
|
||||
|
||||
```yaml
|
||||
metadata:
|
||||
attempt: 1
|
||||
name: nginx-pod
|
||||
namespace: default
|
||||
log_directory: /tmp/nginx
|
||||
linux:
|
||||
namespaces:
|
||||
options: {}
|
||||
port_mappings:
|
||||
- host_port: 80
|
||||
container_port: 80
|
||||
host_ip: 0.0.0.0
|
||||
- host_port: 443
|
||||
container_port: 443
|
||||
host_ip: 0.0.0.0
|
||||
```
|
|
@ -0,0 +1,141 @@
|
|||
# 使用kubeadm安装基于外部etcd集群的kubernetes
|
||||
|
||||
安装之前,请确认已经按要求准备好正确数量的节点(最低6个,推荐9个)并已经根据[配置运行环境](config_run_env.md)完成了环境配置。
|
||||
|
||||
**注意:本文档所有安装操作均在第一个controllplane节点完成**
|
||||
|
||||
## 使用kubeadm安装配置外部etcd集群
|
||||
|
||||
### 创建配置
|
||||
|
||||
参照[kubeadm 配置示例](kubeadm_config_example.md)创建与准备好的节点符合的配置,每个节点都有各自的配置。配置创建好之后放置于`/tmp/${HOST_IP}`目录下
|
||||
|
||||
### 创建证书
|
||||
|
||||
需要为每个节点创建证书。
|
||||
|
||||
重置当前节点,避免有未清理干净的以前安装的集群
|
||||
|
||||
```bash
|
||||
kubeadm reset -f
|
||||
```
|
||||
|
||||
生成证书颁发机构
|
||||
|
||||
```bash
|
||||
kubeadm init phase certs etcd-ca
|
||||
```
|
||||
|
||||
为每个节点创建证书
|
||||
|
||||
```bash
|
||||
ETCD_HOSTS=(192.168.0.211 192.168.0.212 192.168.0.213)
|
||||
for HOST in ${ETCD_HOSTS[@]};
|
||||
do
|
||||
kubeadm init phase certs etcd-server --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs etcd-peer --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs etcd-healthcheck-client --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs apiserver-etcd-client --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
cp -R /etc/kubernetes/pki /tmp/${HOST}/
|
||||
# 清理不可重复使用的证书
|
||||
find /etc/kubernetes/pki -not -name ca.crt -not -name ca.key -type f -delete
|
||||
# 清理不应从此主机复制的证书
|
||||
find /tmp/${HOST} -name ca.key -type f -delete
|
||||
done
|
||||
```
|
||||
|
||||
### 初始化etcd
|
||||
|
||||
```bash
|
||||
scp -r /tmp/kubelet.service.d ${HOST}:/etc/systemd/system/
|
||||
scp -r /tmp/${HOST}/* ${HOST}:/tmp
|
||||
ssh ${HOST} "systemctl daemon-reload"
|
||||
ssh ${HOST} "kubeadm reset -f && rsync -ivhPr /tmp/pki /etc/kubernetes/"
|
||||
ssh ${HOST} "systemctl restart kubelet && kubeadm init phase etcd local --config=/tmp/etcdcfg.yaml"
|
||||
```
|
||||
|
||||
### 验证安装
|
||||
|
||||
```bash
|
||||
docker run --rm -it --net host -v /etc/kubernetes:/etc/kubernetes registry.bing89.com/kubernetes/etcd:3.4.13-0 etcdctl --cert /etc/kubernetes/pki/etcd/peer.crt --key /etc/kubernetes/pki/etcd/peer.key --cacert /etc/kubernetes/pki/etcd/ca.crt --endpoints https://192.168.0.211:2379 endpoint health --cluster
|
||||
```
|
||||
|
||||
***如果没有安装docker,可能需要创建pod的json配置,并使用crictl(参考[Containerd 安装配置与管理](containerd.md))来验证***
|
||||
|
||||
## 安装配置haproxy
|
||||
|
||||
kubernetes可以使用keepalived、haproxy、kube-vip来实现apiserver的高可用,这里使用haproxy。
|
||||
|
||||
参考[haproxy安装与配置](install_haproxy.md)完成haproxy的配置。
|
||||
|
||||
## 初始化第一个ControlPlane节点
|
||||
|
||||
### 创建controlplane节点配置
|
||||
|
||||
参照[kubeadm 配置示例](kubeadm_config_example.md)创建与准备好的节点符合的配置,只需要一份配置。
|
||||
|
||||
### 备份并重置节点
|
||||
|
||||
```bash
|
||||
if [ -f /etc/kubernetes/manifests/haproxy.yaml ];then
|
||||
cp /etc/kubernetes/manifests/haproxy.yaml /tmp/haproxy.yaml.backup
|
||||
fi
|
||||
if [ -f /etc/kubernetes/pki/ca.crt ];then
|
||||
cp /etc/kubernetes/pki/ca.crt /tmp/ca.crt.backup
|
||||
fi
|
||||
if [ -f /etc/kubernetes/pki/ca.key ];then
|
||||
cp /etc/kubernetes/pki/ca.key /tmp/ca.key.backup
|
||||
fi
|
||||
kubeadm reset -f
|
||||
```
|
||||
|
||||
### 复制etcd证书
|
||||
|
||||
```bash
|
||||
ETCD_HOST1=192.168.0.211
|
||||
if [ ! -d /etc/kubernetes/pki/etcd]
|
||||
mkdir /etc/kubernetes/pki/etcd
|
||||
fi
|
||||
scp /tmp/${ETCD_HOST1}/pki/etcd/ca.crt /etc/kubernetes/pki/etcd/ca.crt
|
||||
scp /tmp/${ETCD_HOST1}/pki/apiserver-etcd-client.crt /etc/kubernetes/pki/apiserver-etcd-client.crt
|
||||
scp /tmp/${ETCD_HOST1}/pki/apiserver-etcd-client.key /etc/kubernetes/pki/apiserver-etcd-client.key
|
||||
scp /tmp/ca.key /etc/kubernetes/pki/ca.key
|
||||
scp /tmp/ca.crt /etc/kubernetes/pki/ca.crt
|
||||
```
|
||||
|
||||
### 初始化controlplane
|
||||
|
||||
```bash
|
||||
kubeadm init --config /tmp/kubeadmcfg.yaml --upload-certs
|
||||
```
|
||||
|
||||
### 还原haproxy 并重启kubelet
|
||||
|
||||
```bash
|
||||
if [ -f /tmp/haproxy.yaml.backup ];then
|
||||
cp /tmp/haproxy.yaml.backup /etc/kubernetes/manifests/haproxy.yaml
|
||||
systemctl restart kubelet
|
||||
fi
|
||||
```
|
||||
|
||||
## 加入其他controlplane节点
|
||||
|
||||
备份并重置节点
|
||||
|
||||
```bash
|
||||
if [ -f /etc/kubernetes/manifests/haproxy.yaml ];then
|
||||
cp /etc/kubernetes/manifests/haproxy.yaml /tmp/haproxy.yaml.backup
|
||||
fi
|
||||
kubeadm reset -f
|
||||
```
|
||||
|
||||
使用kubeadm join... 指令加入集群
|
||||
|
||||
还原haproxy 并重启kubelet
|
||||
|
||||
```
|
||||
if [ -f /tmp/haproxy.yaml.backup ];then
|
||||
cp /tmp/haproxy.yaml.backup /etc/kubernetes/manifests/haproxy.yaml
|
||||
systemctl restart kubelet
|
||||
fi
|
||||
```
|
|
@ -0,0 +1,62 @@
|
|||
# 使用kubeadm安装基于堆叠etcd的kubernetes
|
||||
|
||||
安装之前,请确认已经按要求准备好正确数量的节点(最低3个,推荐6个)并已经根据[配置运行环境](config_run_env.md)完成了环境配置。
|
||||
|
||||
## 安装配置haproxy
|
||||
|
||||
kubernetes可以使用keepalived、haproxy、kube-vip来实现apiserver的高可用,这里使用haproxy。
|
||||
|
||||
参考[haproxy安装与配置](install_haproxy.md)完成haproxy的配置。
|
||||
|
||||
## 创建配置
|
||||
|
||||
参照[kubeadm 配置示例](kubeadm_config_example.md)创建与准备好的节点符合的配置,每个节点都有各自的配置。配置创建好之后放置于`/tmp/${HOST_IP}`目录下
|
||||
|
||||
## 初始化第一个controlplane
|
||||
|
||||
备份并重置节点
|
||||
|
||||
```bash
|
||||
if [ -f /etc/kubernetes/manifests/haproxy.yaml ];then
|
||||
cp /etc/kubernetes/manifests/haproxy.yaml /tmp/haproxy.yaml.backup
|
||||
fi
|
||||
kubeadm reset -f
|
||||
```
|
||||
|
||||
初始化controlplane
|
||||
|
||||
```bash
|
||||
kubeadm init --config /tmp/kubeadmcfg.yaml
|
||||
```
|
||||
|
||||
还原haproxy 并重启kubelet
|
||||
|
||||
```bash
|
||||
if [ -f /tmp/haproxy.yaml.backup ];then
|
||||
cp /tmp/haproxy.yaml.backup /etc/kubernetes/manifests/haproxy.yaml
|
||||
systemctl restart kubelet
|
||||
fi
|
||||
```
|
||||
|
||||
## 初始化其他节点
|
||||
|
||||
备份并重置节点
|
||||
|
||||
```bash
|
||||
if [ -f /etc/kubernetes/manifests/haproxy.yaml ];then
|
||||
cp /etc/kubernetes/manifests/haproxy.yaml /tmp/haproxy.yaml.backup
|
||||
fi
|
||||
kubeadm reset -f
|
||||
```
|
||||
|
||||
使用kubeadm join... 指令加入集群
|
||||
|
||||
还原haproxy 并重启kubelet
|
||||
|
||||
```bash
|
||||
if [ -f /tmp/haproxy.yaml.backup ];then
|
||||
cp /tmp/haproxy.yaml.backup /etc/kubernetes/manifests/haproxy.yaml
|
||||
systemctl restart kubelet
|
||||
fi
|
||||
```
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
# haproxy安装与配置
|
||||
|
||||
安装之前,请确认已经按要求准备好正确数量的节点并已经根据[配置运行环境](config_run_env.md)完成了环境配置。
|
||||
|
||||
**若无特别说明,本文档所述操作,均在第一个controlplane节点上执行。**
|
||||
|
||||
## 安装软件
|
||||
|
||||
```bash
|
||||
export HA_HOSTS=(192.168.0.201 192.168.0.202 192.168.0.203)
|
||||
export VIP=192.168.0.200
|
||||
export HAPASSWORD="hapassword2020"
|
||||
export HOST_PREFIX="k8smaster"
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "yum install corosync pacemaker pcs fence-agents resource-agents -y && systemctl enable --now pcsd"
|
||||
done
|
||||
```
|
||||
|
||||
## 创建VIP
|
||||
|
||||
```bash
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "echo ${HAPASSWORD} | passwd --stdin hacluster && pcs cluster auth -u hacluster -p ${HAPASSWORD} ${HA_HOSTS}"
|
||||
ssh ${HOST} "pcs cluster setup --start --name k8s_cluster ${HA_HOSTS}"
|
||||
ssh ${HOST} "pcs cluster enable --all && pcs cluster start --all && pcs cluster status && pcs status corosync"
|
||||
ssh ${HOST} "pcs property set stonith-enabled=false && pcs property set no-quorum-policy=ignore && crm_verify -L -V"
|
||||
done
|
||||
ssh ${HA_HOSTS[0]} "pcs resource create vip ocf:heartbeat:IPaddr2 ip=${VIP} cidr_netmask=28 op monitor interval=28s"
|
||||
```
|
||||
|
||||
## 创建haproxy配置
|
||||
|
||||
```bash
|
||||
#haproxy 配置
|
||||
cat <<EOF >/tmp/haproxy.cfg
|
||||
# /etc/haproxy/haproxy.cfg
|
||||
#---------------------------------------------------------------------
|
||||
# Global settings
|
||||
#---------------------------------------------------------------------
|
||||
global
|
||||
log /dev/log local0
|
||||
log /dev/log local1 notice
|
||||
daemon
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# common defaults that all the 'listen' and 'backend' sections will
|
||||
# use if not designated in their block
|
||||
#---------------------------------------------------------------------
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
option httplog
|
||||
option dontlognull
|
||||
option http-server-close
|
||||
option forwardfor except 127.0.0.0/8
|
||||
option redispatch
|
||||
retries 1
|
||||
timeout http-request 10s
|
||||
timeout queue 20s
|
||||
timeout connect 5s
|
||||
timeout client 20s
|
||||
timeout server 20s
|
||||
timeout http-keep-alive 10s
|
||||
timeout check 10s
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# apiserver frontend which proxys to the masters
|
||||
#---------------------------------------------------------------------
|
||||
frontend apiserver
|
||||
bind *:8443
|
||||
mode tcp
|
||||
option tcplog
|
||||
default_backend apiserver
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# round robin balancing for apiserver
|
||||
#---------------------------------------------------------------------
|
||||
backend apiserver
|
||||
option httpchk GET /healthz
|
||||
http-check expect status 200
|
||||
mode tcp
|
||||
option ssl-hello-chk
|
||||
balance roundrobin
|
||||
EOF
|
||||
INDEX=0
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
echo " server ${HOST} ${HOST_PREFIX}${INDEX}:6443 weight 1 maxconn 1000 check inter 2000 rise 2 fall 3\n" >> /tmp/haproxy.cfg
|
||||
INDEX=$(expr ${INDEX} + 1)
|
||||
done
|
||||
#haproxy pod配置
|
||||
cat <<EOF >/tmp/haproxy.yaml
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: haproxy
|
||||
namespace: kube-system
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.bing89.com/dockerhub/haproxy:lts-alpine
|
||||
name: haproxy
|
||||
livenessProbe:
|
||||
failureThreshold: 8
|
||||
httpGet:
|
||||
host: localhost
|
||||
path: /healthz
|
||||
port: 8443
|
||||
scheme: HTTPS
|
||||
volumeMounts:
|
||||
- mountPath: /usr/local/etc/haproxy/haproxy.cfg
|
||||
name: haproxyconf
|
||||
readOnly: true
|
||||
hostNetwork: true
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /etc/haproxy/haproxy.cfg
|
||||
type: FileOrCreate
|
||||
name: haproxyconf
|
||||
EOF
|
||||
```
|
||||
|
||||
## 配置并启动haproxy
|
||||
|
||||
```bash
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "if [ ! -d /etc/haproxy ];then mkdir /etc/haproxy; fi"
|
||||
scp /tmp/haproxy.cfg ${HOST}:/etc/haproxy/haproxy.cfg
|
||||
scp /tmp/haproxy.yaml ${HOST}:/etc/kubernetes/manifests/haproxy.yaml
|
||||
ssh ${HOST} "systemctl restart kubelet"
|
||||
done
|
||||
```
|
|
@ -0,0 +1,101 @@
|
|||
# kubeadm 配置示例
|
||||
|
||||
## 单ControlPlane节点
|
||||
|
||||
```yaml
|
||||
# 配置kubelet使用systemd作为cgroups驱动
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: stable
|
||||
controlPlaneEndpoint: "192.168.0.200:8443"
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
networking:
|
||||
podSubnet: 10.244.0.0/16
|
||||
```
|
||||
|
||||
## 基于堆叠etcd的cluster
|
||||
|
||||
```yaml
|
||||
# 配置kubelet使用systemd作为cgroups驱动
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: stable
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
controlPlaneEndpoint: 192.168.0.200:8443
|
||||
apiServer:
|
||||
certSANs:
|
||||
- "k8smaster1"
|
||||
- "k8smaster2"
|
||||
- "k8smaster3"
|
||||
- "192.168.0.200"
|
||||
- "192.168.0.201"
|
||||
- "192.168.0.202"
|
||||
- "192.168.0.203"
|
||||
networking:
|
||||
podSubnet: 10.244.0.0/16
|
||||
|
||||
---
|
||||
#配置kubeproxy使用ipvs。似乎不配置也行
|
||||
apiVersion: kubeproxy.config.k8s.io/v1alpha1
|
||||
kind: KubeProxyConfiguration
|
||||
mode: ipvs
|
||||
EOF
|
||||
```
|
||||
|
||||
## 基于外部etcd集群的cluster
|
||||
|
||||
```yaml
|
||||
# 配置kubelet使用systemd作为cgroups驱动
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: stable
|
||||
controlPlaneEndpoint: "192.168.0.200:8443"
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
etcd:
|
||||
external:
|
||||
endpoints: ["https://192.168.0.211:2379","https://192.168.0.212:2379","https://192.168.0.213:2379"]
|
||||
caFile: /etc/kubernetes/pki/etcd/ca.crt
|
||||
certFile: /etc/kubernetes/pki/apiserver-etcd-client.crt
|
||||
keyFile: /etc/kubernetes/pki/apiserver-etcd-client.key
|
||||
apiServer:
|
||||
certSANs: ["192.168.0.201","192.168.0.202","192.168.0.203"]
|
||||
```
|
||||
|
||||
## 外部etcd集群配置
|
||||
|
||||
```yaml
|
||||
# 配置kubelet使用systemd作为cgroups驱动
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: "kubeadm.k8s.io/v1beta2"
|
||||
kind: ClusterConfiguration
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
etcd:
|
||||
local:
|
||||
serverCertSANs:
|
||||
- "192.168.0.211"
|
||||
peerCertSANs:
|
||||
- "192.168.0.211"
|
||||
extraArgs:
|
||||
initial-cluster: infra0=https://192.168.0.211:2380,infra1=https://192.168.0.212:2380,infra2=https://192.168.0.213:2380
|
||||
initial-cluster-state: new
|
||||
name: infra0
|
||||
listen-peer-urls: https://192.168.0.211:2380
|
||||
listen-client-urls: https://192.168.0.211:2379
|
||||
advertise-client-urls: https://192.168.0.211:2379
|
||||
initial-advertise-peer-urls: https://192.168.0.211:2380
|
||||
```
|
|
@ -0,0 +1,19 @@
|
|||
# 安装metrics server
|
||||
|
||||
```bash
|
||||
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
|
||||
```
|
||||
|
||||
如果出现错误`unable to fully scrape metrics from node` 或 `x509: cannot validate certificate for 10.0.1.41 because it doesn't contain any IP SANs`, 在配置文件中添加启动参数`--kubelet-insecure-tls`
|
||||
|
||||
```yaml
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- --cert-dir=/tmp
|
||||
- --secure-port=4443
|
||||
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
|
||||
- --kubelet-use-node-status-port
|
||||
- --kubelet-insecure-tls #这里是新增的
|
||||
image: registry.bing89.com/kubernetes/metrics-server:v0.4.1
|
||||
```
|
|
@ -0,0 +1,13 @@
|
|||
# 安装Prometheus监控
|
||||
|
||||
使用项目 :[kube-prometheus](https://github.com/prometheus-operator/kube-prometheus.git)
|
||||
|
||||
选择版本可用的release版本。
|
||||
|
||||
执行命令
|
||||
|
||||
```bash
|
||||
kubectl create -f manifests/setup
|
||||
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
|
||||
kubectl create -f manifests/
|
||||
```
|
|
@ -0,0 +1,44 @@
|
|||
# 安装kubernetes集群
|
||||
|
||||
本文档使用centos7.2009作为基础操作系统,使用kubeadm为安装工具。可以使用本文档逐步操作安装kubernetes集群,也可使用自动化安装脚本[install.sh](scripts/readme.md)来快速安装。
|
||||
|
||||
安装不同配置的集群需要不同的节点数,每节点CPU核心不低于2,内存不少于2GB,至多需要9个节点。
|
||||
|
||||
本文档使用192.168.0.0/24 为节点网络。
|
||||
|
||||
## 环境配置
|
||||
|
||||
使用[配置运行环境](config_run_env.md)文档来配置运行环境,建议所有节点使用完全一致的配置。
|
||||
|
||||
## 创建kubeadm配置
|
||||
|
||||
参照[kubeadm配置示例](kubeadm_config_example.md)创建正确的集群配置。
|
||||
|
||||
## 初始化集群
|
||||
|
||||
### 初始化单controlplane节点集群
|
||||
|
||||
```bash
|
||||
kubeadm init --config /etc/kubernetes/kubeadmcfg.yaml
|
||||
```
|
||||
如果只为集群准备了一个节点,需要取消节点的污点标记,用于调度pod。
|
||||
|
||||
```bash
|
||||
kubectl taint nodes --all node-role.kubernetes.io/master-
|
||||
```
|
||||
|
||||
### 初始化基于堆叠etcd的集群
|
||||
|
||||
参照[使用kubeadm安装基于堆叠etcd的kubernetes](install_cluster_with_stacked_etcd.md)
|
||||
|
||||
### 初始化基于外部etcd集群的集群
|
||||
|
||||
参照[使用kubeadm安装基于外部etcd集群的kubernetes](install_cluster_with_outside_etcd.md)
|
||||
|
||||
## 安装网络
|
||||
|
||||
### 安装calico
|
||||
|
||||
```bash
|
||||
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
|
||||
```
|
|
@ -0,0 +1,366 @@
|
|||
#!/bin/bash
|
||||
|
||||
##
|
||||
HAPASSWORD="4orLcyKqDFWrmGlQ"
|
||||
|
||||
init_etcd(){
|
||||
echo "init etcd cluster: $@"
|
||||
echo "create config files..."
|
||||
kubeadm reset -f
|
||||
if [ ! -d /tmp/kubelet.service.d ];then
|
||||
mkdir /tmp/kubelet.service.d
|
||||
fi
|
||||
cat << EOF > /tmp/kubelet.service.d/20-etcd-service-manager.conf
|
||||
[Service]
|
||||
ExecStart=
|
||||
# Replace "systemd" with the cgroup driver of your container runtime. The default value in the kubelet is "cgroupfs".
|
||||
ExecStart=/usr/bin/kubelet --container-runtime=remote --container-runtime-endpoint=unix:///run/containerd/containerd.sock --address=127.0.0.1 --pod-manifest-path=/etc/kubernetes/manifests --pod-infra-container-image=registry.bing89.com/kubernetes/pause:3.2
|
||||
Restart=always
|
||||
EOF
|
||||
if [[ -f etc/kubernetes/pki/etcd/ca.crt ]] && [[ -f etc/kubernetes/pki/etcd/ca.key ]];then
|
||||
echo 'using exists key.'
|
||||
else
|
||||
if [[ -f etc/kubernetes/pki/etcd/ca.crt ]] || [[ -f etc/kubernetes/pki/etcd/ca.key ]]; then
|
||||
echo 'ssl key config error, maybe there one key is exists. exit '
|
||||
exit 2
|
||||
fi
|
||||
echo 'init kubernetes ssh keys'
|
||||
kubeadm init phase certs etcd-ca
|
||||
fi
|
||||
NAME_PREFIX="infra"
|
||||
INDEX=0
|
||||
INIT_CLUSTERS=""
|
||||
for ETCD_HOST in $@; do
|
||||
if [ "x${INIT_CLUSTERS}" == "x" ]; then
|
||||
INIT_CLUSTERS="${NAME_PREFIX}${INDEX}=https://${ETCD_HOST}:2380"
|
||||
else
|
||||
INIT_CLUSTERS="${INIT_CLUSTERS},${NAME_PREFIX}${INDEX}=https://${ETCD_HOST}:2380"
|
||||
fi
|
||||
INDEX=$(expr ${INDEX} + 1)
|
||||
done
|
||||
echo "init_clusters: ${INIT_CLUSTERS}"
|
||||
INDEX=0
|
||||
for HOST in ${@};
|
||||
do
|
||||
if [ ! -d /tmp/${HOST} ];then
|
||||
mkdir /tmp/${HOST}
|
||||
else
|
||||
rm -rf /tmp/${HOST}/*
|
||||
fi
|
||||
cat <<EOF >/tmp/${HOST}/etcdcfg.yaml
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: "kubeadm.k8s.io/v1beta2"
|
||||
kind: ClusterConfiguration
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
etcd:
|
||||
local:
|
||||
serverCertSANs:
|
||||
- "${HOST}"
|
||||
peerCertSANs:
|
||||
- "${HOST}"
|
||||
extraArgs:
|
||||
initial-cluster: ${INIT_CLUSTERS}
|
||||
initial-cluster-state: new
|
||||
name: ${NAME_PREFIX}${INDEX}
|
||||
listen-peer-urls: https://${HOST}:2380
|
||||
listen-client-urls: https://${HOST}:2379
|
||||
advertise-client-urls: https://${HOST}:2379
|
||||
initial-advertise-peer-urls: https://${HOST}:2380
|
||||
EOF
|
||||
|
||||
kubeadm init phase certs etcd-server --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs etcd-peer --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs etcd-healthcheck-client --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
kubeadm init phase certs apiserver-etcd-client --config=/tmp/${HOST}/etcdcfg.yaml
|
||||
cp -R /etc/kubernetes/pki /tmp/${HOST}/
|
||||
# 清理不可重复使用的证书
|
||||
find /etc/kubernetes/pki -not -name ca.crt -not -name ca.key -type f -delete
|
||||
# 清理不应从此主机复制的证书
|
||||
if [ "x${INDEX}" != "x0" ];then
|
||||
find /tmp/${HOST} -name ca.key -type f -delete
|
||||
fi
|
||||
INDEX=$(expr ${INDEX} + 1)
|
||||
done
|
||||
echo "configure etcd hosts"
|
||||
for HOST in ${@};
|
||||
do
|
||||
scp -r /tmp/kubelet.service.d ${HOST}:/etc/systemd/system/
|
||||
scp -r /tmp/${HOST}/* ${HOST}:/tmp
|
||||
ssh ${HOST} "systemctl daemon-reload"
|
||||
ssh ${HOST} "kubeadm reset -f && rsync -ivhPr /tmp/pki /etc/kubernetes/"
|
||||
ssh ${HOST} "systemctl restart kubelet && kubeadm init phase etcd local --config=/tmp/etcdcfg.yaml"
|
||||
done
|
||||
echo "cluster init finished. use this command to check cluster status"
|
||||
echo "docker run --rm -it --net host -v /etc/kubernetes:/etc/kubernetes registry.bing89.com/kubernetes/etcd:3.4.13-0 etcdctl --cert /etc/kubernetes/pki/etcd/peer.crt --key /etc/kubernetes/pki/etcd/peer.key --cacert /etc/kubernetes/pki/etcd/ca.crt --endpoints https://${HOST}:2379 endpoint health --cluster"
|
||||
}
|
||||
|
||||
init_controller(){
|
||||
echo "init controller: $@"
|
||||
echo "warning: your kubelet will reset"
|
||||
echo "backup ha pod if exists"
|
||||
if [ -f /etc/kubernetes/manifests/haproxy.yaml ];then
|
||||
cp /etc/kubernetes/manifests/haproxy.yaml /tmp/haproxy.yaml.backup
|
||||
fi
|
||||
|
||||
|
||||
echo "creating kubeadm config file"
|
||||
ENDPOINTS="["
|
||||
for ETCD_HOST in ${ETCD_HOSTS[@]}; do
|
||||
if [ "x${ENDPOINTS}" == "x[" ];then
|
||||
ENDPOINTS="${ENDPOINTS}\"https://${ETCD_HOST}:2379\""
|
||||
else
|
||||
ENDPOINTS="${ENDPOINTS},\"https://${ETCD_HOST}:2379\""
|
||||
fi
|
||||
done
|
||||
ENDPOINTS="${ENDPOINTS}]"
|
||||
echo "etcd end points: ${ENDPOINTS}"
|
||||
APISERVERSANS="["
|
||||
for CONTROLLER_HOST in ${CONTROLLER_HOSTS[@]}
|
||||
do
|
||||
if [ "x${APISERVERSANS}" == "x[" ];then
|
||||
APISERVERSANS="${APISERVERSANS}\"${CONTROLLER_HOST}\""
|
||||
else
|
||||
APISERVERSANS="${APISERVERSANS},\"${CONTROLLER_HOST}\""
|
||||
fi
|
||||
done
|
||||
APISERVERSANS="${APISERVERSANS}]"
|
||||
cat <<EOF >/tmp/kubeadmcfg.yaml
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
cgroupDriver: systemd
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: ClusterConfiguration
|
||||
kubernetesVersion: stable
|
||||
controlPlaneEndpoint: "${APIHOST}:8443"
|
||||
imageRepository: registry.bing89.com/kubernetes
|
||||
etcd:
|
||||
external:
|
||||
endpoints: ${ENDPOINTS}
|
||||
caFile: /etc/kubernetes/pki/etcd/ca.crt
|
||||
certFile: /etc/kubernetes/pki/apiserver-etcd-client.crt
|
||||
keyFile: /etc/kubernetes/pki/apiserver-etcd-client.key
|
||||
apiServer:
|
||||
certSANs: ${APISERVERSANS}
|
||||
EOF
|
||||
|
||||
kubeadm reset -f
|
||||
echo "restore ha pod if exists"
|
||||
if [ -f /tmp/haproxy.yaml.backup ];then
|
||||
cp /tmp/haproxy.yaml.backup /etc/kubernetes/manifests/haproxy.yaml
|
||||
systemctl restart kubelet
|
||||
fi
|
||||
mkdir /etc/kubernetes/pki/etcd/
|
||||
scp /tmp/$1/pki/etcd/ca.crt /etc/kubernetes/pki/etcd/ca.crt
|
||||
scp /tmp/$1/pki/apiserver-etcd-client.crt /etc/kubernetes/pki/apiserver-etcd-client.crt
|
||||
scp /tmp/$1/pki/apiserver-etcd-client.key /etc/kubernetes/pki/apiserver-etcd-client.key
|
||||
kubeadm init --config /tmp/kubeadmcfg.yaml --upload-certs
|
||||
}
|
||||
|
||||
init_haproxy(){
|
||||
echo 'init haproxy'
|
||||
echo 'install pcs'
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "yum install corosync pacemaker pcs fence-agents resource-agents -y && systemctl enable --now pcsd"
|
||||
done
|
||||
echo 'config pcs'
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "echo ${HAPASSWORD} | passwd --stdin hacluster && pcs cluster auth -u hacluster -p ${HAPASSWORD} ${HA_HOSTS}"
|
||||
ssh ${HOST} "pcs cluster setup --start --name k8s_cluster ${HA_HOSTS}"
|
||||
ssh ${HOST} "pcs cluster enable --all && pcs cluster start --all && pcs cluster status && pcs status corosync"
|
||||
ssh ${HOST} "pcs property set stonith-enabled=false && pcs property set no-quorum-policy=ignore && crm_verify -L -V"
|
||||
done
|
||||
ssh ${HA_HOSTS[0]} "pcs resource create vip ocf:heartbeat:IPaddr2 ip=${APIHOSTS} cidr_netmask=28 op monitor interval=28s"
|
||||
|
||||
echo 'write haproxy config...'
|
||||
APISERVERS=""
|
||||
INDEX=1
|
||||
PREFIX="k8smaster"
|
||||
|
||||
cat <<EOF >/tmp/haproxy.cfg
|
||||
# /etc/haproxy/haproxy.cfg
|
||||
#---------------------------------------------------------------------
|
||||
# Global settings
|
||||
#---------------------------------------------------------------------
|
||||
global
|
||||
log /dev/log local0
|
||||
log /dev/log local1 notice
|
||||
daemon
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# common defaults that all the 'listen' and 'backend' sections will
|
||||
# use if not designated in their block
|
||||
#---------------------------------------------------------------------
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
option httplog
|
||||
option dontlognull
|
||||
option http-server-close
|
||||
option forwardfor except 127.0.0.0/8
|
||||
option redispatch
|
||||
retries 1
|
||||
timeout http-request 10s
|
||||
timeout queue 20s
|
||||
timeout connect 5s
|
||||
timeout client 20s
|
||||
timeout server 20s
|
||||
timeout http-keep-alive 10s
|
||||
timeout check 10s
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# apiserver frontend which proxys to the masters
|
||||
#---------------------------------------------------------------------
|
||||
frontend apiserver
|
||||
bind *:8443
|
||||
mode tcp
|
||||
option tcplog
|
||||
default_backend apiserver
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# round robin balancing for apiserver
|
||||
#---------------------------------------------------------------------
|
||||
backend apiserver
|
||||
option httpchk GET /healthz
|
||||
http-check expect status 200
|
||||
mode tcp
|
||||
option ssl-hello-chk
|
||||
balance roundrobin
|
||||
EOF
|
||||
INDEX=0
|
||||
for HOST in ${HA_HOSTS[@]}
|
||||
do
|
||||
echo " server ${HOST} ${CONTROLLER_HOSTS[${INDEX}]}:6443 weight 1 maxconn 1000 check inter 2000 rise 2 fall 3\n" >> /tmp/haproxy.cfg
|
||||
INDEX=$(expr ${INDEX} + 1)
|
||||
done
|
||||
echo "write haproxy pod yaml"
|
||||
cat <<EOF >/tmp/haproxy.yaml
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: haproxy
|
||||
namespace: kube-system
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.bing89.com/dockerhub/haproxy:lts-alpine
|
||||
name: haproxy
|
||||
livenessProbe:
|
||||
failureThreshold: 8
|
||||
httpGet:
|
||||
host: localhost
|
||||
path: /healthz
|
||||
port: 8443
|
||||
scheme: HTTPS
|
||||
volumeMounts:
|
||||
- mountPath: /usr/local/etc/haproxy/haproxy.cfg
|
||||
name: haproxyconf
|
||||
readOnly: true
|
||||
hostNetwork: true
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /etc/haproxy/haproxy.cfg
|
||||
type: FileOrCreate
|
||||
name: haproxyconf
|
||||
status: {}
|
||||
EOF
|
||||
for HOST in ${CONTROLLER_HOSTS[@]}
|
||||
do
|
||||
ssh ${HOST} "if [ ! -d /etc/haproxy ];then mkdir /etc/haproxy; fi"
|
||||
scp /tmp/haproxy.cfg ${HOST}:/etc/haproxy/haproxy.cfg
|
||||
scp /tmp/haproxy.yaml ${HOST}:/etc/kubernetes/manifests/haproxy.yaml
|
||||
done
|
||||
echo 'init haproxy finished'
|
||||
}
|
||||
|
||||
init_kube_vip(){
|
||||
echo "init kube_vip..."
|
||||
echo "exit"
|
||||
exit 0
|
||||
for HOST in ${CONTROLLER_HOSTS[@]}
|
||||
do
|
||||
if [ ! -d /tmp/${HOST}/kube-vip ]; then
|
||||
mkdir -p /tmp/${HOST}/kube-vip
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
init_network(){
|
||||
echo "init cni: $@"
|
||||
|
||||
}
|
||||
|
||||
USAGE_EXITS(){
|
||||
echo "this is help message."
|
||||
exit 1
|
||||
}
|
||||
|
||||
check_args(){
|
||||
if [ "x${ETCD_HOSTS}" == "x" ];then
|
||||
USAGE_EXITS
|
||||
fi
|
||||
if [ "x${CONTROLLER_HOSTS}" == "x" ];then
|
||||
USAGE_EXITS
|
||||
fi
|
||||
if [ "x${APIHOST}" == "x" ];then
|
||||
USAGE_EXITS
|
||||
fi
|
||||
}
|
||||
main(){
|
||||
COMMAND=$1
|
||||
shift
|
||||
while getopts "c:e:n:a:p:h" arg
|
||||
do
|
||||
case ${arg} in
|
||||
e)
|
||||
ETCD_HOSTS=(${OPTARG//,/ })
|
||||
;;
|
||||
c)
|
||||
CONTROLLER_HOSTS=(${OPTARG//,/ })
|
||||
;;
|
||||
n)
|
||||
NETWORK_CNI=${OPTARG}
|
||||
;;
|
||||
a)
|
||||
APIHOST=${OPTARG}
|
||||
;;
|
||||
p)
|
||||
HA_HOSTS=(${OPTARG//,/ })
|
||||
;;
|
||||
h)
|
||||
USAGE_EXITS
|
||||
;;
|
||||
esac
|
||||
done
|
||||
check_args
|
||||
case ${COMMAND} in
|
||||
etcd)
|
||||
# echo ${ETCD_HOSTS[0]}
|
||||
init_etcd ${ETCD_HOSTS[@]}
|
||||
;;
|
||||
controllplane)
|
||||
init_controller ${ETCD_HOSTS}
|
||||
;;
|
||||
network)
|
||||
init_network ${NETWORK_CNI}
|
||||
;;
|
||||
haproxy)
|
||||
init_haproxy
|
||||
;;
|
||||
kubevip)
|
||||
init_kube_vip
|
||||
;;
|
||||
help)
|
||||
USAGE_EXITS
|
||||
;;
|
||||
*)
|
||||
USAGE_EXITS
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
main $@
|
|
@ -0,0 +1,17 @@
|
|||
# install.sh 使用帮助
|
||||
|
||||
```bash
|
||||
install.sh [command] -c [controlplane_hosts] -e [etcd_hosts] -n [network_name] -a [apiserver_host] [-p [haproxy_hosts]] [-h]
|
||||
```
|
||||
## command
|
||||
|
||||
现在脚本支持以下命令
|
||||
|
||||
- etcd 初始化etcd集群 必须使用-e指定etcd集群的节点列表
|
||||
- controlplane 初始化controlplane 必须使用-e指定etcd集群的节点列表,-c 指定controlplane节点列表,-a 指定apiserver的IP地址或域名
|
||||
- network 安装网络,必须使用-n指定要安装的网络名称,***该功能暂未开发完成***
|
||||
- haproxy 初始化haproxy, 必须-c 指定controlplane节点列表, -p 指定haproxy节点列表,***暂时配置为haproxy与controlplane位于同一节点,所以两个列表需要一一对应。***
|
||||
|
||||
## args
|
||||
|
||||
节点列表使用`,`分隔,例如`192.168.1.2,192.168.1.3`或`node1,node2`
|
|
@ -0,0 +1,22 @@
|
|||
# ubuntu下安装kubernetes
|
||||
|
||||
添加key
|
||||
|
||||
```bash
|
||||
https_proxy=192.168.0.11:1080 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
|
||||
```
|
||||
|
||||
添加源
|
||||
|
||||
```bash
|
||||
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/kubernetes/apt kubernetes-xenial main
|
||||
EOF
|
||||
```
|
||||
|
||||
安装
|
||||
|
||||
```bash
|
||||
apt update && apt install docker.io kubelet kubectl kubeadm -y
|
||||
```
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# kubectl 命令自动填充配置
|
||||
|
||||
安装依赖
|
||||
|
||||
```bash
|
||||
yum install -y bash-completion
|
||||
```
|
||||
|
||||
生成自动完成配置
|
||||
|
||||
```bash
|
||||
kubectl completion bash >.kubectl
|
||||
```
|
||||
|
||||
添加配置到profile
|
||||
|
||||
```bash
|
||||
cat <<EOF >>~/.bashrc
|
||||
if [ -f ~/.kubectl ];then
|
||||
. ~/.kubectl
|
||||
fi
|
||||
EOF
|
||||
```
|
|
@ -0,0 +1,25 @@
|
|||
# kubeadm添加一个新的节点
|
||||
|
||||
首先获取证书的hash值, 这个值用于 `--discovery-token-ca-cert-hash`
|
||||
|
||||
```bash
|
||||
HASH=$(openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //')
|
||||
```
|
||||
|
||||
获取token, 这个值用于 `--token`
|
||||
|
||||
```bash
|
||||
kubeadm token list
|
||||
```
|
||||
|
||||
如果没有任何token列出,创建一个
|
||||
|
||||
```bash
|
||||
TOKEN=$(kubeadm token create)
|
||||
```
|
||||
|
||||
添加节点到集群
|
||||
|
||||
```bash
|
||||
kubeadm join k8smaster:6443 --token ${TOKEN} --discovery-token-ca-cert-hash sha256:${HASH}
|
||||
```
|
|
@ -0,0 +1,41 @@
|
|||
# 修改主节点IP地址
|
||||
|
||||
***本文只在单master节点上测试通过***
|
||||
|
||||
首先修改etcd和api-server的地址
|
||||
|
||||
```bash
|
||||
OLD_IP=""
|
||||
NEW_IP=""
|
||||
sed -e "s/${OLD_IP}/${NEW_IP}/g" -i /etc/kubernetes/manifests/etcd.yaml
|
||||
sed -e "s/${OLD_IP}/${NEW_IP}/g" -i /etc/kubernetes/manifests/kube-apiserver.yaml
|
||||
```
|
||||
|
||||
生成新的conf
|
||||
|
||||
```bash
|
||||
kubeadm init phase kubeconfig admin --apiserver-advertise-address ${NEW_IP}
|
||||
```
|
||||
|
||||
生成新的证书
|
||||
|
||||
```bash
|
||||
mv /etc/kubernetes/pki/apiserver.key /etc/kubernetes/pki/apiserver.key.bak
|
||||
mv /etc/kubernetes/pki/apiserver.crt /etc/kubernetes/pki/apiserver.crt.bak
|
||||
kubeadm init phase certs apiserver --apiserver-advertise-address 192.168.0.31
|
||||
```
|
||||
|
||||
重启服务
|
||||
|
||||
***由于docker已被kubernetes抛弃,这里使用的containerd,使用docker的旧版kubernetes要重启docker***
|
||||
|
||||
```bash
|
||||
systemctl restart containerd kubelet
|
||||
```
|
||||
|
||||
更新kubectl的管理conf
|
||||
|
||||
```bash
|
||||
rm -f ~/.kube/config
|
||||
cp /etc/kubernetes/admin.conf ~/.kube/config
|
||||
```
|
|
@ -0,0 +1,19 @@
|
|||
# 删除处于terminating状态无法删除的资源
|
||||
|
||||
以namespace为例
|
||||
|
||||
```bash
|
||||
cat <<EOF >/tmp/m.json
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Namespace",
|
||||
"metadata": {
|
||||
"name": "monitoring"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
kubectl proxy
|
||||
|
||||
curl -k -H 'Content-Type:application/json' -X PUT --data-binary @/tmp/m.json http://127.0.0.1:8001/api/v1/namespaces/monitoring/finalize
|
||||
````
|
|
@ -0,0 +1,15 @@
|
|||
# nfs 使用问题
|
||||
|
||||
## `unexpected error getting claim reference: selfLink was empty, can't make reference` 导致pvc无法绑定挂载
|
||||
|
||||
编辑文件 `/etc/kubernetes/manifests/kube-apiserver.yaml` 添加内容 `--feature-gates=RemoveSelfLink=false`
|
||||
|
||||
```yaml
|
||||
- command:
|
||||
....
|
||||
- --feature-gates=RemoveSelfLink=false
|
||||
image: registry.aliyuncs.com/k8sxio/kube-apiserver:v1.21.2
|
||||
```
|
||||
|
||||
参见 [isuse](https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/issues/25)
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: dns-autoscaler
|
||||
namespace: kube-system
|
||||
labels:
|
||||
k8s-app: dns-autoscaler
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: dns-autoscaler
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: dns-autoscaler
|
||||
spec:
|
||||
containers:
|
||||
- name: autoscaler
|
||||
image: registry.bing89.com/gcrio/cluster-proportional-autoscaler-amd64:1.8.0
|
||||
resources:
|
||||
requests:
|
||||
cpu: 20m
|
||||
memory: 10Mi
|
||||
command:
|
||||
- /cluster-proportional-autoscaler
|
||||
- --namespace=kube-system
|
||||
- --configmap=dns-autoscaler
|
||||
- --target=deployment/coredns
|
||||
# When cluster is using large nodes(with more cores), "coresPerReplica" should dominate.
|
||||
# If using small nodes, "nodesPerReplica" should dominate.
|
||||
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
|
||||
- --logtostderr=true
|
||||
- --v=2
|
||||
imagePullSecrets:
|
||||
- name: registry-bing89
|
|
@ -0,0 +1,56 @@
|
|||
# 限制pod访问
|
||||
|
||||
## 前期准备
|
||||
|
||||
创建一个pod
|
||||
|
||||
```bash
|
||||
kubectl create deployment nginx --image=nginx
|
||||
```
|
||||
|
||||
暴露端口
|
||||
|
||||
```
|
||||
kubectl expose deployment nginx --port=80
|
||||
```
|
||||
|
||||
测试访问
|
||||
|
||||
```
|
||||
kubectl run busybox --rm -i --image=busybox /bin/sh
|
||||
wget --spider --timeout=1 nginx
|
||||
```
|
||||
|
||||
## 配置策略
|
||||
|
||||
nginx-policy.yaml
|
||||
|
||||
```yaml
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: access-nginx
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
access: "true"
|
||||
```
|
||||
|
||||
应用策略
|
||||
|
||||
```
|
||||
kubectl apply -f nginx-policy.yaml
|
||||
```
|
||||
|
||||
***使用之前的测试方法,已经无法访问。***
|
||||
|
||||
测试访问
|
||||
|
||||
```bash
|
||||
kubectl run busybox --rm -ti --labels="access=true" --image=busybox -- /bin/sh
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
# Kubernetes
|
||||
|
||||
安装[配置kubernetes](installation/readme.md)
|
||||
|
||||
[kubernetes资源配置参考](demo/readme.md)
|
|
@ -0,0 +1,12 @@
|
|||
# 创建Docker镜像下载secret
|
||||
|
||||
创建一个镜像下载secret
|
||||
|
||||
```bash
|
||||
kubectl create secret generic registry-bing89 --from-file=.dockerconfigjson=/root/.docker/config.json --type=kubernetes.io/dockerconfigjson
|
||||
```
|
||||
或者
|
||||
|
||||
```bash
|
||||
kubectl create secret docker-registry myregistrykey --docker-server=registry.bing89.com --docker-username=admin --docker-password=abcd1234 --docker-email=kun1.huang@outlook.com
|
||||
```
|
|
@ -0,0 +1,139 @@
|
|||
# Secret 的静态加密
|
||||
|
||||
kubernetes 集群中,secret默认是明文存储(base64编码)。可以通过开启静态加密来对secret进行加密。
|
||||
|
||||
## 开启静态加密
|
||||
|
||||
通过配置apiserver来开启静态加密功能。
|
||||
|
||||
### 创建静态加密配置
|
||||
|
||||
开启静态加密需要一个配置文件。以下是配置示例:
|
||||
|
||||
```yaml
|
||||
apiVersion: apiserver.config.k8s.io/v1
|
||||
kind: EncryptionConfiguration
|
||||
resources:
|
||||
- resources:
|
||||
- secrets
|
||||
providers:
|
||||
- identity: {}
|
||||
- aesgcm:
|
||||
keys:
|
||||
- name: key1
|
||||
secret: c2VjcmV0IGlzIHNlY3VyZQ==
|
||||
- name: key2
|
||||
secret: dGhpcyBpcyBwYXNzd29yZA==
|
||||
- aescbc:
|
||||
keys:
|
||||
- name: key1
|
||||
secret: c2VjcmV0IGlzIHNlY3VyZQ==
|
||||
- name: key2
|
||||
secret: dGhpcyBpcyBwYXNzd29yZA==
|
||||
- secretbox:
|
||||
keys:
|
||||
- name: key1
|
||||
secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
|
||||
```
|
||||
|
||||
***这个配置示例是从官方文档复制来的。这是一个包含许多类型的配置,直接使用是无法加密的(可能是因为`- identity: {}`是列表第一项),使用时请参考后面的配置***
|
||||
|
||||
kubernetes 支持 `identity`、`aescbc`、`secretbox`、`aesgcm`、`kms` 这几种加密方式,其中`aescbc`为官方推荐加密类型,`aesgcm`为不推荐加密类型,`kms`需要第三方工具管理。
|
||||
|
||||
加密密钥获取方式
|
||||
|
||||
```bash
|
||||
head -c 32 /dev/urandom | base64
|
||||
```
|
||||
此命令会获得一个随机的32位密钥
|
||||
|
||||
***只提供需要的加密类型的配置***
|
||||
|
||||
```yaml
|
||||
apiVersion: apiserver.config.k8s.io/v1
|
||||
kind: EncryptionConfiguration
|
||||
resources:
|
||||
- resources:
|
||||
- secrets
|
||||
providers:
|
||||
- aescbc:
|
||||
keys:
|
||||
- name: key1
|
||||
secret: eGy+iOygy5lN1jWWYRVtVXywe5HDc1Op9lUgR5MRaPo=
|
||||
- identity: {}
|
||||
```
|
||||
|
||||
### 配置apiserver
|
||||
|
||||
编辑文件`kube-apiserver.yaml`
|
||||
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
...
|
||||
spec:
|
||||
containers:
|
||||
- command:
|
||||
- kube-apiserver
|
||||
...
|
||||
- --experimental-encryption-provider-config=/etc/kubernetes/pki/encryption.yaml
|
||||
```
|
||||
|
||||
***如果是kubeadm安装的集群,配置文件位于`/etc/kubernetes/manifests/kube-apiserver.yaml`***
|
||||
|
||||
**注意:这里的加密配置文件放在`/etc/kubernetes/pki/encryption.yaml`,因为这个目录是默认挂载到apiserver的pod里的,也可以放在其他目录并修改挂载选项挂载进去**
|
||||
|
||||
**注意:必须先写好配置文件,在修改apiserver的配置,否则apiserver可能需要多次重启**
|
||||
|
||||
配置文件修改完成后,apiserver的pod会自动重启。
|
||||
|
||||
现在,新创建的secret会自动加密了。
|
||||
|
||||
## 验证
|
||||
|
||||
创建一个secret
|
||||
|
||||
```bash
|
||||
kubectl create secret generic secret1 -n default --from-literal=mykey=mydata
|
||||
```
|
||||
|
||||
使用 etcdctl 命令行,从 etcd 中读取 secret:
|
||||
|
||||
```bash
|
||||
ETCD_POD=$(kubectl -n kube-system get pod -l component=etcd -o name)
|
||||
kubectl -n kube-system exec -it ${ETCD_POD} -- etcdctl get /registry/secrets/default/secret1 --endpoints=localhost:2379 --cert=/etc/kubernetes/pki/etcd/peer.crt --key=/etc/kubernetes/pki/etcd/peer.key --cacert=/etc/kubernetes/pki/etcd/ca.crt |hexdump -C
|
||||
```
|
||||
***这个是从官方文档改成kubectl的命令,原命令`ETCDCTL_API=3 etcdctl get /registry/secrets/default/secret1 [你的参数] | hexdump -C`***
|
||||
|
||||
可以在结果中找到`1..k8s:enc:aescb`表示加密成功,这是文件的其他内容都是乱码
|
||||
|
||||
```text
|
||||
00000000 2f 72 65 67 69 73 74 72 79 2f 73 65 63 72 65 74 |/registry/secret|
|
||||
00000010 73 2f 64 65 66 61 75 6c 74 2f 73 65 63 72 65 74 |s/default/secret|
|
||||
00000020 31 0d 0a 6b 38 73 3a 65 6e 63 3a 61 65 73 63 62 |1..k8s:enc:aescb|
|
||||
00000030 63 3a 76 31 3a 6b 65 79 31 3a c6 76 5c ca d4 9a |c:v1:key1:.v\...|
|
||||
00000040 ee 49 87 86 98 7e d9 22 30 42 16 c7 9a 7e e1 08 |.I...~."0B...~..|
|
||||
00000050 71 e1 8b 1d bc 57 44 ae 04 77 5f 8f 5c f6 29 ee |q....WD..w_.\.).|
|
||||
00000060 8f 3c ed 2b cc 8a cb d2 25 fd b2 ba 3a c3 c5 5e |.<.+....%...:..^|
|
||||
00000070 70 99 03 6e 0d 0a e9 c4 90 a4 cb e3 09 92 ec de |p..n............|
|
||||
00000080 2f 20 eb 35 b7 be 93 f0 09 a1 84 48 8c 3a ed 43 |/ .5.......H.:.C|
|
||||
00000090 47 b6 cf 96 cc 25 7e 54 f3 c2 93 34 cc 0c 25 6d |G....%~T...4..%m|
|
||||
000000a0 d9 df ca f3 ed a1 d8 8e 55 1b 26 58 d9 3f f2 fc |........U.&X.?..|
|
||||
000000b0 58 ed a1 0f 4d 4b e9 11 bf ba e0 52 4f 74 8e 5b |X...MK.....ROt.[|
|
||||
000000c0 47 c3 68 db f9 6c e9 b5 f5 3c 1c 64 a4 49 9b 68 |G.h..l...<.d.I.h|
|
||||
000000d0 18 30 de d9 1c 36 fb 43 e2 d7 0f 18 84 09 2d 46 |.0...6.C......-F|
|
||||
000000e0 b1 97 31 87 0f eb 68 83 2c 4f 0b 42 1c 01 d0 ca |..1...h.,O.B....|
|
||||
000000f0 e2 88 b9 0c 97 cf 77 8d d1 73 83 ed 1d c2 19 57 |......w..s.....W|
|
||||
00000100 2f f0 cd 5e 39 19 d6 67 fd 73 88 ab 09 bf 90 09 |/..^9..g.s......|
|
||||
00000110 78 69 1e 60 22 60 97 b9 83 c4 38 0c ea e2 02 9a |xi.`"`....8.....|
|
||||
00000120 16 ac 6e ca 3e c1 28 77 21 32 4a 7a 5a a0 11 4f |..n.>.(w!2JzZ..O|
|
||||
00000130 d4 1f 2b a8 6b 85 43 47 fb 43 ea 0d 0a |..+.k.CG.C...|
|
||||
0000013d
|
||||
```
|
||||
|
||||
通过api查看
|
||||
|
||||
```bash
|
||||
kubectl describe secret secret1 -n default
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
# Secrets
|
||||
|
||||
[静态加密](encryption.md)
|
||||
|
||||
[创建Docker镜像下载secret](create_docker_pull.md)
|
|
@ -0,0 +1,94 @@
|
|||
# Kubernetes集群升级
|
||||
|
||||
只能从一个次版本升级到下一个次版本,或者在次版本相同时升级补丁版本。 也就是说,升级时不可以跳过次版本。 例如,你只能从 1.y 升级到 1.y+1,而不能从 1.y 升级到 1.y+2。
|
||||
|
||||
## 升级control plane
|
||||
|
||||
必须先升级第一个controlplane
|
||||
|
||||
升级`kubeadm`
|
||||
|
||||
```bash
|
||||
export VERSION="1.20.1"
|
||||
yum install -y kubeadm-${VERSION}-0 --disableexcludes=kubernetes
|
||||
```
|
||||
|
||||
腾空controlplane
|
||||
|
||||
```bash
|
||||
export NODE="k8smaster1"
|
||||
kubectl drain ${NODE} --ignore-daemonsets
|
||||
```
|
||||
|
||||
查看是否可以升级以及可升级的版本
|
||||
|
||||
```bash
|
||||
kubeadm upgrade plan
|
||||
```
|
||||
|
||||
升级到指定版本
|
||||
|
||||
```bash
|
||||
kubeadm upgrade apply v${VERSION}
|
||||
```
|
||||
|
||||
取消控制面节点的保护
|
||||
|
||||
```bash
|
||||
kubectl uncordon ${NODE}
|
||||
```
|
||||
|
||||
升级其他controlplane, 参考[升级node](##升级node)
|
||||
|
||||
## 升级node
|
||||
|
||||
升级之前,请确保control plane已经升级,建议一次只升级1个或部分节点,避免影响服务。
|
||||
|
||||
升级`kubeadm`,在node执行
|
||||
|
||||
```bash
|
||||
export VERSION="1.20.1-0"
|
||||
yum install -y kubeadm-${VERSION} --disableexcludes=kubernetes
|
||||
```
|
||||
|
||||
将节点标记为不可调度并逐出工作负载,为维护做好准备。在control执行
|
||||
|
||||
```bash
|
||||
export NODE="k8snode1"
|
||||
kubectl drain ${NODE} --ignore-daemonsets
|
||||
```
|
||||
|
||||
输出类似下文
|
||||
|
||||
```bash
|
||||
node/k8snode1 already cordoned
|
||||
WARNING: ignoring DaemonSet-managed Pods: kube-system/calico-node-jcpf2, kube-system/kube-proxy-rsskt
|
||||
evicting pod kube-system/calico-kube-controllers-744cfdf676-g86dz
|
||||
pod/calico-kube-controllers-744cfdf676-g86dz evicted
|
||||
node/k8snode1 evicted
|
||||
```
|
||||
|
||||
升级kubelet配置,在node执行
|
||||
|
||||
```bash
|
||||
kubeadm upgrade node
|
||||
```
|
||||
|
||||
升级kubelet服务,在node执行
|
||||
|
||||
```bash
|
||||
yum install -y kubelet-${VERSION} kubectl-${VERSION} --disableexcludes=kubernetes
|
||||
```
|
||||
|
||||
重启服务
|
||||
|
||||
```bash
|
||||
systemctl daemon-reload
|
||||
systemctl restart kubelet
|
||||
```
|
||||
|
||||
将节点标记为可调度,让节点重新上线
|
||||
|
||||
```bash
|
||||
kubectl uncordon ${NODE}
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
# 创建bridge
|
||||
|
||||
centos 7.6 之后没有brctl了
|
||||
|
||||
```bash
|
||||
nmcli connection
|
||||
nmcli connection add type bridge con-name vir0 ifname vir0 autoconnect yes
|
||||
sudo nmcli connection add type bridge con-name vir0 ifname vir0 autoconnect yes
|
||||
nmcli connection
|
||||
sudo nmcli connection add type bridge-slave ifname enp4s0 master vir0 && sudo nmcli connection down enp4s0 && sudo nmcli connection up vir0 && nmcli connection
|
||||
```
|
|
@ -0,0 +1,8 @@
|
|||
# qemu-img
|
||||
qemu-img 是kvm的卷管理工具。
|
||||
|
||||
## 创建一个卷
|
||||
|
||||
```bash
|
||||
qemu-img create -f qcow2 centos7.qcow2 20G
|
||||
```
|
|
@ -0,0 +1 @@
|
|||
# qemu
|
|
@ -0,0 +1,2 @@
|
|||
# kvm
|
||||
linux 虚拟机
|
|
@ -0,0 +1,37 @@
|
|||
<domain type='kvm'>
|
||||
<name>test_ubuntu</name>
|
||||
<memory>4194304</memory>
|
||||
<currentMemory>4194304</currentMemory>
|
||||
<vcpu>2</vcpu>
|
||||
<os>
|
||||
<type arch='x86_64' machine='pc'>hvm</type>
|
||||
<boot dev='cdrom'/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
<apic/>
|
||||
<pae/>
|
||||
</features>
|
||||
<clock offset='localtime'/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/libexec/qemu-kvm</emulator>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='/opt/kvm/volumes/centos7.qcow2'/>
|
||||
<target dev='hda' bus='ide'/>
|
||||
</disk>
|
||||
<disk type='file' device='cdrom'>
|
||||
<source file='/root/soft/CentOS-7-x86_64-Minimal-2009.iso'/>
|
||||
<target dev='hdb' bus='ide'/>
|
||||
</disk>
|
||||
<interface type='bridge'>
|
||||
<source bridge='br0'/>
|
||||
<mac address="00:16:3e:5d:aa:a8"/>
|
||||
</interface>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
<graphics type='vnc' port='5509' autoport='yes' listen = '0.0.0.0' keymap='en-us'/>
|
||||
</devices>
|
||||
</domain>
|
|
@ -0,0 +1,4 @@
|
|||
# virsh
|
||||
kvm 命令行管理工具virsh
|
||||
|
||||
#
|
|
@ -0,0 +1,43 @@
|
|||
# centos 8 安装kde5
|
||||
|
||||
本安装方法适用于 centos8, rockylinux8
|
||||
|
||||
kde5 并未包含在系统软件仓库中,需要添加epel源
|
||||
|
||||
```bash
|
||||
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||
```
|
||||
|
||||
或者
|
||||
|
||||
```bash
|
||||
dnf install epel-release
|
||||
```
|
||||
|
||||
使用国内源
|
||||
|
||||
```bash
|
||||
sed -e 's!^metalink=!#metalink=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!//download\.fedoraproject\.org/pub!//mirrors.tuna.tsinghua.edu.cn!g' -e 's!http://mirrors!https://mirrors!g' -i /etc/yum.repos.d/epel.repo
|
||||
|
||||
sed -e 's!^metalink=!#metalink=!g' -e 's!^#baseurl=!baseurl=!g' -e 's!//download\.example/pub!//mirrors.tuna.tsinghua.edu.cn!g' -e 's!http://mirrors!https://mirrors!g' -i /etc/yum.repos.d/epel.repo
|
||||
```
|
||||
|
||||
开启epel-extra包
|
||||
|
||||
```bash
|
||||
dnf config-manager --set-enabled powertools
|
||||
```
|
||||
|
||||
安装kde5
|
||||
|
||||
```bash
|
||||
yum group install 'KDE Plasma Workspaces'
|
||||
systemctl set-default graphical.target
|
||||
systemctl enable sddm
|
||||
```
|
||||
|
||||
重启电脑
|
||||
|
||||
```bash
|
||||
reboot
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# CentOS安装xrdp
|
||||
|
||||
xrdp需要安装桌面环境。
|
||||
|
||||
```bash
|
||||
sudo yum group install "Server with GUI"
|
||||
```
|
||||
|
||||
安装xrdp
|
||||
|
||||
```bash
|
||||
sudo yum install xrdp
|
||||
sudo systemctl enable --now xrdp
|
||||
echo 'exec gnome-session' >> /etc/xrdp/xrdp.ini
|
||||
sudo systemctl restart xrdp
|
||||
```
|
|
@ -0,0 +1,10 @@
|
|||
# 安装 rocky
|
||||
|
||||
## 配置rocky使用国内源
|
||||
|
||||
```bash
|
||||
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
|
||||
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.sjtug.sjtu.edu.cn/rocky|g' \
|
||||
-i.bak \
|
||||
/etc/yum.repos.d/Rocky-*.repo
|
||||
```
|
|
@ -0,0 +1,728 @@
|
|||
:root {
|
||||
--side-bar-bg-color: #fafafa;
|
||||
--control-text-color: #777;
|
||||
--monospace: "Jetbrains Mono", "思源黑体 CN";
|
||||
}
|
||||
|
||||
.title-text {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
body, .title-text {
|
||||
background-color: white;
|
||||
font-family: "Inter", "思源黑体 CN";
|
||||
color: rgb(12, 12, 12);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
#write {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 30px;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
#write>ul:first-child, #write>ol:first-child {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
a.md-inner-link {
|
||||
color: #3b78e7;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
position: relative;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
cursor: text;
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
.md-toc {
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
cursor: pointer;
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 tt, h1 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h2 tt, h2 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h3 tt, h3 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h4 tt, h4 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h5 tt, h5 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h6 tt, h6 code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: "Inter", "思源黑体 CN";
|
||||
padding-bottom: .1em;
|
||||
font-size: 2.25em;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1 strong {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
li.active {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5em;
|
||||
line-height: 1.43;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
h5 strong {
|
||||
background-color: #3b78e7;
|
||||
color: white;
|
||||
font-weight: 800;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 24px;
|
||||
padding: 0;
|
||||
font-family: Inter;
|
||||
font-feature-settings: "tnum" 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
p, blockquote, ul, ol, dl, table {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
li>ol, li>ul {
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 2px;
|
||||
padding: 0;
|
||||
margin: 16px 0;
|
||||
background-color: #e7e7e7;
|
||||
border: 0 none;
|
||||
overflow: hidden;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
li p.first {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
ul:first-child, ol:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ul:last-child, ol:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
a>span>code {
|
||||
color: #3b78e7!important;
|
||||
text-decoration: none!important;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-radius: 4px;
|
||||
padding: 12px 16px;
|
||||
background-color: #f4f7f8;
|
||||
font-family: '思源宋体 CN', serif;
|
||||
color: #252d34;
|
||||
}
|
||||
|
||||
blockquote code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
h2:hover:before, h1:hover:before, h3:hover:before {
|
||||
content: "#";
|
||||
width: 0px;
|
||||
position: absolute;
|
||||
left: -24px;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
blockquote blockquote {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
padding: 0;
|
||||
word-break: initial;
|
||||
}
|
||||
|
||||
table tr {
|
||||
border-top: 1px solid #dfe2e5;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n), thead {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
table tr th {
|
||||
font-weight: bold;
|
||||
border: 1px solid #dfe2e5;
|
||||
border-bottom: 0;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
}
|
||||
|
||||
table tr td {
|
||||
border: 1px solid #dfe2e5;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
}
|
||||
|
||||
table tr th:first-child, table tr td:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
table tr th:last-child, table tr td:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.CodeMirror-lines {
|
||||
line-height: 1.5rem!important;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.code-tooltip {
|
||||
border-radius: 4px;
|
||||
background-color: white;
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18)!important;
|
||||
}
|
||||
|
||||
code, tt {
|
||||
border-radius: 4px;
|
||||
padding: 2px 4px 0px 4px;
|
||||
font-size: 0.9em;
|
||||
font-family: 'Jetbrains Mono', '思源黑体 CN';
|
||||
}
|
||||
|
||||
code {
|
||||
color: #37474f;
|
||||
font-weight: 600;
|
||||
background-color: #f4f7f8;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
|
||||
mark {
|
||||
border-radius: 4px;
|
||||
color: #141001;
|
||||
font-weight: inherit;
|
||||
background-color: #ffde67;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
del {
|
||||
border-radius: 4px;
|
||||
color: #d4d4d4;
|
||||
font-weight: inherit;
|
||||
background-color: #d4d4d430;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
text-decoration-color: #d4d4d4;
|
||||
}
|
||||
|
||||
.md-fences {
|
||||
margin-bottom: 15px;
|
||||
margin-top: 15px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 6px;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.md-task-list-item>input {
|
||||
margin-left: -1.3em;
|
||||
}
|
||||
.md-br-content .md-raw-inline{
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@media print {
|
||||
html {
|
||||
font-size: 13px;
|
||||
background-color: white;
|
||||
line-height: 3!important;
|
||||
}
|
||||
body {
|
||||
margin-top: 24px!important;
|
||||
margin-bottom: 24px!important;
|
||||
}
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
pre {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
ol {
|
||||
border: 1px solid rgb(238, 238, 238);
|
||||
border-radius: 4px;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 8px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
a>span>code, a>code, a code {
|
||||
background-color: #3b78e718!important;
|
||||
}
|
||||
a {
|
||||
color: #3b78e7!important;
|
||||
text-decoration: none!important;
|
||||
}
|
||||
.md-plain {
|
||||
line-height: 3!important;
|
||||
}
|
||||
.page-break {
|
||||
page-break-after: always;
|
||||
break-after: page;
|
||||
}
|
||||
.page-break:before {
|
||||
content: none
|
||||
}
|
||||
code {
|
||||
font-variant-ligatures: common-ligatures!important;
|
||||
}
|
||||
}
|
||||
|
||||
.page-break:before {
|
||||
background-color: #05685b;
|
||||
}
|
||||
|
||||
.page-break:before {
|
||||
content: "Page Break"
|
||||
}
|
||||
|
||||
.md-toc-inner {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.md-toc-h1 {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.md-toc-h2 {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
/* h1 strong, h2 strong, h3 strong, h4 strong, h6 strong, .md-toc strong{
|
||||
font-weight: 800;
|
||||
border-radius: 4px;
|
||||
background-color: #f1f3f4;
|
||||
} */
|
||||
|
||||
.md-p a, a.md-toc-inner {
|
||||
color: #3b78e7!important;
|
||||
text-decoration: none!important;
|
||||
border-bottom: 2px solid #3b78e700;
|
||||
transition: all 0.16s;
|
||||
}
|
||||
|
||||
.md-p a:hover, a.md-toc-inner:hover {
|
||||
color: #3b78e7!important;
|
||||
text-decoration: none!important;
|
||||
border-bottom: 2px solid #3b78e7;
|
||||
transition: all 0.16s;
|
||||
}
|
||||
|
||||
.md-content.md-url {
|
||||
color: #05685b!important;
|
||||
text-decoration: none!important;
|
||||
font-family: 'Jetbrains Mono';
|
||||
}
|
||||
|
||||
a>span>code, a>code, a code {
|
||||
color: #3b78e7!important;
|
||||
text-decoration: none!important;
|
||||
background-color: #3b78e718!important;
|
||||
}
|
||||
|
||||
.md-link {
|
||||
text-decoration: none!important;
|
||||
border-bottom: 2px solid #3b78e700;
|
||||
transition: all .2s;
|
||||
}
|
||||
|
||||
.md-link:hover {
|
||||
border-bottom: 2px solid #3b78e7ff;
|
||||
transition: all .2s;
|
||||
}
|
||||
|
||||
.md-fences {
|
||||
background-color: #f4f7f8;
|
||||
border-radius: 4px;
|
||||
padding: 12px;
|
||||
font-size: 0.9em;
|
||||
font-family: 'Jetbrains Mono', '思源黑体 CN';
|
||||
}
|
||||
|
||||
#write pre.md-meta-block {
|
||||
padding: 1rem;
|
||||
font-size: 85%;
|
||||
line-height: 1.45;
|
||||
background-color: #f7f7f7;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
color: #777777;
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
.mathjax-block>.code-tooltip {
|
||||
bottom: .2rem;
|
||||
}
|
||||
|
||||
.md-mathjax-midline {
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
#write>h3.md-focus:before {
|
||||
left: -1.5625rem;
|
||||
top: .375rem;
|
||||
}
|
||||
|
||||
#write>h4.md-focus:before {
|
||||
left: -1.5625rem;
|
||||
top: .285714286rem;
|
||||
}
|
||||
|
||||
#write>h5.md-focus:before {
|
||||
left: -1.5625rem;
|
||||
top: .285714286rem;
|
||||
}
|
||||
|
||||
#write>h6.md-focus:before {
|
||||
left: -1.5625rem;
|
||||
top: .285714286rem;
|
||||
}
|
||||
|
||||
.md-image>.md-meta {
|
||||
/*border: 1px solid #ddd;*/
|
||||
border-radius: 3px;
|
||||
padding: 2px 0px 0px 4px;
|
||||
font-size: 0.9em;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.md-tag {
|
||||
color: #a7a7a7;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.md-toc {
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.sidebar-tabs {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#typora-quick-open {
|
||||
border: 1px solid #ddd;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
#typora-quick-open-item {
|
||||
background-color: #FAFAFA;
|
||||
border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
/** focus mode */
|
||||
|
||||
.on-focus-mode blockquote {
|
||||
border-left-color: rgba(85, 85, 85, 0.12);
|
||||
}
|
||||
|
||||
header, .context-menu, .megamenu-content, footer {
|
||||
font-family: "Inter", "思源黑体 CN";
|
||||
}
|
||||
|
||||
.file-node-content:hover .file-node-icon, .file-node-content:hover .file-node-open-state {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.mac-seamless-mode #typora-sidebar {
|
||||
background-color: #fafafa;
|
||||
background-color: var(--side-bar-bg-color);
|
||||
}
|
||||
|
||||
.md-lang {
|
||||
color: #b4654d;
|
||||
}
|
||||
|
||||
.html-for-mac .context-menu {
|
||||
--item-hover-bg-color: #E6F0FE;
|
||||
}
|
||||
|
||||
#md-notification .btn {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dropdown-menu .divider {
|
||||
border-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.ty-preferences .window-content {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.ty-preferences .nav-group-item.active {
|
||||
color: white;
|
||||
background: #00000010;
|
||||
}
|
||||
|
||||
.CodeMirror-linenumber {
|
||||
color: rgba(20, 20, 20, 0.3);
|
||||
}
|
||||
|
||||
.CodeMirror-gutters {
|
||||
border-right: none;
|
||||
/* border-right: 1.08px solid rgba(20, 20, 20, 0.3); */
|
||||
}
|
||||
|
||||
.context-menu {
|
||||
border: none!important;
|
||||
backdrop-filter: saturate(180%) blur(20px) brightness(1.1);
|
||||
background-color: #ffffffd0;
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18)!important;
|
||||
}
|
||||
|
||||
.divider {
|
||||
background-color: #00000020!important;
|
||||
border: none!important;
|
||||
}
|
||||
|
||||
.ty-footer, .sidebar-footer {
|
||||
backdrop-filter: saturate(180%) blur(20px) brightness(1.1);
|
||||
border: none!important;
|
||||
background: none;
|
||||
background-color: #ffffff70;
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18);
|
||||
}
|
||||
|
||||
#sidebar-files-menu {
|
||||
border-radius: 4px;
|
||||
border: none!important;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18);
|
||||
}
|
||||
|
||||
@media (min-width: 1000px) {
|
||||
footer.ty-footer {
|
||||
background-color: #ffffff70;
|
||||
border: none!important;
|
||||
right: 0!important;
|
||||
backdrop-filter: saturate(180%) blur(20px) brightness(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
footer.ty-footer {
|
||||
background-color: #ffffff70;
|
||||
border: none!important;
|
||||
backdrop-filter: saturate(180%) blur(20px) brightness(1.1);
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18);
|
||||
}
|
||||
}
|
||||
|
||||
.code-tooltip.md-tooltip-hide.md-hover-tip {
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18);
|
||||
}
|
||||
|
||||
.md-rawblock-control.md-rawblock-after {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
#typora-sidebar {
|
||||
background-color: #fafafa!important;
|
||||
border: none!important;
|
||||
box-shadow: 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108)!important;
|
||||
}
|
||||
|
||||
.file-node-title {
|
||||
color: #0f0f0f;
|
||||
}
|
||||
|
||||
#footer-word-count-info, #spell-check-panel {
|
||||
border: none!important;
|
||||
background-color: #ffffff!important;
|
||||
box-shadow: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18)!important;
|
||||
}
|
||||
|
||||
content {
|
||||
bottom: 4px;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'FontAwesome2';
|
||||
src: url('fluent/fontawesome-webfont.eot?v=4.7.0');
|
||||
src: url('fluent/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('fluent/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('fluent/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('fluent/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('fluent/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
blockquote>h4, blockquote>h5, blockquote>h6 {
|
||||
font-size: 1em;
|
||||
columns: inherit;
|
||||
}
|
||||
|
||||
blockquote>h4::before {
|
||||
width: 24px;
|
||||
content: "\f097";
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 FontAwesome2;
|
||||
font-size: 1em;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
blockquote>h5::before {
|
||||
width: 32px;
|
||||
content: "e.g.";
|
||||
display: inline-block;
|
||||
font-style: italic;
|
||||
font-size: 1.2em;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
blockquote>h6::before {
|
||||
width: 24px;
|
||||
content: "\f27b";
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 FontAwesome2;
|
||||
font-size: 1em;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
columns: inherit;
|
||||
}
|
||||
|
||||
.ol-list {
|
||||
border: 1px solid rgb(238, 238, 238);
|
||||
border-radius: 4px;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.MetaInfo-Author {
|
||||
opacity: 0.6;
|
||||
margin-top: -6px
|
||||
}
|
||||
|
||||
.MetaInfo-Deadline {
|
||||
display: none;
|
||||
opacity: 0
|
||||
}
|
||||
|
||||
.cm-keyword, .cm-variable-3, .cm-tag {
|
||||
color: #3b78e7!important
|
||||
}
|
||||
|
||||
.cm-def, .cm-attribute {
|
||||
color: #9c27b0!important
|
||||
}
|
||||
|
||||
.cm-comment {
|
||||
color: #d81b60!important;
|
||||
font-style: oblique!important;
|
||||
font-variant-ligatures: common-ligatures!important;
|
||||
font-variation-settings: 'slnt' -9;
|
||||
}
|
||||
|
||||
.cm-string {
|
||||
color: #0d904f!important;
|
||||
font-style: italic!important;
|
||||
font-variant-ligatures: common-ligatures!important;
|
||||
}
|
||||
|
||||
.cm-tag:not(.cm-bracket) {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.cm-operator {
|
||||
color: #d81b60!important;
|
||||
}
|
||||
|
||||
.cm-number {
|
||||
color: #d81b60!important;
|
||||
}
|
||||
|
||||
.cm-meta {
|
||||
color: #9c27b0!important;
|
||||
font-weight: 700!important;
|
||||
}
|
||||
|
||||
.cm-builtin {
|
||||
font-style: italic!important;
|
||||
}
|
||||
|
||||
.file-tree-node.active>.file-node-background {
|
||||
background-color: var(--active-file-bg-color);
|
||||
border-left: 4px solid #3b78e7!important;
|
||||
border-color: #3b78e7!important;
|
||||
background-color: #3b78e718!important;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
module blog.bing89.com/parser
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8
|
|
@ -0,0 +1,3 @@
|
|||
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 h1:nWU6p08f1VgIalT6iZyqXi4o5cZsz4X6qa87nusfcsc=
|
||||
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8/go.mod h1:aii0r/K0ZnHv7G0KF7xy1v0A7s2Ljrb5byB7MO5p6TU=
|
||||
golang.org/dl v0.0.0-20190829154251-82a15e2f2ead/go.mod h1:IUMfjQLJQd4UTqG1Z90tenwKoCX93Gn3MAQJMOSBsDQ=
|
|
@ -0,0 +1,38 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/gomarkdown/markdown"
|
||||
"github.com/gomarkdown/markdown/html"
|
||||
"github.com/gomarkdown/markdown/parser"
|
||||
)
|
||||
|
||||
func main(){
|
||||
file, err := os.Open("test.md")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer file.Close()
|
||||
data, err := ioutil.ReadAll(file)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
htmlFlags := html.CommonFlags | html.HrefTargetBlank | html.CompletePage
|
||||
var extensions = parser.NoIntraEmphasis |
|
||||
parser.Tables |
|
||||
parser.FencedCode |
|
||||
parser.Autolink |
|
||||
parser.Strikethrough |
|
||||
parser.SpaceHeadings
|
||||
opts := html.RendererOptions{
|
||||
Flags: htmlFlags,
|
||||
CSS: "http://www.bing89.com/css/markdown/fluent.css",
|
||||
}
|
||||
renderer := html.NewRenderer(opts)
|
||||
parser := parser.NewWithExtensions(extensions)
|
||||
html := markdown.ToHTML(data, parser, renderer)
|
||||
fmt.Println(string(html))
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta name="GENERATOR" content="github.com/gomarkdown/markdown markdown processor for Go">
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="http://www.bing89.com/css/markdown/fluent.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>this is a test</h1>
|
||||
|
||||
<p>this is a test</p>
|
||||
|
||||
<h2>test subtitle</h2>
|
||||
|
||||
<pre><code class="language-c++">#include <iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
cout<<"helloworld!"
|
||||
return 0
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p><a href="main.go" target="_blank">this is a test link</a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# this is a test
|
||||
|
||||
this is a test
|
||||
|
||||
## test subtitle
|
||||
|
||||
```c++
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
cout<<"helloworld!"
|
||||
return 0
|
||||
}
|
||||
```
|
||||
|
||||
[this is a test link](main.go)
|
Loading…
Reference in New Issue