# List of dependecies for CSI snapshotter

required = [
  "k8s.io/code-generator/cmd/client-gen",
  "k8s.io/code-generator/cmd/informer-gen",
  "k8s.io/code-generator/cmd/lister-gen",
  "k8s.io/code-generator/cmd/deepcopy-gen",
  "k8s.io/code-generator/cmd/defaulter-gen",
]


[[constraint]]
  name = "github.com/container-storage-interface/spec"
  version = "=1.1.0"

# TODO: all the k8s.io dependencies are overrides due to
# csi-lib-utils constraints. Once 1.16.0 is released, update
# all of these versions back to a constraint.

# The dependency on external-provisioner should be removed with #60.
[[override]]
  name = "k8s.io/api"
  branch = "master"

[[override]]
  name = "k8s.io/apimachinery"
  branch = "master"

[[override]]
  name = "k8s.io/client-go"
  branch = "master"

[[override]]
  name = "k8s.io/utils"
  branch = "master"


# These dependencies are used for CRD API generation
[[constraint]]
  name = "k8s.io/code-generator"
  version = "kubernetes-1.14.0"

[[constraint]]
  name = "k8s.io/apiextensions-apiserver"
  version = "kubernetes-1.14.0"

[[constraint]]
  name = "github.com/kubernetes-csi/csi-lib-utils"
  version = ">=v0.6.1"

[prune]
  non-go = true
  go-tests = true
  unused-packages = true
  [[prune.project]]
    # Scripts under code-generator are required to generate code
    # when snapshot APIs are changed. Therefore they should not
    # be pruned.
    name = "k8s.io/code-generator"
    non-go = false
    unused-packages = false
