├── local-start.sh ├── Dockerfile ├── .gitignore ├── main.go ├── deploy ├── test-claim.yaml ├── test-pod.yaml ├── deployment.yaml ├── secret.yaml ├── rbac.yaml └── class.yaml ├── go.mod ├── freenas ├── permission.go ├── server.go ├── nfs.go └── dataset.go ├── .travis.yml ├── Makefile ├── cli └── command.go ├── README.md ├── LICENSE ├── provisioner └── provisioner.go └── go.sum /local-start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #export KUBECONFIG="" 4 | #export IDENTIFIER="freenas-nfs-provisioner" 5 | #export PROVISIONER_NAME="freenas.org/nfs" 6 | 7 | ./bin/freenas-provisioner 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM bitnami/minideb 2 | 3 | RUN apt-get update && \ 4 | apt-get upgrade -y && \ 5 | apt-get install -y ca-certificates && \ 6 | update-ca-certificates && \ 7 | apt-get clean 8 | 9 | COPY tmp/freenas-provisioner / 10 | ENTRYPOINT ["/freenas-provisioner"] 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | 16 | *.swp 17 | *.swo 18 | bin/ 19 | vendor/ 20 | tmp/ 21 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/nmaupu/freenas-provisioner/cli" 5 | ) 6 | 7 | const ( 8 | AppName = "freenas-provisioner" 9 | AppDesc = "Kubernetes Freenas Provisioner (NFS)" 10 | ) 11 | 12 | var ( 13 | AppVersion string 14 | ) 15 | 16 | func main() { 17 | if AppVersion == "" { 18 | AppVersion = "master" 19 | } 20 | 21 | cli.Process(AppName, AppDesc, AppVersion) 22 | } 23 | -------------------------------------------------------------------------------- /deploy/test-claim.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: PersistentVolumeClaim 3 | apiVersion: v1 4 | metadata: 5 | name: freenas-test-pvc 6 | spec: 7 | storageClassName: freenas-nfs 8 | accessModes: 9 | - ReadWriteMany 10 | resources: 11 | requests: 12 | # Apparently, around feb20, changes have been incorporated into FreeNAS 13 | # disallowing quotas smaller than 1Gi, github.com/freenas/webui/pull/3613 14 | storage: 1Gi 15 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/nmaupu/freenas-provisioner 2 | 3 | go 1.15 4 | 5 | require ( 6 | code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48 7 | github.com/dghubble/sling v1.3.0 8 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b 9 | github.com/jawher/mow.cli v1.2.0 10 | k8s.io/api v0.20.2 11 | k8s.io/apimachinery v0.20.2 12 | k8s.io/client-go v0.20.2 13 | sigs.k8s.io/sig-storage-lib-external-provisioner/v6 v6.2.0 14 | ) 15 | -------------------------------------------------------------------------------- /deploy/test-pod.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: Pod 3 | apiVersion: v1 4 | metadata: 5 | name: freenas-test-pod 6 | spec: 7 | containers: 8 | - name: freenas-test-pod 9 | image: gcr.io/google_containers/busybox:1.24 10 | command: 11 | - "/bin/sh" 12 | args: 13 | - "-c" 14 | - "date >> /mnt/file.log && exit 0 || exit 1" 15 | volumeMounts: 16 | - name: freenas-test-volume 17 | mountPath: "/mnt" 18 | restartPolicy: "Never" 19 | volumes: 20 | - name: freenas-test-volume 21 | persistentVolumeClaim: 22 | claimName: freenas-test-pvc 23 | -------------------------------------------------------------------------------- /deploy/deployment.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: Deployment 3 | apiVersion: apps/v1 4 | metadata: 5 | name: freenas-nfs-provisioner 6 | namespace: kube-system 7 | labels: 8 | app: freenas-nfs-provisioner 9 | spec: 10 | replicas: 1 11 | selector: 12 | matchLabels: 13 | app: freenas-nfs-provisioner 14 | strategy: 15 | type: Recreate 16 | template: 17 | metadata: 18 | labels: 19 | app: freenas-nfs-provisioner 20 | spec: 21 | serviceAccountName: freenas-nfs-provisioner 22 | containers: 23 | - name: freenas-nfs-provisioner 24 | image: docker.io/nmaupu/freenas-provisioner:2.4 25 | env: 26 | #- name: IDENTIFIER 27 | # value: 28 | #- name: PROVISIONER_NAME 29 | # value: 30 | -------------------------------------------------------------------------------- /deploy/secret.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Secret 4 | metadata: 5 | name: freenas-nfs 6 | namespace: kube-system 7 | type: Opaque 8 | data: 9 | # all values should be base64 encoded (ie: echo -n 'https' | base64) 10 | # 11 | # note that all values are relative to where the provisioner is running 12 | # ie: if running the provisioner directly on the FreeNAS server 'localhost' 13 | # would be a valid 'host' value 14 | 15 | # http|https 16 | # default: http 17 | #protocol: 18 | 19 | # default: localhost (for running the provisioner out of cluster directly on FreeNAS node) 20 | #host: 21 | 22 | # default: 80 23 | #port: 24 | 25 | # default: root (api is only available for root currently) 26 | #username: 27 | password: 28 | 29 | # allow for self-signed/untrusted certs if using https 30 | # true|false 31 | # default: false 32 | #allowInsecure: 33 | -------------------------------------------------------------------------------- /freenas/permission.go: -------------------------------------------------------------------------------- 1 | package freenas 2 | 3 | import ( 4 | "encoding/json" 5 | "errors" 6 | "fmt" 7 | "github.com/golang/glog" 8 | ) 9 | 10 | type Permission struct { 11 | Path string `json:"mp_path"` 12 | Acl string `json:"mp_acl"` 13 | Mode string `json:"mp_mode"` 14 | User string `json:"mp_user"` 15 | Group string `json:"mp_group"` 16 | } 17 | 18 | func (p *Permission) Put(server *FreenasServer) error { 19 | endpoint := "/api/v1.0/storage/permission/" 20 | var e interface{} 21 | resp, err := server.getSlingConnection().Put(endpoint).BodyJSON(p).Receive(nil, &e) 22 | if err != nil { 23 | glog.Warningln(err) 24 | return err 25 | } 26 | defer resp.Body.Close() 27 | 28 | if resp.StatusCode != 201 { 29 | body, _ := json.Marshal(e) 30 | return errors.New(fmt.Sprintf("Error updating permission - message: %v, status: %d", string(body), resp.StatusCode)) 31 | } 32 | 33 | return nil 34 | } 35 | -------------------------------------------------------------------------------- /deploy/rbac.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: freenas-nfs-provisioner 6 | namespace: kube-system 7 | 8 | --- 9 | kind: ClusterRole 10 | apiVersion: rbac.authorization.k8s.io/v1beta1 11 | metadata: 12 | name: freenas-nfs-provisioner 13 | rules: 14 | - apiGroups: [""] 15 | resources: ["persistentvolumes"] 16 | verbs: ["get", "list", "watch", "create", "delete"] 17 | - apiGroups: [""] 18 | resources: ["persistentvolumeclaims"] 19 | verbs: ["get", "list", "watch", "update"] 20 | - apiGroups: ["storage.k8s.io"] 21 | resources: ["storageclasses"] 22 | verbs: ["get", "list", "watch"] 23 | - apiGroups: [""] 24 | resources: ["events"] 25 | verbs: ["list", "watch", "create", "update", "patch"] 26 | - apiGroups: [""] 27 | resources: ["secrets"] 28 | verbs: ["get"] 29 | - apiGroups: [""] 30 | resources: ["endpoints"] 31 | verbs: ["get", "create", "update"] 32 | 33 | --- 34 | kind: ClusterRoleBinding 35 | apiVersion: rbac.authorization.k8s.io/v1beta1 36 | metadata: 37 | name: freenas-nfs-provisioner 38 | roleRef: 39 | apiGroup: rbac.authorization.k8s.io 40 | kind: ClusterRole 41 | name: freenas-nfs-provisioner 42 | subjects: 43 | - kind: ServiceAccount 44 | name: freenas-nfs-provisioner 45 | namespace: kube-system 46 | -------------------------------------------------------------------------------- /freenas/server.go: -------------------------------------------------------------------------------- 1 | package freenas 2 | 3 | import ( 4 | "crypto/tls" 5 | "fmt" 6 | "github.com/dghubble/sling" 7 | "net/http" 8 | ) 9 | 10 | type FreenasResource interface { 11 | Delete(server *FreenasServer) error 12 | CopyFrom(source FreenasResource) error 13 | Get(server *FreenasServer) error 14 | Create(server *FreenasServer) error 15 | } 16 | 17 | type FreenasServer struct { 18 | Protocol string 19 | Host, Username, Password string 20 | Port int 21 | InsecureSkipVerify bool 22 | url string 23 | } 24 | 25 | func NewFreenasServer(protocol string, host string, port int, username, password string, insecure bool) *FreenasServer { 26 | u := fmt.Sprintf("%s://%s:%d", protocol, host, port) 27 | return &FreenasServer{ 28 | Protocol: protocol, 29 | Host: host, 30 | Port: port, 31 | Username: username, 32 | Password: password, 33 | InsecureSkipVerify: insecure, 34 | url: u, 35 | } 36 | } 37 | 38 | func (s *FreenasServer) getSlingConnection() *sling.Sling { 39 | tr := &http.Transport{ 40 | TLSClientConfig: &tls.Config{InsecureSkipVerify: s.InsecureSkipVerify}, 41 | } 42 | 43 | if s.Protocol == "http" { 44 | tr.TLSClientConfig = nil 45 | } 46 | 47 | httpClient := &http.Client{Transport: tr} 48 | return sling.New().Client(httpClient).Base(s.url).SetBasicAuth(s.Username, s.Password).Set("Accept", "application/json").Set("Content-Type", "application/json") 49 | } 50 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.15.x 4 | sudo: false 5 | script: 6 | - make build 7 | - make darwin 8 | - make freebsd 9 | before_deploy: 10 | - mkdir -p bin_release 11 | - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags "-extldflags '-static' 12 | -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_linux-amd64 13 | - CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags "-extldflags '-static' 14 | -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_darwin-amd64 15 | - CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -a -ldflags "-extldflags '-static' 16 | -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_freebsd-amd64 17 | - CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags "-extldflags '-static' 18 | -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_linux-arm 19 | deploy: 20 | provider: releases 21 | api_key: 22 | secure: 17OLWyqB+B/tH/hVLP1zTD1bF2earEhwKdxH6SJpgdUcvUKL2IcKoRn+zrDc+QandVPtJpCV9Wdj8xK5slRVT0dxzKUwFH2SzagAoj+mKkJ6Ks9ZeW060psU62lHlhlP2N74BwWK9+cmRyUq6D4moy2BrnWsl67BnyCTQikP4wRDt1H1t3f9xefjqslQX3Y3+mrQnNc1cXA2Yj2Emvm3uyX3c3gXhiYvjxFTopB9XYfg2ftXMN9aqVwAcwioXwfHWF82jDxWBJXIelcv8SbN4gUHBbko3oP89uNCauKJePTsaBcszh5UbhhgkXWenBTLNhkzhFhJQpZfIK970QDMZjB7W1CB2roj22U1+pjVSPvx+/OiCUpS4PkXoZuPKSuXmvTcfFLliMVmKDmj08tTblKjkB31zr4Q01DxKvZDU2UzhsPFz1nQzo+6OD2HP4YWzqxzf5EejgLDr0+AQx5MNKxbcipI5Z/BjVWGihgoQNsbDrfwRGeL4yDa//EC2TsAkxRceiTsxDf0EGpg4syUcyIHGIyi+4D9NVihid4BDE3sW0mNFjaGgOrgSHp1lYqNHOJn4piSFHcJaDFW4oNt5IHJIeIe2FawUabPBzKd4i7D1qoQZWBDOb980kbNe81AM3vpY/yh3owpontqoBtBYS/Enl1bDLWc6D624xz/6Ok= 23 | file_glob: true 24 | file: bin_release/* 25 | skip_cleanup: true 26 | on: 27 | tags: true 28 | go: 1.15.x 29 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | BIN=bin 2 | 3 | IMAGE_NAME=freenas-provisioner 4 | IMAGE_VERSION=2.7 5 | REMOTE_NAME=$(DOCKER_ID_USER)/$(IMAGE_NAME) 6 | 7 | .PHONY: all 8 | all: build 9 | 10 | .PHONY: fmt 11 | fmt: 12 | go fmt ./... 13 | 14 | tmp: 15 | mkdir -p tmp/ 16 | 17 | $(BIN): 18 | mkdir -p $(BIN) 19 | 20 | .PHONY: image 21 | image: tmp check-docker-hub 22 | wget -O tmp/freenas-provisioner https://github.com/nmaupu/freenas-provisioner/releases/download/v$(IMAGE_VERSION)/freenas-provisioner_linux-amd64 && \ 23 | chmod +x tmp/freenas-provisioner 24 | docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) -f Dockerfile . 25 | 26 | .PHONY: tag 27 | tag: image 28 | docker tag $(IMAGE_NAME):$(IMAGE_VERSION) $(REMOTE_NAME):$(IMAGE_VERSION) 29 | 30 | .PHONY: push 31 | push: tag 32 | docker push $(REMOTE_NAME):$(IMAGE_VERSION) 33 | 34 | .PHONY: build 35 | $(BIN)/freenas-provisioner build: $(BIN) $(shell find . -name "*.go") 36 | env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner . 37 | 38 | .PHONY: linuxarm 39 | $(BIN)/freenas-provisioner-arm linuxarm: $(BIN) $(shell find . -name "*.go") 40 | env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner-arm . 41 | 42 | .PHONY: darwin 43 | $(BIN)/freenas-provisioner-darwin darwin: $(BIN) $(shell find . -name "*.go") 44 | env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner-darwin . 45 | 46 | .PHONY: freebsd 47 | $(BIN)/freenas-provisioner-freebsd freebsd: $(BIN) $(shell find . -name "*.go") 48 | env CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner-freebsd . 49 | 50 | .PHONY: clean 51 | clean: 52 | go clean -i 53 | rm -rf $(BIN) 54 | rm -rf tmp 55 | rm -rf vendor 56 | 57 | .PHONY: check-docker-hub 58 | check-docker-hub: 59 | ifndef DOCKER_ID_USER 60 | $(error ERROR! DOCKER_ID_USER environment variable must be defined) 61 | endif 62 | -------------------------------------------------------------------------------- /cli/command.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "context" 5 | "flag" 6 | "fmt" 7 | "os" 8 | "syscall" 9 | 10 | "github.com/golang/glog" 11 | cli "github.com/jawher/mow.cli" 12 | freenasProvisioner "github.com/nmaupu/freenas-provisioner/provisioner" 13 | "k8s.io/client-go/kubernetes" 14 | "k8s.io/client-go/rest" 15 | "k8s.io/client-go/tools/clientcmd" 16 | "sigs.k8s.io/sig-storage-lib-external-provisioner/v6/controller" 17 | ) 18 | 19 | const ( 20 | exponentialBackOffOnError = false 21 | ) 22 | 23 | var ( 24 | // cli parameters 25 | kubeconfig *string 26 | identifier *string 27 | provisionerName *string 28 | ) 29 | 30 | // Process all command line parameters 31 | func Process(appName, appDesc, appVersion string) { 32 | syscall.Umask(0) 33 | flag.Set("logtostderr", "true") 34 | flag.CommandLine.Parse([]string{}) 35 | 36 | app := cli.App(appName, appDesc) 37 | app.Version("v version", fmt.Sprintf("%s version %s", appName, appVersion)) 38 | 39 | kubeconfig = app.String(cli.StringOpt{ 40 | Name: "kubeconfig", 41 | Desc: "Path to kubernetes configuration file (for out of cluster execution)", 42 | EnvVar: "KUBECONFIG", 43 | }) 44 | identifier = app.String(cli.StringOpt{ 45 | Name: "i identifier", 46 | Value: "freenas-nfs-provisioner", 47 | Desc: "Provisioner identifier (e.g. if unsure set it to current node name)", 48 | EnvVar: "IDENTIFIER", 49 | }) 50 | provisionerName = app.String(cli.StringOpt{ 51 | Name: "provisioner-name", 52 | Value: "freenas.org/nfs", 53 | Desc: "Provisioner Name (e.g. 'provisioner' attribute of storage-class)", 54 | EnvVar: "PROVISIONER_NAME", 55 | }) 56 | 57 | app.Action = execute 58 | app.Run(os.Args) 59 | } 60 | 61 | func execute() { 62 | var err error 63 | var config *rest.Config 64 | 65 | /* Params checking */ 66 | var msgs []string 67 | if *identifier == "" { 68 | msgs = append(msgs, "Identifier parameter must be specified") 69 | } 70 | 71 | // Print all parameters' error and exist if need be 72 | if len(msgs) > 0 { 73 | fmt.Fprintf(os.Stderr, "The following error(s) occured:\n") 74 | for _, m := range msgs { 75 | fmt.Fprintf(os.Stderr, " - %s\n", m) 76 | } 77 | os.Exit(1) 78 | } 79 | /* End params checking */ 80 | 81 | if *kubeconfig != "" { 82 | // use the current context in kubeconfig 83 | config, err = clientcmd.BuildConfigFromFlags("", *kubeconfig) 84 | } else { 85 | // Create an InClusterConfig and use it to create a client for the controller 86 | // to use to communicate with Kubernetes 87 | config, err = rest.InClusterConfig() 88 | } 89 | if err != nil { 90 | glog.Fatalf("Failed to create config: %v", err) 91 | } 92 | 93 | clientset, err := kubernetes.NewForConfig(config) 94 | if err != nil { 95 | glog.Fatalf("Failed to create client: %v", err) 96 | } 97 | 98 | // The controller needs to know what the server version is because out-of-tree 99 | // provisioners aren't officially supported until 1.5 100 | serverVersion, err := clientset.Discovery().ServerVersion() 101 | if err != nil { 102 | glog.Fatalf("Error getting server version: %v", err) 103 | } 104 | 105 | clientFreenasProvisioner := freenasProvisioner.New( 106 | clientset, 107 | *identifier, 108 | ) 109 | 110 | // Start the provision controller which will dynamically provision datasets and nfs shares 111 | pc := controller.NewProvisionController( 112 | clientset, 113 | *provisionerName, 114 | clientFreenasProvisioner, 115 | serverVersion.GitVersion, 116 | controller.ExponentialBackOffOnError(exponentialBackOffOnError), 117 | ) 118 | pc.Run(context.Background()) 119 | } 120 | -------------------------------------------------------------------------------- /freenas/nfs.go: -------------------------------------------------------------------------------- 1 | package freenas 2 | 3 | import ( 4 | "encoding/json" 5 | "errors" 6 | "fmt" 7 | "github.com/golang/glog" 8 | ) 9 | 10 | var ( 11 | _ FreenasResource = &NfsShare{} 12 | ) 13 | 14 | type NfsShare struct { 15 | Id int `json:"id,omitempty"` 16 | Alldirs bool `json:"nfs_alldirs,omitempty"` 17 | Comment string `json:"nfs_comment,omitempty"` 18 | Hosts string `json:"nfs_hosts,omitempty"` 19 | MapallUser string `json:"nfs_mapall_user,omitempty"` 20 | MapallGroup string `json:"nfs_mapall_group,omitempty"` 21 | MaprootUser string `json:"nfs_maproot_user,omitempty"` 22 | MaprootGroup string `json:"nfs_maproot_group,omitempty"` 23 | Network string `json:"nfs_network,omitempty"` 24 | Paths []string `json:"nfs_paths"` 25 | Security []string `json:"nfs_security"` 26 | Quiet bool `json:"nfs_quiet,omitempty"` 27 | ReadOnly bool `json:"nfs_ro,omitempty"` 28 | } 29 | 30 | func (n *NfsShare) CopyFrom(source FreenasResource) error { 31 | src, ok := source.(*NfsShare) 32 | if ok { 33 | n.Id = src.Id 34 | n.Alldirs = src.Alldirs 35 | n.Comment = src.Comment 36 | n.Hosts = src.Hosts 37 | n.MapallUser = src.MapallUser 38 | n.MapallGroup = src.MapallGroup 39 | n.MaprootUser = src.MaprootUser 40 | n.MaprootGroup = src.MaprootGroup 41 | n.Network = src.Network 42 | n.Paths = src.Paths 43 | n.Security = src.Security 44 | n.Quiet = src.Quiet 45 | n.ReadOnly = src.ReadOnly 46 | } 47 | 48 | return errors.New("Cannot copy, src is not a NfsShare") 49 | } 50 | 51 | func (n *NfsShare) Get(server *FreenasServer) error { 52 | if n.Id > 0 { 53 | endpoint := fmt.Sprintf("/api/v1.0/sharing/nfs/%d/", n.Id) 54 | var nfs NfsShare 55 | var e interface{} 56 | resp, err := server.getSlingConnection().Get(endpoint).Receive(&nfs, &e) 57 | if err != nil { 58 | glog.Warningln(err) 59 | return err 60 | } 61 | defer resp.Body.Close() 62 | 63 | if resp.StatusCode != 200 { 64 | body, _ := json.Marshal(e) 65 | return errors.New(fmt.Sprintf("Error getting NFS share \"%s\" - message: %v, status: %d", n.Paths, string(body), resp.StatusCode)) 66 | } 67 | 68 | n.CopyFrom(&nfs) 69 | 70 | return nil 71 | } 72 | 73 | endpoint := "/api/v1.0/sharing/nfs/?limit=1000" 74 | var shares []NfsShare 75 | var e interface{} 76 | resp, err := server.getSlingConnection().Get(endpoint).Receive(&shares, &e) 77 | 78 | if err != nil { 79 | glog.Warningln(err) 80 | return err 81 | } 82 | defer resp.Body.Close() 83 | 84 | if resp.StatusCode != 200 { 85 | body, _ := json.Marshal(e) 86 | return errors.New(fmt.Sprintf("Error getting NFS share \"%s\" - message: %v, status: %d", n.Paths, string(body), resp.StatusCode)) 87 | } 88 | 89 | for _, share := range shares { 90 | if share.contains(n.Paths[0]) { 91 | n.CopyFrom(&share) 92 | return nil 93 | } 94 | } 95 | 96 | // Nothing found 97 | return errors.New("No NfsShare has been found") 98 | } 99 | 100 | func (s *NfsShare) contains(path string) bool { 101 | for _, p := range s.Paths { 102 | if p == path { 103 | return true 104 | } 105 | } 106 | 107 | return false 108 | } 109 | 110 | func (n *NfsShare) Create(server *FreenasServer) error { 111 | endpoint := "/api/v1.0/sharing/nfs/" 112 | var nfs NfsShare 113 | var e interface{} 114 | resp, err := server.getSlingConnection().Post(endpoint).BodyJSON(n).Receive(&nfs, &e) 115 | if err != nil { 116 | glog.Warningln(err) 117 | return err 118 | } 119 | defer resp.Body.Close() 120 | 121 | if resp.StatusCode != 201 { 122 | body, _ := json.Marshal(e) 123 | return errors.New(fmt.Sprintf("Error creating NFS share for %+v - %v", *n, string(body))) 124 | } 125 | 126 | n.CopyFrom(&nfs) 127 | 128 | return nil 129 | } 130 | 131 | func (n *NfsShare) Delete(server *FreenasServer) error { 132 | endpoint := fmt.Sprintf("/api/v1.0/sharing/nfs/%d/", n.Id) 133 | var e interface{} 134 | resp, err := server.getSlingConnection().Delete(endpoint).Receive(nil, &e) 135 | if err != nil { 136 | glog.Warningln(err) 137 | return err 138 | } 139 | defer resp.Body.Close() 140 | 141 | if resp.StatusCode != 204 { 142 | body, _ := json.Marshal(e) 143 | return errors.New(fmt.Sprintf("Error deleting NFS share \"%s\" - %v", n.Paths, string(body))) 144 | } 145 | 146 | return nil 147 | } 148 | -------------------------------------------------------------------------------- /deploy/class.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: StorageClass 3 | apiVersion: storage.k8s.io/v1 4 | metadata: 5 | name: freenas-nfs 6 | # annotations: 7 | # storageclass.kubernetes.io/is-default-class: "true" 8 | provisioner: freenas.org/nfs 9 | allowVolumeExpansion: true 10 | reclaimPolicy: Delete 11 | mountOptions: [] 12 | parameters: 13 | # namespace of the secret which contains FreeNAS server connection details 14 | # default: kube-system 15 | #serverSecretNamespace: 16 | 17 | # name of the secret which contains FreeNAS server connection details 18 | # default: freenas-nfs 19 | #serverSecretName: 20 | 21 | # the name of the parent dataset (or simply pool) where all resources will 22 | # be created, it *must* exist before provisioner will work 23 | # example: tank/k8s/mycluster 24 | # default: tank 25 | #datasetParentName: 26 | 27 | # whether to enforce quotas for each dataset 28 | # if enabled each newly provisioned dataset will set the appropriate quota 29 | # per the PVC 30 | # default: true 31 | #datasetEnableQuotas: 32 | 33 | # whether to reserve space when the dataset is create 34 | # if enabled each newly provisioned dataset will set the appropriate value 35 | # per the PVC 36 | # default: true 37 | #datasetEnableReservation: 38 | 39 | # if enabled provisioner will create parent datasets for each namespace 40 | # otherwise, all datasets will be provisioned in a flat manner 41 | # default: true 42 | #datasetEnableNamespaces: 43 | 44 | # if datasetEnableNamespaces is enabled, sets a per-namespace quota 45 | # example: 5M | 10G | 1T (M, Mi, MB, MiB, G, Gi, GB, GiB, T, Ti, TB, or TiB) 46 | # default: 0 (no quota) 47 | #datasetNamespaceQuota: 48 | 49 | # if datasetEnableNamespaces is enabled, sets a per-namespace reservation 50 | # this should not be greater than the datasetNamespaceQuota 51 | # example: 5M | 10G | 1T (M, Mi, MB, MiB, G, Gi, GB, GiB, T, Ti, TB, or TiB) 52 | # default: 0 53 | #datasetNamespaceReservation: 54 | 55 | # if enabled created datasets will adhere to reliable pattern 56 | # if datasetNamespaces == true dataset pattern is: // 57 | # if datasetNamespaces == false dataset pattern is: /- 58 | # if disabled, datasets will be created with a name pvc- (the name of the provisioned PV) 59 | # default: true 60 | #datasetDeterministicNames: 61 | 62 | # if enabled and datasetDeterministicNames is enabled then dataset that 63 | # already exist (pre-provisioned out of band) will be retained by the 64 | # provisioner during deletion of the reclaim process 65 | # ignored if datasetDeterministicNames is disabled (collisions result in failure) 66 | # default: true 67 | #datasetRetainPreExisting: 68 | 69 | # the following parameters determine permissions and ownership of the 70 | # dataset mount directory (on FreeNAS) immediately upon creation 71 | # default: 0777, root, wheel 72 | #datasetPermissionsMode: 73 | #datasetPermissionsUser: 74 | #datasetPermissionsGroup: 75 | 76 | # this determines what the 'server' property of the NFS share will be in 77 | # in kubernetes, it's purpose is to provide flexibility between the control 78 | # and data planes of FreeNAS 79 | # default: uses the 'host' value from the secret 80 | #shareHost: 81 | 82 | # determines if newly created NFS shares will have the 'All Directories' 83 | # option checked - note that some k8s versions (e.g OKD 3.11 which has v1.11.0 84 | # under the hood) may demand Strings as in "true" or "false" 85 | # default: true 86 | #shareAlldirs: 87 | 88 | # Authorized hosts/networks (space-separated) allowed to access the shares 89 | # default: "" 90 | #shareAllowedHosts: 91 | #shareAllowedNetworks: 92 | 93 | # Determines root mapping 94 | # cannot be used simultaneously with shareMapAll{User,Group} 95 | # default: root:wheel 96 | #shareMaprootUser: 97 | #shareMaprootGroup: 98 | 99 | # Determines user mapping for all access (not recommended) 100 | # cannot be used simultaneously with shareMaproot{User,Group} 101 | # default: "" 102 | #shareMapallUser: 103 | #shareMapallGroup: 104 | 105 | # if enabled and datasetDeterministicNames is enabled then shares that 106 | # already exist (pre-provisioned out of band) will be retained by the 107 | # provisioner during deletion of the reclaim process 108 | # ignored if datasetDeterministicNames is disabled (collisions result in failure) 109 | # default: true 110 | #shareRetainPreExisting: 111 | -------------------------------------------------------------------------------- /freenas/dataset.go: -------------------------------------------------------------------------------- 1 | package freenas 2 | 3 | import ( 4 | "encoding/json" 5 | "errors" 6 | "fmt" 7 | "github.com/golang/glog" 8 | "path/filepath" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ FreenasResource = &Dataset{} 14 | ) 15 | 16 | type Dataset struct { 17 | Avail int64 `json:"avail,omitempty"` 18 | Mountpoint string `json:"mountpoint,omitempty"` 19 | Name string `json:"name"` 20 | Pool string `json:"pool"` 21 | Recordsize int64 `json:"recordsize,omitempty"` 22 | Quota int64 `json:"quota,omitempty"` 23 | Reservation int64 `json:"reservation,omitempty"` 24 | Refquota int64 `json:"refquota,omitempty"` 25 | Refreservation int64 `json:"refreservation,omitempty"` 26 | Refer int64 `json:"refer,omitempty"` 27 | Used int64 `json:"used,omitempty"` 28 | Comments string `json:"comments,omitempty"` 29 | } 30 | 31 | func (d *Dataset) MarshalJSON() ([]byte, error) { 32 | data := &struct { 33 | Avail int64 `json:"avail,omitempty"` 34 | Mountpoint string `json:"mountpoint,omitempty"` 35 | Name string `json:"name"` 36 | Pool string `json:"pool"` 37 | Recordsize int64 `json:"recordsize,omitempty"` 38 | Quota string `json:"quota,omitempty"` 39 | Reservation string `json:"reservation,omitempty"` 40 | Refquota string `json:"refquota,omitempty"` 41 | Refreservation string `json:"refreservation,omitempty"` 42 | Refer int64 `json:"refer,omitempty"` 43 | Used int64 `json:"used,omitempty"` 44 | Comments string `json:"comments,omitempty"` 45 | }{ 46 | Avail: d.Avail, 47 | Mountpoint: d.Mountpoint, 48 | Name: d.Name, 49 | Pool: d.Pool, 50 | Recordsize: d.Recordsize, 51 | Refer: d.Refer, 52 | Used: d.Used, 53 | Comments: d.Comments, 54 | } 55 | 56 | if d.Quota > 0 { 57 | data.Quota = strconv.FormatInt(d.Quota, 10) + "b" 58 | } 59 | 60 | if d.Reservation > 0 { 61 | data.Reservation = strconv.FormatInt(d.Reservation, 10) + "b" 62 | } 63 | 64 | if d.Refquota > 0 { 65 | data.Refquota = strconv.FormatInt(d.Refquota, 10) + "b" 66 | } 67 | 68 | if d.Refreservation > 0 { 69 | data.Refreservation = strconv.FormatInt(d.Refreservation, 10) + "b" 70 | } 71 | 72 | return json.Marshal(data) 73 | } 74 | 75 | func (d *Dataset) String() string { 76 | return filepath.Join(d.Pool, d.Name) 77 | } 78 | 79 | func (d *Dataset) CopyFrom(source FreenasResource) error { 80 | src, ok := source.(*Dataset) 81 | if ok { 82 | d.Avail = src.Avail 83 | d.Mountpoint = src.Mountpoint 84 | d.Name = src.Name 85 | d.Pool = src.Pool 86 | d.Recordsize = src.Recordsize 87 | d.Quota = src.Quota 88 | d.Reservation = src.Reservation 89 | d.Refquota = src.Refquota 90 | d.Refreservation = src.Refreservation 91 | d.Refer = src.Refer 92 | d.Used = src.Used 93 | d.Comments = src.Comments 94 | } 95 | 96 | return errors.New("Cannot copy, src is not a Dataset") 97 | } 98 | 99 | func (d *Dataset) Get(server *FreenasServer) error { 100 | endpoint := fmt.Sprintf("/api/v1.0/storage/dataset/%s/", d.Name) 101 | var dataset Dataset 102 | var e interface{} 103 | resp, err := server.getSlingConnection().Get(endpoint).Receive(&dataset, &e) 104 | if err != nil { 105 | glog.Warningln(err) 106 | return err 107 | } 108 | defer resp.Body.Close() 109 | 110 | if resp.StatusCode != 200 { 111 | body, _ := json.Marshal(e) 112 | return errors.New(fmt.Sprintf("Error getting dataset \"%s\" - message: %v, status: %d", d.Name, string(body), resp.StatusCode)) 113 | } 114 | 115 | d.CopyFrom(&dataset) 116 | 117 | return nil 118 | } 119 | 120 | func (d *Dataset) Create(server *FreenasServer) error { 121 | parent, dsName := filepath.Split(d.Name) 122 | endpoint := fmt.Sprintf("/api/v1.0/storage/dataset/%s", parent) 123 | var dataset Dataset 124 | var e interface{} 125 | 126 | // rewrite Name attribute to support crazy api semantics 127 | d.Name = dsName 128 | 129 | resp, err := server.getSlingConnection().Post(endpoint).BodyJSON(d).Receive(&dataset, &e) 130 | 131 | // rewrite Name attribute to support crazy api semantics 132 | d.Name = filepath.Join(parent, dsName) 133 | 134 | if err != nil { 135 | glog.Warningln(err) 136 | return err 137 | } 138 | defer resp.Body.Close() 139 | 140 | if resp.StatusCode != 201 { 141 | body, _ := json.Marshal(e) 142 | return errors.New(fmt.Sprintf("Error creating dataset \"%s\" - message: %v, status: %d", d.Name, string(body), resp.StatusCode)) 143 | } 144 | 145 | d.CopyFrom(&dataset) 146 | 147 | return nil 148 | } 149 | 150 | func (d *Dataset) Delete(server *FreenasServer) error { 151 | endpoint := fmt.Sprintf("/api/v1.0/storage/dataset/%s/", d.Name) 152 | var e interface{} 153 | resp, err := server.getSlingConnection().Delete(endpoint).Receive(nil, &e) 154 | if err != nil { 155 | glog.Warningln(err) 156 | return err 157 | } 158 | defer resp.Body.Close() 159 | 160 | if resp.StatusCode != 204 { 161 | body, _ := json.Marshal(e) 162 | return errors.New(fmt.Sprintf("Error deleting dataset \"%s\" - %v", d.Name, string(body))) 163 | } 164 | 165 | return nil 166 | } 167 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/nmaupu/freenas-provisioner.svg?branch=master)](https://travis-ci.org/nmaupu/freenas-provisioner) 2 | [![Go Report Card](https://goreportcard.com/badge/github.com/nmaupu/freenas-provisioner)](https://goreportcard.com/report/github.com/nmaupu/freenas-provisioner) 3 | 4 | # freenas-provisioner 5 | 6 | FreeNAS-provisioner is a Kubernetes external provisioner. 7 | When a `PersistentVolumeClaim` appears on a Kube cluster, the provisioner will 8 | make the corresponding calls to the configured FreeNAS API to create a dataset 9 | and a NFS share usable by the claim. When the claim or the persistent volume is 10 | deleted, the provisioner deletes the previously created dataset and share. 11 | 12 | See this for more info on external provisioner: 13 | https://github.com/kubernetes-incubator/external-storage 14 | 15 | # Usage 16 | 17 | The scope of the provisioner allows for a single instance to service multiple 18 | classes (and/or FreeNAS servers). The provisioner itself can be deployed into 19 | the cluster or ran out of cluster, for example, directly on a FreeNAS server. 20 | 21 | Each `StorageClass` should have a corresponding `Secret` created which contains 22 | the credentials and host information used to communicate with with FreeNAS API. 23 | In essence each `Secret` corresponds to a FreeNAS server. 24 | 25 | The `Secret` namespace and name may be customized using the appropriate 26 | `StorageClass` `parameters`. By default `kube-system` and `freenas-nfs` are 27 | used. While multiple `StorageClass` resources may point to the same server 28 | and hence same `Secret`, it is recommended to create a new `Secret` for each 29 | `StorageClass` resource. 30 | 31 | It is **highly** recommended to read `deploy/claim.yaml` to review available 32 | `parameters` and gain a better understanding of functionality and behavior. 33 | 34 | ## FreeNAS Setup 35 | 36 | You must manually create a dataset. You may simply use a pool as the parent 37 | dataset but it's recommended to create a dedicated dataset. 38 | 39 | Additionally, you need to enabled the NFS service. It's highly recommended to 40 | configure the NFS service as v3. If v4 must be used then it's also recommended 41 | to enable the `NFSv3 ownership model for NFSv4` option. 42 | 43 | ## Provision the provisioner 44 | 45 | Run it on the cluster: 46 | 47 | ``` 48 | kubectl apply -f deploy/rbac.yaml -f deploy/deployment.yaml 49 | ``` 50 | 51 | Alternatively, for advanced use-cases you may run the provisioner out of cluster 52 | including directly on the FreeNAS server if desired. Running out of cluster is 53 | not currently recommended. 54 | 55 | ``` 56 | ./bin/freenas-provisioner-freebsd --kubeconfig=/path/to/kubeconfig.yaml 57 | ``` 58 | 59 | ## Create `StorageClass` and `Secret` 60 | 61 | All the necessary resources are available in the `deploy` folder. At a minimum 62 | `secret.yaml` must be modified (remember to `base64` the values) to reflect the 63 | server details. You may also want to read `class.yaml` to review available 64 | `parameters` of the storage class. For instance to set the `datasetParentName`. 65 | 66 | ``` 67 | kubectl apply -f deploy/secret.yaml -f deploy/class.yaml 68 | ``` 69 | 70 | ## Example usage 71 | 72 | Next, create a `PersistentVolumeClaim` using the storage class 73 | (`deploy/test-claim.yaml`): 74 | 75 | ``` 76 | --- 77 | kind: PersistentVolumeClaim 78 | apiVersion: v1 79 | metadata: 80 | name: freenas-test-pvc 81 | spec: 82 | storageClassName: freenas-nfs 83 | accessModes: 84 | - ReadWriteMany 85 | resources: 86 | requests: 87 | storage: 1Mi 88 | ``` 89 | 90 | Use that claim on a testing pod (`deploy/test-pod.yaml`): 91 | 92 | ``` 93 | --- 94 | kind: Pod 95 | apiVersion: v1 96 | metadata: 97 | name: freenas-test-pod 98 | spec: 99 | containers: 100 | - name: freenas-test-pod 101 | image: gcr.io/google_containers/busybox:1.24 102 | command: 103 | - "/bin/sh" 104 | args: 105 | - "-c" 106 | - "date >> /mnt/file.log && exit 0 || exit 1" 107 | volumeMounts: 108 | - name: freenas-test-volume 109 | mountPath: "/mnt" 110 | restartPolicy: "Never" 111 | volumes: 112 | - name: freenas-test-volume 113 | persistentVolumeClaim: 114 | claimName: freenas-test-pvc 115 | ``` 116 | 117 | The underlying dataset / NFS share should quickly be appearing up on FreeNAS 118 | side. In case of issue, follow the provisioner's logs using: 119 | 120 | ``` 121 | kubectl -n kube-system logs -f freenas-nfs-provisioner- 122 | ``` 123 | 124 | # Development 125 | 126 | ``` 127 | make vendor && make 128 | ``` 129 | 130 | Binary is located into `bin/freenas-provisioner`. It is compiled to be run on 131 | `linux-amd64` by default, but you may run the following for different builds: 132 | 133 | ``` 134 | make vendor && make darwin 135 | # OR 136 | make vendor && make freebsd 137 | ``` 138 | 139 | To run locally with an appropriate `$KUBECONFIG` you may run: 140 | 141 | ``` 142 | ./local-start.sh 143 | ``` 144 | 145 | To format code before committing: 146 | 147 | ``` 148 | make fmt 149 | ``` 150 | 151 | ## Release 152 | 153 | - Update the Makefile with the future new version to be released and pushed (docker image) 154 | - Update `deploy/deployment.yaml` with the new image version as well 155 | - Commit, push 156 | - Create a tag: 157 | 158 | ``` 159 | git tag v 160 | git push --tags 161 | ``` 162 | 163 | - Once release is done by Travis, push the new docker image: 164 | 165 | ``` 166 | make push 167 | ``` 168 | 169 | ## Docs 170 | 171 | * https://github.com/kubernetes/community/tree/master/contributors/design-proposals/storage 172 | * https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/volume-provisioning.md 173 | * https://kubernetes.io/docs/concepts/storage/storage-classes/ 174 | * https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#-strong-api-overview-strong- 175 | * https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/container-storage-interface.md 176 | * https://github.com/kubernetes-csi/drivers/tree/master/pkg 177 | 178 | ## TODO 179 | 180 | * volume resizing - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/grow-volume-size.md 181 | * volume snapshots - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/volume-snapshotting.md 182 | * ~~mount options - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/mount-options.md~~ 183 | * ~~support multiple instances (secrets in storage class)~~ 184 | * cleanup empty namespaces? 185 | * ~~do not delete when deterministic volumes pre-existed (ie: only delete if the provisioner created volume)~~ 186 | * https://github.com/kubernetes-incubator/external-storage/blob/master/ceph/cephfs/cephfs-provisioner.go#L225 187 | * iscsi 188 | 189 | ## Notes 190 | 191 | To sniff API traffic between host and server: 192 | 193 | ``` 194 | sudo tcpdump -A -s 0 'host and tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' 195 | ``` 196 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /provisioner/provisioner.go: -------------------------------------------------------------------------------- 1 | package provisioner 2 | 3 | import ( 4 | "context" 5 | "errors" 6 | "fmt" 7 | "path/filepath" 8 | "strconv" 9 | "strings" 10 | 11 | "code.cloudfoundry.org/bytefmt" 12 | "github.com/golang/glog" 13 | "github.com/nmaupu/freenas-provisioner/freenas" 14 | v1 "k8s.io/api/core/v1" 15 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 16 | "k8s.io/client-go/kubernetes" 17 | "sigs.k8s.io/sig-storage-lib-external-provisioner/v6/controller" 18 | ) 19 | 20 | var ( 21 | // freenasProvisioner is an implem of controller.Provisioner 22 | _ controller.Provisioner = &freenasProvisioner{} 23 | ) 24 | 25 | type freenasProvisionerConfig struct { 26 | // Dataset options 27 | DatasetParentName string 28 | DatasetEnableQuotas bool 29 | DatasetEnableReservation bool 30 | DatasetEnableNamespaces bool 31 | DatasetNamespaceQuota int64 32 | DatasetNamespaceReservation int64 33 | DatasetEnableDeterministicNames bool 34 | DatasetRetainPreExisting bool 35 | DatasetPermissionsMode string 36 | DatasetPermissionsUser string 37 | DatasetPermissionsGroup string 38 | 39 | // Share options 40 | ShareHost string 41 | ShareAlldirs bool 42 | ShareAllowedHosts string 43 | ShareAllowedNetworks string 44 | ShareMaprootUser string 45 | ShareMaprootGroup string 46 | ShareMapallUser string 47 | ShareMapallGroup string 48 | ShareRetainPreExisting bool 49 | 50 | // Server options 51 | ServerSecretNamespace string 52 | ServerSecretName string 53 | ServerProtocol string 54 | ServerHost string 55 | ServerPort int 56 | ServerUsername string 57 | ServerPassword string 58 | ServerAllowInsecure bool 59 | } 60 | 61 | func (p *freenasProvisioner) GetConfig(ctx context.Context, storageClassName string) (*freenasProvisionerConfig, error) { 62 | class, err := p.Client.StorageV1().StorageClasses().Get(ctx, storageClassName, metav1.GetOptions{}) 63 | if err != nil { 64 | return nil, err 65 | } 66 | 67 | // dataset defaults 68 | var datasetParentName string = "tank" 69 | var datasetEnableQuotas bool = true 70 | var datasetEnableReservation bool = true 71 | var datasetEnableNamespaces bool = true 72 | var datasetNamespaceQuota int64 = 0 73 | var datasetNamespaceReservation int64 = 0 74 | var datasetEnableDeterministicNames bool = true 75 | var datasetRetainPreExisting bool = true 76 | var datasetPermissionsMode string = "0777" 77 | var datasetPermissionsUser string = "root" 78 | var datasetPermissionsGroup string = "wheel" 79 | 80 | // share defaults 81 | var shareHost string = "" 82 | var shareAlldirs bool = true 83 | var shareAllowedHosts string = "" 84 | var shareAllowedNetworks string = "" 85 | var shareMaprootUser string = "root" 86 | var shareMaprootGroup string = "wheel" 87 | var shareMapallUser string = "" 88 | var shareMapallGroup string = "" 89 | var shareRetainPreExisting bool = true 90 | 91 | // server options 92 | var serverSecretNamespace string = "kube-system" 93 | var serverSecretName string = "freenas-nfs" 94 | var serverProtocol string = "http" 95 | var serverHost string = "localhost" 96 | var serverPort int = 80 97 | var serverUsername string = "root" 98 | var serverPassword string = "" 99 | var serverAllowInsecure bool = false 100 | 101 | // set values from StorageClass parameters 102 | for k, v := range class.Parameters { 103 | switch k { 104 | // Dataset options 105 | case "datasetParentName": 106 | datasetParentName = v 107 | case "datasetEnableQuotas": 108 | datasetEnableQuotas, _ = strconv.ParseBool(v) 109 | case "datasetEnableReservation": 110 | datasetEnableReservation, _ = strconv.ParseBool(v) 111 | case "datasetEnableNamespaces": 112 | datasetEnableNamespaces, _ = strconv.ParseBool(v) 113 | case "datasetNamespaceQuota": 114 | datasetNamespaceQuotaUint, err := bytefmt.ToBytes(v) 115 | if err != nil { 116 | return nil, err 117 | } 118 | datasetNamespaceQuota = int64(datasetNamespaceQuotaUint) 119 | case "datasetNamespaceReservation": 120 | datasetNamespaceReservationUint, err := bytefmt.ToBytes(v) 121 | if err != nil { 122 | return nil, err 123 | } 124 | datasetNamespaceReservation = int64(datasetNamespaceReservationUint) 125 | case "datasetEnableDeterministicNames": 126 | datasetEnableDeterministicNames, _ = strconv.ParseBool(v) 127 | case "datasetRetainPreExisting": 128 | datasetRetainPreExisting, _ = strconv.ParseBool(v) 129 | case "datasetPermissionsMode": 130 | datasetPermissionsMode = v 131 | case "datasetPermissionsUser": 132 | datasetPermissionsUser = v 133 | case "datasetPermissionsGroup": 134 | datasetPermissionsGroup = v 135 | 136 | // Share options 137 | case "shareHost": 138 | shareHost = v 139 | case "shareAlldirs": 140 | shareAlldirs, _ = strconv.ParseBool(v) 141 | case "shareAllowedHosts": 142 | shareAllowedHosts = v 143 | case "shareAllowedNetworks": 144 | shareAllowedNetworks = v 145 | case "shareMaprootUser": 146 | shareMaprootUser = v 147 | case "shareMaprootGroup": 148 | shareMaprootGroup = v 149 | case "shareMapallUser": 150 | shareMapallUser = v 151 | case "shareMapallGroup": 152 | shareMapallGroup = v 153 | case "shareRetainPreExisting": 154 | shareRetainPreExisting, _ = strconv.ParseBool(v) 155 | 156 | // Server options 157 | case "serverSecretNamespace": 158 | serverSecretNamespace = v 159 | case "serverSecretName": 160 | serverSecretName = v 161 | } 162 | } 163 | 164 | secret, err := p.GetSecret(ctx, serverSecretNamespace, serverSecretName) 165 | if err != nil { 166 | return nil, err 167 | } 168 | 169 | // set values from secret 170 | for k, v := range secret.Data { 171 | switch k { 172 | case "protocol": 173 | serverProtocol = BytesToString(v) 174 | case "host": 175 | serverHost = BytesToString(v) 176 | case "port": 177 | serverPort, _ = strconv.Atoi(BytesToString(v)) 178 | case "username": 179 | serverUsername = BytesToString(v) 180 | case "password": 181 | serverPassword = BytesToString(v) 182 | case "allowInsecure": 183 | serverAllowInsecure, _ = strconv.ParseBool(BytesToString(v)) 184 | } 185 | } 186 | 187 | if shareHost == "" { 188 | shareHost = serverHost 189 | } 190 | 191 | return &freenasProvisionerConfig{ 192 | // Dataset options 193 | DatasetParentName: datasetParentName, 194 | DatasetEnableQuotas: datasetEnableQuotas, 195 | DatasetEnableReservation: datasetEnableReservation, 196 | DatasetEnableNamespaces: datasetEnableNamespaces, 197 | DatasetNamespaceQuota: datasetNamespaceQuota, 198 | DatasetNamespaceReservation: datasetNamespaceReservation, 199 | DatasetEnableDeterministicNames: datasetEnableDeterministicNames, 200 | DatasetRetainPreExisting: datasetRetainPreExisting, 201 | DatasetPermissionsMode: datasetPermissionsMode, 202 | DatasetPermissionsUser: datasetPermissionsUser, 203 | DatasetPermissionsGroup: datasetPermissionsGroup, 204 | 205 | // Share options 206 | ShareHost: shareHost, 207 | ShareAlldirs: shareAlldirs, 208 | ShareAllowedHosts: shareAllowedHosts, 209 | ShareAllowedNetworks: shareAllowedNetworks, 210 | ShareMaprootUser: shareMaprootUser, 211 | ShareMaprootGroup: shareMaprootGroup, 212 | ShareMapallUser: shareMapallUser, 213 | ShareMapallGroup: shareMapallGroup, 214 | ShareRetainPreExisting: shareRetainPreExisting, 215 | 216 | // Server options 217 | ServerSecretNamespace: serverSecretNamespace, 218 | ServerSecretName: serverSecretName, 219 | ServerProtocol: serverProtocol, 220 | ServerHost: serverHost, 221 | ServerPort: serverPort, 222 | ServerUsername: serverUsername, 223 | ServerPassword: serverPassword, 224 | ServerAllowInsecure: serverAllowInsecure, 225 | }, nil 226 | } 227 | 228 | type freenasProvisioner struct { 229 | Client kubernetes.Interface 230 | Identifier string 231 | } 232 | 233 | func New(client kubernetes.Interface, identifier string) controller.Provisioner { 234 | return &freenasProvisioner{ 235 | Client: client, 236 | Identifier: identifier, 237 | } 238 | } 239 | 240 | // Provision a dataset and creates an NFS share on Freenas side 241 | func (p *freenasProvisioner) Provision(ctx context.Context, options controller.ProvisionOptions) (*v1.PersistentVolume, controller.ProvisioningState, error) { 242 | var err error 243 | 244 | // get config 245 | config, err := p.GetConfig(ctx, *options.PVC.Spec.StorageClassName) 246 | if err != nil { 247 | return nil, controller.ProvisioningFinished, err 248 | } 249 | //glog.Infof("%+v\n", config) 250 | 251 | // get server 252 | freenasServer, err := p.GetServer(*config) 253 | if err != nil { 254 | return nil, controller.ProvisioningFinished, err 255 | } 256 | 257 | // get parent dataset 258 | parentDs := freenas.Dataset{ 259 | Name: config.DatasetParentName, 260 | } 261 | err = parentDs.Get(freenasServer) 262 | if err != nil { 263 | return nil, controller.ProvisioningFinished, err 264 | } 265 | 266 | meta := options.PVC.GetObjectMeta() 267 | dsName := options.PVName 268 | dsNamespace := "" 269 | 270 | if config.DatasetEnableNamespaces { 271 | dsNamespace = meta.GetNamespace() 272 | } 273 | 274 | if config.DatasetEnableDeterministicNames { 275 | if config.DatasetEnableNamespaces { 276 | dsName = meta.GetName() 277 | } else { 278 | dsName = meta.GetNamespace() + "-" + meta.GetName() 279 | } 280 | } 281 | 282 | path := filepath.Join(parentDs.Mountpoint, dsNamespace, dsName) 283 | dsPath := filepath.Join(config.DatasetParentName, dsNamespace, dsName) 284 | datasetComments := fmt.Sprintf("%s/%s/%s", meta.GetClusterName(), meta.GetNamespace(), meta.GetName()) 285 | var datasetRefquota, datasetRefreservation, datasetRecordsize int64 = 0, 0, 0 286 | 287 | if config.DatasetEnableQuotas { 288 | volSize := options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)] 289 | datasetRefquota = volSize.Value() 290 | } 291 | 292 | if config.DatasetEnableReservation { 293 | volSize := options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)] 294 | datasetRefreservation = volSize.Value() 295 | } 296 | 297 | ds := freenas.Dataset{ 298 | Pool: parentDs.Pool, 299 | Name: dsPath, 300 | Refquota: datasetRefquota, 301 | Refreservation: datasetRefreservation, 302 | Recordsize: datasetRecordsize, 303 | Comments: datasetComments, 304 | } 305 | 306 | share := freenas.NfsShare{ 307 | Paths: []string{path}, 308 | ReadOnly: false, 309 | Alldirs: config.ShareAlldirs, 310 | Hosts: config.ShareAllowedHosts, 311 | Network: config.ShareAllowedNetworks, 312 | MaprootUser: config.ShareMaprootUser, 313 | MaprootGroup: config.ShareMaprootGroup, 314 | MapallUser: config.ShareMapallUser, 315 | MapallGroup: config.ShareMapallGroup, 316 | Comment: TruncateString(fmt.Sprintf("freenas-provisioner (%s): %s", p.Identifier, dsPath), 120), 317 | } 318 | 319 | glog.Infof("Creating dataset: \"%s\", NFS share: \"%s\"", ds.Name, path) 320 | 321 | // Provisioning dataset and nfs share 322 | var datasetPreExisted, sharePreExisted = false, false 323 | if config.DatasetEnableNamespaces { 324 | nsDs := freenas.Dataset{ 325 | Pool: parentDs.Pool, 326 | Name: filepath.Join(parentDs.Name, dsNamespace), 327 | Quota: config.DatasetNamespaceQuota, 328 | Reservation: config.DatasetNamespaceReservation, 329 | Comments: "k8s provisioned namespace", 330 | } 331 | 332 | err = nsDs.Get(freenasServer) 333 | if err != nil { 334 | glog.Infof("creating namespace dataset \"%s\"", nsDs.Name) 335 | err = nsDs.Create(freenasServer) 336 | } else { 337 | glog.Infof("namespace dataset \"%s\" already exists", nsDs.Name) 338 | } 339 | } 340 | if err != nil { 341 | return nil, controller.ProvisioningFinished, err 342 | } 343 | 344 | if config.DatasetEnableDeterministicNames { 345 | err = ds.Get(freenasServer) 346 | 347 | if err != nil { 348 | err = ds.Create(freenasServer) 349 | } else { 350 | datasetPreExisted = true 351 | glog.Infof("dataset \"%s\" already exists", ds.Name) 352 | } 353 | } else { 354 | err = ds.Create(freenasServer) 355 | } 356 | if err != nil { 357 | return nil, controller.ProvisioningFinished, err 358 | } 359 | 360 | if config.DatasetEnableDeterministicNames { 361 | err = share.Get(freenasServer) 362 | if err != nil { 363 | err = share.Create(freenasServer) 364 | } else { 365 | sharePreExisted = true 366 | glog.Infof("share \"%s\" already exists", path) 367 | } 368 | } else { 369 | err = share.Create(freenasServer) 370 | } 371 | if err != nil { 372 | return nil, controller.ProvisioningFinished, err 373 | } 374 | 375 | glog.Infof("setting permissions on path \"%s\" to - mode: %s, owner: %s:%s", path, config.DatasetPermissionsMode, config.DatasetPermissionsUser, config.DatasetPermissionsGroup) 376 | permission := freenas.Permission{ 377 | Path: path, 378 | Acl: "unix", 379 | Mode: config.DatasetPermissionsMode, 380 | User: config.DatasetPermissionsUser, 381 | Group: config.DatasetPermissionsGroup, 382 | } 383 | err = permission.Put(freenasServer) 384 | if err != nil { 385 | return nil, controller.ProvisioningFinished, err 386 | } 387 | 388 | pv := &v1.PersistentVolume{ 389 | ObjectMeta: metav1.ObjectMeta{ 390 | Name: options.PVName, 391 | Annotations: map[string]string{ 392 | "freenasNFSProvisionerIdentity": p.Identifier, 393 | "datasetPreExisted": strconv.FormatBool(datasetPreExisted), 394 | "sharePreExisted": strconv.FormatBool(sharePreExisted), 395 | "shareId": strconv.Itoa(share.Id), 396 | "datasetEnableQuotas": strconv.FormatBool(config.DatasetEnableQuotas), 397 | "datasetEnableReservation": strconv.FormatBool(config.DatasetEnableReservation), 398 | "datasetParent": config.DatasetParentName, 399 | "dataset": ds.Name, 400 | "pool": parentDs.Pool, 401 | }, 402 | }, 403 | Spec: v1.PersistentVolumeSpec{ 404 | PersistentVolumeReclaimPolicy: *options.StorageClass.ReclaimPolicy, 405 | AccessModes: options.PVC.Spec.AccessModes, 406 | MountOptions: options.StorageClass.MountOptions, 407 | Capacity: v1.ResourceList{ 408 | v1.ResourceName(v1.ResourceStorage): options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)], 409 | }, 410 | PersistentVolumeSource: v1.PersistentVolumeSource{ 411 | NFS: &v1.NFSVolumeSource{ 412 | Server: config.ShareHost, 413 | Path: path, 414 | ReadOnly: false, 415 | }, 416 | }, 417 | }, 418 | } 419 | 420 | return pv, controller.ProvisioningFinished, nil 421 | } 422 | 423 | // Prep for resizing 424 | // https://github.com/kubernetes-incubator/external-storage/blob/master/gluster/file/cmd/glusterfile-provisioner/glusterfile-provisioner.go#L433 425 | /* 426 | func (p *freenasProvisioner) RequiresFSResize() bool { 427 | return false 428 | } 429 | 430 | func (p *glusterfileProvisioner) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) { 431 | return newVolumeSize, nil 432 | } 433 | 434 | func (p *iscsiProvisioner) SupportsBlock() bool { 435 | return true 436 | } 437 | 438 | */ 439 | 440 | func (p *freenasProvisioner) Delete(ctx context.Context, volume *v1.PersistentVolume) error { 441 | var datasetPreExisted, sharePreExisted bool = false, false 442 | var shareId int 443 | 444 | shareIdAnnotation, ok := volume.Annotations["shareId"] 445 | if ok { 446 | shareId, _ = strconv.Atoi(shareIdAnnotation) 447 | } 448 | 449 | datasetPreExistedAnnotation, ok := volume.Annotations["datasetPreExisted"] 450 | if ok { 451 | datasetPreExisted, _ = strconv.ParseBool(datasetPreExistedAnnotation) 452 | } 453 | 454 | sharePreExistedAnnotation, ok := volume.Annotations["sharePreExisted"] 455 | if ok { 456 | sharePreExisted, _ = strconv.ParseBool(sharePreExistedAnnotation) 457 | } 458 | 459 | poolName := volume.Annotations["pool"] 460 | datasetName := volume.Annotations["dataset"] 461 | 462 | var err error 463 | 464 | // get config 465 | config, err := p.GetConfig(ctx, volume.Spec.StorageClassName) 466 | if err != nil { 467 | return err 468 | } 469 | //glog.Infof("%+v\n", config) 470 | 471 | // get server 472 | freenasServer, err := p.GetServer(*config) 473 | if err != nil { 474 | return err 475 | } 476 | 477 | // get parent dataset 478 | parentDs := freenas.Dataset{ 479 | Name: config.DatasetParentName, 480 | } 481 | err = parentDs.Get(freenasServer) 482 | if err != nil { 483 | return err 484 | } 485 | 486 | // hydrate share 487 | path := volume.Spec.PersistentVolumeSource.NFS.Path 488 | share := freenas.NfsShare{ 489 | Id: shareId, 490 | Paths: []string{path}, 491 | } 492 | 493 | // hydrate dataset 494 | var ds freenas.Dataset 495 | if len(poolName) > 0 && len(datasetName) > 0 { 496 | ds = freenas.Dataset{ 497 | Pool: poolName, 498 | Name: datasetName, 499 | } 500 | } else { 501 | ds = freenas.Dataset{ 502 | Pool: parentDs.Pool, 503 | Name: config.DatasetParentName + strings.SplitN(path, config.DatasetParentName, 2)[1], 504 | } 505 | } 506 | glog.Infof("Deleting dataset: \"%s\", NFS share: \"%s\"", ds.Name, path) 507 | 508 | // delete share 509 | if (sharePreExisted == true && !config.ShareRetainPreExisting) || !sharePreExisted { 510 | err = share.Get(freenasServer) 511 | if err != nil { 512 | glog.Warningf(fmt.Sprintf("Could not find NFS share \"%s\" on server side, already deleted?", path)) 513 | } else { 514 | err = share.Delete(freenasServer) 515 | if err != nil { 516 | return errors.New(fmt.Sprintf("Could not delete NFS share \"%s\" on server side, ignoring. Error: %v", path, err)) 517 | } 518 | } 519 | } 520 | 521 | // delete dataset 522 | if (datasetPreExisted == true && !config.DatasetRetainPreExisting) || !datasetPreExisted { 523 | err = ds.Get(freenasServer) 524 | if err != nil { 525 | glog.Warningf(fmt.Sprintf("Could not find dataset \"%s\" on server side, already deleted ?", ds.Name)) 526 | } else { 527 | err = ds.Delete(freenasServer) 528 | if err != nil { 529 | return errors.New(fmt.Sprintf("Cannot delete dataset \"%s\". Error: %v", ds.Name, err)) 530 | } 531 | } 532 | } 533 | 534 | return nil 535 | } 536 | 537 | func (p *freenasProvisioner) GetServer(config freenasProvisionerConfig) (*freenas.FreenasServer, error) { 538 | return freenas.NewFreenasServer( 539 | config.ServerProtocol, config.ServerHost, config.ServerPort, 540 | config.ServerUsername, config.ServerPassword, 541 | config.ServerAllowInsecure, 542 | ), nil 543 | } 544 | 545 | func (p *freenasProvisioner) GetSecret(ctx context.Context, namespace, secretName string) (*v1.Secret, error) { 546 | if p.Client == nil { 547 | return nil, fmt.Errorf("Cannot get kube client") 548 | } 549 | return p.Client.CoreV1().Secrets(namespace).Get(ctx, secretName, metav1.GetOptions{}) 550 | } 551 | 552 | func BytesToString(data []byte) string { 553 | return string(data[:]) 554 | } 555 | 556 | func TruncateString(str string, num int) string { 557 | bnoden := str 558 | if len(str) > num { 559 | bnoden = str[:num] 560 | } 561 | return bnoden 562 | } 563 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= 10 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 11 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 12 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 13 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 14 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 15 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 16 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 17 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 18 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 19 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 20 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 21 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 22 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 23 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 24 | code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48 h1:/EMHruHCFXR9xClkGV/t0rmHrdhX4+trQUcBqjwc9xE= 25 | code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48/go.mod h1:wN/zk7mhREp/oviagqUXY3EwuHhWyOvAdsn5Y4CzOrc= 26 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 27 | github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= 28 | github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= 29 | github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= 30 | github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= 31 | github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= 32 | github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= 33 | github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= 34 | github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= 35 | github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= 36 | github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= 37 | github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= 38 | github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= 39 | github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= 40 | github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= 41 | github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= 42 | github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= 43 | github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= 44 | github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= 45 | github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= 46 | github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= 47 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 48 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 49 | github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= 50 | github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= 51 | github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= 52 | github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= 53 | github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= 54 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 55 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 56 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 57 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 58 | github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= 59 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0= 60 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 61 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 62 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 63 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 64 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 65 | github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= 66 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 67 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 68 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 69 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 70 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 71 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 72 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 73 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 74 | github.com/dghubble/sling v1.3.0 h1:pZHjCJq4zJvc6qVQ5wN1jo5oNZlNE0+8T/h0XeXBUKU= 75 | github.com/dghubble/sling v1.3.0/go.mod h1:XXShWaBWKzNLhu2OxikSNFrlsvowtz4kyRuXUG7oQKY= 76 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 77 | github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= 78 | github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= 79 | github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= 80 | github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= 81 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 82 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 83 | github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses= 84 | github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= 85 | github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= 86 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 87 | github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= 88 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 89 | github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 90 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 91 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 92 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 93 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 94 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 95 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 96 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 97 | github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= 98 | github.com/go-logr/logr v0.2.0 h1:QvGt2nLcHH0WK9orKa+ppBPAxREcH364nPUedEpK0TY= 99 | github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= 100 | github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= 101 | github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= 102 | github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= 103 | github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= 104 | github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= 105 | github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= 106 | github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= 107 | github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= 108 | github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= 109 | github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= 110 | github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= 111 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 112 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 113 | github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= 114 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 115 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= 116 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 117 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 118 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 h1:5ZkaAPbicIKTF2I64qf5Fh8Aa83Q/dnOafMYV0OMwjA= 119 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 120 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= 121 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 122 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 123 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 124 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 125 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 126 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 127 | github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= 128 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 129 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 130 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 131 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 132 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 133 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 134 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 135 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 136 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 137 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 138 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 139 | github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= 140 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 141 | github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= 142 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 143 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 144 | github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= 145 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 146 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 147 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 148 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 149 | github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= 150 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 151 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 152 | github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= 153 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 154 | github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= 155 | github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= 156 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 157 | github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= 158 | github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 159 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 160 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 161 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 162 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 163 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 164 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 165 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 166 | github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= 167 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 168 | github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= 169 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 170 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 171 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 172 | github.com/googleapis/gnostic v0.4.1 h1:DLJCy1n/vrD4HPjOvYcT8aYQXpPIzoRZONaYwyycI+I= 173 | github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= 174 | github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 175 | github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo= 176 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 177 | github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= 178 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 179 | github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= 180 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 181 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 182 | github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q= 183 | github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= 184 | github.com/jawher/mow.cli v1.2.0 h1:e6ViPPy+82A/NFF/cfbq3Lr6q4JHKT9tyHwTCcUQgQw= 185 | github.com/jawher/mow.cli v1.2.0/go.mod h1:y+pcA3jBAdo/GIZx/0rFjw/K2bVEODP9rfZOfaiq8Ko= 186 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 187 | github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 188 | github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= 189 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 190 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 191 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 192 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 193 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 194 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 195 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 196 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 197 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 198 | github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= 199 | github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 200 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 201 | github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= 202 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 203 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 204 | github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 205 | github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 206 | github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 207 | github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 208 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 209 | github.com/miekg/dns v1.1.29 h1:xHBEhR+t5RzcFJjBLJlax2daXOrTYtr9z4WdKEfWFzg= 210 | github.com/miekg/dns v1.1.29/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= 211 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 212 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 213 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= 214 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 215 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg= 216 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 217 | github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= 218 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 219 | github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= 220 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 221 | github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= 222 | github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 223 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 224 | github.com/onsi/ginkgo v1.11.0 h1:JAKSXpt1YjtLA7YpPiqO9ss6sNXEsPfSGdwN0UHqzrw= 225 | github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 226 | github.com/onsi/ginkgo v1.12.0 h1:Iw5WCbBcaAAd0fpRb1c9r5YCylv4XDoCSigm1zLevwU= 227 | github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= 228 | github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= 229 | github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME= 230 | github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 231 | github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= 232 | github.com/onsi/gomega v1.9.0 h1:R1uwffexN6Pr340GtYRIdZmAiN4J+iw6WG4wog1DUXg= 233 | github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= 234 | github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= 235 | github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= 236 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 237 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 238 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 239 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 240 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 241 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 242 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 243 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 244 | github.com/prometheus/client_golang v1.5.1 h1:bdHYieyGlH+6OLEk2YQha8THib30KP0/yD0YH9m6xcA= 245 | github.com/prometheus/client_golang v1.5.1/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= 246 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 h1:idejC8f05m9MGOsuEi1ATq9shN03HrxNkD/luQvxCv8= 247 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 248 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 249 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 250 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 251 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 252 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 253 | github.com/prometheus/common v0.9.1 h1:KOMtN28tlbam3/7ZKEYKHhKoJZYYj3gMH4uc62x7X7U= 254 | github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= 255 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 256 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 257 | github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8= 258 | github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= 259 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 260 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 261 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 262 | github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= 263 | github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 264 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 265 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 266 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 267 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 268 | github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= 269 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 270 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 271 | github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= 272 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 273 | github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= 274 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 275 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 276 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 277 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 278 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 279 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 280 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 281 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 282 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 283 | golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 284 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 285 | golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 286 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= 287 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 288 | golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 h1:hb9wdF1z5waM+dSIICn1l0DkLVDT3hqhhQsDNUmHPRE= 289 | golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 290 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 291 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 292 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 293 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 294 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 295 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 296 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 297 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 298 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 299 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 300 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 301 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 302 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 303 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 304 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 305 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 306 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 307 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 308 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 309 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 310 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 311 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 312 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 313 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 314 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 315 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 316 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 317 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 318 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 319 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 320 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 321 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 322 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 323 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 324 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 325 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 326 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 327 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 328 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 329 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 330 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 331 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 332 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 333 | golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 334 | golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 335 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 336 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 337 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 338 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 339 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 340 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 341 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 342 | golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU= 343 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 344 | golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= 345 | golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 346 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 347 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 348 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 349 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 h1:pE8b58s1HRDMi8RDc79m0HISf9D4TzseP40cEA6IGfs= 350 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 351 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= 352 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 353 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 354 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ= 355 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 356 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 357 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 358 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 359 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= 360 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 361 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 362 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 363 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 364 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 365 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 366 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 367 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 368 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 369 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 370 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 371 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 372 | golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 373 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 374 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 375 | golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 376 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 377 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 378 | golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 379 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 380 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 381 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 382 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 383 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 384 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 385 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 386 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 387 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 388 | golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 h1:5/PjkGUjvEU5Gl6BxmvKRPpqo2uNMv4rcHBMwzk/st8= 389 | golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 390 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 391 | golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY= 392 | golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 393 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 394 | golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= 395 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 396 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 397 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 398 | golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= 399 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 400 | golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= 401 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 402 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c h1:fqgJT0MGcGpPgpWU7VRdRjuArfcOvC4AoJmILihzhDg= 403 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 404 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 405 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= 406 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 407 | golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e h1:EHBhcS0mlXEAVwNyO2dLfjToGsyY4j24pTs2ScHnX7s= 408 | golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 409 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 410 | golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 411 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 412 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 413 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 414 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 415 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 416 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 417 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 418 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 419 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 420 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 421 | golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 422 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 423 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 424 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 425 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 426 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 427 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 428 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 429 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 430 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 431 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 432 | golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 433 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 434 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 435 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 436 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 437 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 438 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 439 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 440 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 441 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 442 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 443 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 444 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 445 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= 446 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 447 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 448 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 449 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 450 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 451 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 452 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 453 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 454 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 455 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 456 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 457 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 458 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 459 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 460 | google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= 461 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 462 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 463 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 464 | google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM= 465 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 466 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 467 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 468 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 469 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 470 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 471 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 472 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 473 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 474 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 475 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 476 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 477 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 478 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 479 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 480 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 481 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 482 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 483 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 484 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 485 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 486 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 487 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 488 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 489 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 490 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 491 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 492 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 493 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 494 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 495 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 496 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 497 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 498 | google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM= 499 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 500 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 501 | google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA= 502 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 503 | google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= 504 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 505 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 506 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 507 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 508 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 509 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 510 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 511 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 512 | gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= 513 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 514 | gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 515 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 516 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= 517 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 518 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 519 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 520 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 521 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 522 | gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= 523 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 524 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 525 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 526 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 527 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 528 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 529 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 530 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 531 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 532 | k8s.io/api v0.19.1/go.mod h1:+u/k4/K/7vp4vsfdT7dyl8Oxk1F26Md4g5F26Tu85PU= 533 | k8s.io/api v0.20.2 h1:y/HR22XDZY3pniu9hIFDLpUCPq2w5eQ6aV/VFQ7uJMw= 534 | k8s.io/api v0.20.2/go.mod h1:d7n6Ehyzx+S+cE3VhTGfVNNqtGc/oL9DCdYYahlurV8= 535 | k8s.io/apimachinery v0.19.1/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= 536 | k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= 537 | k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= 538 | k8s.io/client-go v0.19.1/go.mod h1:AZOIVSI9UUtQPeJD3zJFp15CEhSjRgAuQP5PWRJrCIQ= 539 | k8s.io/client-go v0.20.2 h1:uuf+iIAbfnCSw8IGAv/Rg0giM+2bOzHLOsbbrwrdhNQ= 540 | k8s.io/client-go v0.20.2/go.mod h1:kH5brqWqp7HDxUFKoEgiI4v8G1xzbe9giaCenUWJzgE= 541 | k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= 542 | k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= 543 | k8s.io/klog/v2 v2.2.0 h1:XRvcwJozkgZ1UQJmfMGpvRthQHOvihEhYtDfAaxMz/A= 544 | k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= 545 | k8s.io/klog/v2 v2.3.0 h1:WmkrnW7fdrm0/DMClc+HIxtftvxVIPAhlVwMQo5yLco= 546 | k8s.io/klog/v2 v2.3.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= 547 | k8s.io/klog/v2 v2.4.0 h1:7+X0fUguPyrKEC4WjH8iGDg3laWgMo5tMnRTIGTTxGQ= 548 | k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= 549 | k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 h1:+WnxoVtG8TMiudHBSEtrVL1egv36TkkJm+bA8AxicmQ= 550 | k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= 551 | k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c= 552 | k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= 553 | k8s.io/utils v0.0.0-20200729134348-d5654de09c73 h1:uJmqzgNWG7XyClnU/mLPBWwfKKF1K8Hf8whTseBgJcg= 554 | k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= 555 | k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw= 556 | k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= 557 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 558 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 559 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 560 | sigs.k8s.io/sig-storage-lib-external-provisioner/v6 v6.2.0 h1:W9pg6FBDxI8A/G0FbDjwKXvIG7ZDfyQODtoGzHFxa60= 561 | sigs.k8s.io/sig-storage-lib-external-provisioner/v6 v6.2.0/go.mod h1:DhZ52sQMJHW21+JXyA2LRUPRIxKnrNrwh+QFV+2tVA4= 562 | sigs.k8s.io/structured-merge-diff/v4 v4.0.1 h1:YXTMot5Qz/X1iBRJhAt+vI+HVttY0WkSqqhKxQ0xVbA= 563 | sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= 564 | sigs.k8s.io/structured-merge-diff/v4 v4.0.2 h1:YHQV7Dajm86OuqnIR6zAelnDWBRjo+YhYV9PmGrh1s8= 565 | sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= 566 | sigs.k8s.io/yaml v1.1.0 h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs= 567 | sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= 568 | sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= 569 | sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= 570 | --------------------------------------------------------------------------------