# Force dep to vendor the code generators, which aren't imported just used at dev time.
required = [
  "k8s.io/code-generator/cmd/defaulter-gen",
  "k8s.io/code-generator/cmd/deepcopy-gen",
  "k8s.io/code-generator/cmd/conversion-gen",
  "k8s.io/code-generator/cmd/client-gen",
  "k8s.io/code-generator/cmd/lister-gen",
  "k8s.io/code-generator/cmd/informer-gen",
  "k8s.io/gengo/args",
  "github.com/openshift/api/config/v1",
  "github.com/onsi/ginkgo",
  "github.com/onsi/gomega",
  "sigs.k8s.io/controller-tools/cmd/controller-gen", # for crd/rbac generation
]

[[override]]
  name = "k8s.io/code-generator"
  version = "kubernetes-1.14.0"

[[override]]
  name = "k8s.io/api"
  version = "kubernetes-1.14.0"

[[override]]
  name = "k8s.io/apiextensions-apiserver"
  source = "https://github.com/openshift/kubernetes-apiextensions-apiserver.git"
  version = "kubernetes-1.14.0"

[[override]]
  name = "k8s.io/apimachinery"
  version = "kubernetes-1.14.0"

[[override]]
  name = "k8s.io/client-go"
  version = "kubernetes-1.14.0"

[[override]]
  name = "k8s.io/kube-aggregator"
  version = "kubernetes-1.14.0"

[[override]]
  name = "sigs.k8s.io/controller-runtime"
  branch = "master"

[[override]]
  name = "github.com/openshift/client-go"
  branch = "master"

[[override]]
  name = "github.com/openshift/cluster-version-operator"
  branch = "master"

# For dependency below: Refer to issue https://github.com/golang/dep/issues/1799
[[override]]
  name = "gopkg.in/fsnotify.v1"
  source = "https://github.com/fsnotify/fsnotify.git"
  version="v1.4.7"

[prune]
  go-tests = true
  non-go = true
  unused-packages = true

  [[prune.project]]
    name = "k8s.io/code-generator"
    non-go = false

  [[prune.project]]
    name = "github.com/openshift/cluster-api-actuator-pkg"
    go-tests = false

[[constraint]]
  name = "k8s.io/klog"
  version = "0.2.0"
