-
Notifications
You must be signed in to change notification settings - Fork 6
Support CPU topology and resource limits #22
Conversation
still testing the PR |
pkg/kubevirt/apis/provider_spec.go
Outdated
// SourceURL is the HTTP URL of the source image imported by CDI. | ||
SourceURL string `json:"sourceURL,omitempty"` | ||
// StorageClassName is the name which CDI uses to in order to create claims. | ||
// +optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all `+optional' as there is no code generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to keep them, for documentation purposes, and ensure that they are placed correctly.
pkg/kubevirt/apis/provider_spec.go
Outdated
// SourceURL is the HTTP URL of the source image imported by CDI. | ||
SourceURL string `json:"sourceURL,omitempty"` | ||
// StorageClassName is the name which CDI uses to in order to create claims. | ||
// +optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to keep them, for documentation purposes, and ensure that they are placed correctly.
@@ -16,21 +16,20 @@ package api | |||
|
|||
import ( | |||
corev1 "k8s.io/api/core/v1" | |||
"k8s.io/apimachinery/pkg/api/resource" | |||
kubevirtv1 "kubevirt.io/client-go/api/v1" | |||
) | |||
|
|||
// KubeVirtProviderSpec is the spec to be used while parsing the calls. | |||
type KubeVirtProviderSpec struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stoyanr I didn't touch Region
and Zone
since you've created a PR about that.
/lgtm There are some linter errors (run
|
Signed-off-by: Marcin Franczyk <[email protected]>
@stoyanr fixed, I've added validation for |
Signed-off-by: Marcin Franczyk [email protected]
What this PR does / why we need it:
supports CPU topology and resource limits
Which issue(s) this PR fixes:
Fixes gardener-attic/gardener-extension-provider-kubevirt#36
Special notes for your reviewer:
Release note: