forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapshot controller waits for no VMIs or pods using PVCs
Signed-off-by: Michael Henriksen <[email protected]>
- Loading branch information
Showing
16 changed files
with
631 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
cluster-up/cluster/kind-k8s-sriov-1.17.0/csrcreator/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["certsecret.go"], | ||
importpath = "kubevirt.io/kubevirt/cluster-up/cluster/kind-k8s-sriov-1.17.0/csrcreator", | ||
visibility = ["//visibility:private"], | ||
deps = [ | ||
"//vendor/github.com/pkg/errors:go_default_library", | ||
"//vendor/k8s.io/api/certificates/v1beta1:go_default_library", | ||
"//vendor/k8s.io/api/core/v1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||
"//vendor/k8s.io/client-go/kubernetes:go_default_library", | ||
"//vendor/k8s.io/client-go/rest:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/clientcmd:go_default_library", | ||
"@com_github_cloudflare_cfssl//csr:go_default_library", | ||
], | ||
) | ||
|
||
go_binary( | ||
name = "csrcreator", | ||
embed = [":go_default_library"], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"snapshot.go", | ||
"snapshot_base.go", | ||
"util.go", | ||
], | ||
importpath = "kubevirt.io/kubevirt/pkg/virt-controller/watch/snapshot", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/controller:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/api/v1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/apis/snapshot/v1alpha1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/kubecli:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/log:go_default_library", | ||
"//vendor/github.com/kubernetes-csi/external-snapshotter/v2/pkg/apis/volumesnapshot/v1beta1:go_default_library", | ||
"//vendor/k8s.io/api/core/v1:go_default_library", | ||
"//vendor/k8s.io/api/storage/v1:go_default_library", | ||
"//vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/record:go_default_library", | ||
"//vendor/k8s.io/client-go/util/workqueue:go_default_library", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
srcs = [ | ||
"snapshot_suite_test.go", | ||
"snapshot_test.go", | ||
], | ||
embed = [":go_default_library"], | ||
deps = [ | ||
"//pkg/testutils:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/api/v1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/apis/snapshot/v1alpha1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/generated/external-snapshotter/clientset/versioned/fake:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/generated/kubevirt/clientset/versioned/fake:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/kubecli:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/log:go_default_library", | ||
"//vendor/github.com/golang/mock/gomock:go_default_library", | ||
"//vendor/github.com/kubernetes-csi/external-snapshotter/v2/pkg/apis/volumesnapshot/v1beta1:go_default_library", | ||
"//vendor/github.com/onsi/ginkgo:go_default_library", | ||
"//vendor/github.com/onsi/ginkgo/extensions/table:go_default_library", | ||
"//vendor/github.com/onsi/gomega:go_default_library", | ||
"//vendor/k8s.io/api/core/v1:go_default_library", | ||
"//vendor/k8s.io/api/storage/v1:go_default_library", | ||
"//vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", | ||
"//vendor/k8s.io/client-go/kubernetes/fake:go_default_library", | ||
"//vendor/k8s.io/client-go/testing:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache/testing:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/record:go_default_library", | ||
"//vendor/kubevirt.io/containerized-data-importer/pkg/apis/core/v1alpha1:go_default_library", | ||
], | ||
) |
Oops, something went wrong.