-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: - Added flavor package with common functionality to get flavor and apply it to VMI. - Added flavor FlavorMatcher field to VM API, which references a flavor. - VM validating webhook checks that the flavor exists, and can be applied to VMI without conflicts. - virt-controller applies the flavor to VMI when a VM is started Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
- Loading branch information
Showing
33 changed files
with
1,460 additions
and
14 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
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,36 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["flavor.go"], | ||
importpath = "kubevirt.io/kubevirt/pkg/flavor", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//staging/src/kubevirt.io/client-go/api/v1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/apis/flavor/v1alpha1:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", | ||
"//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache:go_default_library", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
srcs = [ | ||
"flavor_suite_test.go", | ||
"flavor_test.go", | ||
], | ||
deps = [ | ||
":go_default_library", | ||
"//pkg/testutils:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/api/v1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/apis/flavor/v1alpha1:go_default_library", | ||
"//staging/src/kubevirt.io/client-go/testutils:go_default_library", | ||
"//vendor/github.com/onsi/ginkgo:go_default_library", | ||
"//vendor/github.com/onsi/gomega: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/validation/field:go_default_library", | ||
"//vendor/k8s.io/client-go/tools/cache:go_default_library", | ||
], | ||
) |
Oops, something went wrong.