Unified
Split
Showing
with
21,574 additions
and 3,855 deletions.
- +1 −1 CONTRIBUTING.md
- +1 −1 README.md
- +20 −104 api/openapi-spec/swagger.json
- 0 automation/{check-patch.k8s-1.10.3-dev.mounts → check-patch.k8s-1.10.4-release.mounts}
- 0 automation/{check-patch.k8s-1.10.3-dev.packages → check-patch.k8s-1.10.4-release.packages}
- 0 automation/{check-patch.k8s-1.10.3-dev.sh → check-patch.k8s-1.10.4-release.sh}
- 0 automation/{check-patch.k8s-1.10.3-release.mounts → check-patch.k8s-1.11.0-dev.mounts}
- 0 automation/{check-patch.k8s-1.10.3-release.packages → check-patch.k8s-1.11.0-dev.packages}
- 0 automation/{check-patch.k8s-1.10.3-release.sh → check-patch.k8s-1.11.0-dev.sh}
- +1 −0 automation/check-patch.k8s-1.11.0-release.mounts
- +1 −0 automation/check-patch.k8s-1.11.0-release.packages
- +1 −0 automation/check-patch.k8s-1.11.0-release.sh
- +1 −0 automation/check-patch.mounts
- +1 −0 automation/check-patch.openshift-3.10-crio-release.mounts
- +1 −0 automation/check-patch.openshift-3.10-crio-release.packages
- +1 −0 automation/check-patch.openshift-3.10-crio-release.sh
- +48 −9 automation/test.sh
- +4 −4 cluster/ephemeral-provider-common.sh
- +1 −1 cluster/k8s-1.10.4/provider.sh
- +6 −6 cluster/{k8s-1.10.3 → k8s-1.11.0}/README.md
- +1 −1 cluster/{k8s-1.10.3 → k8s-1.11.0}/provider.sh
- +0 −45 cluster/k8s-1.9.3/README.md
- +0 −24 cluster/k8s-1.9.3/provider.sh
- +4 −4 cluster/{os-3.9.0-crio → os-3.10.0-crio}/README.md
- +7 −0 cluster/os-3.10.0-crio/provider.sh
- +1 −1 cluster/os-3.10.0/provider.sh
- +0 −7 cluster/os-3.9.0-crio/provider.sh
- +3 −9 cmd/virt-launcher/Dockerfile
- +0 −55 cmd/virt-launcher/entrypoint.sh
- +0 −2 cmd/virt-launcher/kubevirt-sudo
- +0 −56 cmd/virt-launcher/libvirtd.sh
- +87 −8 cmd/virt-launcher/virt-launcher.go
- +1 −2 docs/architecture.md
- +2 −2 docs/debugging.md
- +1 −1 docs/direct-pv-disks.md
- +1 −1 docs/iscsi-authentication.md
- +2 −2 docs/release.md
- +9 −9 glide.lock
- +3 −2 glide.yaml
- +3 −0 hack/build-manifests.sh
- +1 −1 hack/common.sh
- +1 −0 hack/config-default.sh
- +2 −3 hack/config.sh
- +1 −2 hack/docker-builder/Dockerfile
- +24 −0 hack/docker-builder/fedora-virt-preview.repo
- +1 −1 hack/dockerized
- +9 −0 hack/gen-client-python/generate.sh
- +67 −0 hack/gen-client-python/hard-coded-modules/v1_interface_bridge.py
- +67 −0 hack/gen-client-python/hard-coded-modules/v1_interface_slirp.py
- +27 −24 manifests/dev/rbac.authorization.k8s.yaml.in
- +1 −1 manifests/dev/virt-api.yaml.in
- +1 −1 manifests/dev/virt-controller.yaml.in
- +1 −1 manifests/dev/virt-handler.yaml.in
- +6 −0 manifests/generated/vm-resource.yaml
- +6 −0 manifests/generated/vmi-resource.yaml
- +6 −0 manifests/generated/vmipreset-resource.yaml
- +6 −0 manifests/generated/vmirs-resource.yaml
- +33 −30 manifests/release/kubevirt.yaml.in
- +19 −0 pkg/api/v1/deepcopy_generated.go
- +22 −2 pkg/api/v1/openapi_generated.go
- +15 −0 pkg/api/v1/schema.go
- +4 −1 pkg/api/v1/schema_swagger_generated.go
- +12 −6 pkg/api/v1/types.go
- +1 −1 pkg/kubecli/kubevirt.go
- +2 −2 pkg/kubecli/kubevirt_test_utils.go
- +21 −21 pkg/kubecli/vm.go
- +40 −0 pkg/util/hw_helper.go
- +3 −3 pkg/virt-api/rest/subresource.go
- +91 −1 pkg/virt-api/validating-webhook/validating-webhook.go
- +177 −1 pkg/virt-api/validating-webhook/validating-webhook_test.go
- +71 −26 pkg/virt-controller/services/template.go
- +155 −13 pkg/virt-controller/services/template_test.go
- +5 −5 pkg/virt-controller/watch/node.go
- +4 −3 pkg/virt-controller/watch/node_test.go
- +5 −8 pkg/virt-controller/watch/vm.go
- +14 −5 pkg/virt-controller/watch/vmi.go
- +20 −7 pkg/virt-controller/watch/vmi_test.go
- +2 −16 pkg/virt-handler/cmd-client/client.go
- +13 −7 pkg/virt-handler/vm.go
- +28 −14 pkg/virt-handler/vm_test.go
- +2 −2 pkg/virt-launcher/monitor.go
- +40 −22 pkg/virt-launcher/virtwrap/api/converter.go
- +63 −12 pkg/virt-launcher/virtwrap/api/converter_test.go
- +16 −0 pkg/virt-launcher/virtwrap/api/deepcopy_generated.go
- +31 −0 pkg/virt-launcher/virtwrap/api/schema.go
- +3 −3 pkg/virt-launcher/virtwrap/api/schema_test.go
- +21 −1 pkg/virt-launcher/virtwrap/network/dhcp/dhcp.go
- +2 −2 pkg/virt-launcher/virtwrap/network/dhcp/dhcp_test.go
- +1 −1 pkg/virt-launcher/virtwrap/network/podinterface_test.go
- +60 −2 pkg/virt-launcher/virtwrap/util/libvirt_helper.go
- +1 −1 pkg/virtctl/console/console.go
- +5 −5 pkg/virtctl/expose/expose.go
- +18 −18 pkg/virtctl/expose/expose_test.go
- +14 −8 pkg/virtctl/version/version.go
- +4 −4 pkg/virtctl/vm/vm.go
- +1 −1 pkg/virtctl/vm/vm_suite_test.go
- +1 −1 pkg/virtctl/vnc/vnc.go
- +1 −0 pkg/watchdog/watchdog.go
- +7 −2 stdci.yaml
- +5 −9 tests/access_test.go
- +26 −26 tests/template_test.go
- +109 −60 tests/utils.go
- +2 −1 tests/vm_test.go
- +31 −1 tests/vmi_configuration_test.go
- +5 −5 tests/vmi_hook_sidecar_test.go
- +106 −30 tests/vmi_lifecycle_test.go
- +88 −1 tests/vmi_networking_test.go
- +1 −1 tests/vmi_slirp_interface_test.go
- +4 −2 tests/vmi_userdata_test.go
- +6 −5 tests/windows_test.go
- +3 −0 tools/manifest-templator/manifest-templator.go
- +0 −10 vendor/github.com/emicklei/go-restful-openapi/CHANGES.md
- +4 −34 vendor/github.com/emicklei/go-restful-openapi/definition_builder.go
- +0 −7 vendor/github.com/emicklei/go-restful-openapi/spec_resource.go
- +1 −0 vendor/github.com/go-openapi/spec/.golangci.yml
- +79 −24 vendor/github.com/go-openapi/spec/expander.go
- +7,916 −0 vendor/github.com/go-openapi/spec/fixtures/bugs/1614/gitea.json
- +618 −0 vendor/github.com/go-openapi/spec/fixtures/bugs/1621/definitions.yaml
- +1,310 −0 vendor/github.com/go-openapi/spec/fixtures/bugs/1621/fixture-1621.yaml
- +61 −0 vendor/github.com/go-openapi/spec/fixtures/bugs/1621/parameters.yaml
- +13 −0 vendor/github.com/go-openapi/spec/fixtures/bugs/1621/responses.yaml
- +3 −0 vendor/github.com/golang/mock/mockgen/mockgen.go
- +6 −0 vendor/github.com/krolaw/dhcp4/packet.go
- +14 −2 vendor/github.com/onsi/gomega/matchers/be_numerically_matcher.go
- +7 −0 vendor/google.golang.org/appengine/go.mod
- +8 −0 vendor/google.golang.org/appengine/go.sum
- +311 −85 vendor/google.golang.org/appengine/internal/app_identity/app_identity_service.pb.go
- +190 −58 vendor/google.golang.org/appengine/internal/base/api_base.pb.go
- +325 −97 vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.pb.go
- +60 −28 vendor/google.golang.org/appengine/internal/capability/capability_service.pb.go
- +113 −41 vendor/google.golang.org/appengine/internal/channel/channel_service.pb.go
- +1,658 −535 vendor/google.golang.org/appengine/internal/datastore/datastore_v3.pb.go
- +552 −178 vendor/google.golang.org/appengine/internal/image/images_service.pb.go
- +422 −148 vendor/google.golang.org/appengine/internal/log/log_service.pb.go
- +124 −52 vendor/google.golang.org/appengine/internal/mail/mail_service.pb.go
- +665 −207 vendor/google.golang.org/appengine/internal/memcache/memcache_service.pb.go
- +464 −132 vendor/google.golang.org/appengine/internal/modules/modules_service.pb.go
- +122 −48 vendor/google.golang.org/appengine/internal/remote_api/remote_api.pb.go
- +1,408 −427 vendor/google.golang.org/appengine/internal/search/search.pb.go
- +974 −294 vendor/google.golang.org/appengine/internal/socket/socket_service.pb.go
- +163 −51 vendor/google.golang.org/appengine/internal/system/system_service.pb.go
- +1,314 −374 vendor/google.golang.org/appengine/internal/taskqueue/taskqueue_service.pb.go
- +136 −42 vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go
- +254 −82 vendor/google.golang.org/appengine/internal/user/user_service.pb.go
- +314 −100 vendor/google.golang.org/appengine/internal/xmpp/xmpp_service.pb.go
- +1 −0 vendor/kubevirt.io/qe-tools/.gitattributes
- +76 −4 vendor/kubevirt.io/qe-tools/glide.lock
- +1 −1 vendor/kubevirt.io/qe-tools/glide.yaml
- +1 −1 vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/polarion_reporter.go
- +12 −4 vendor/kubevirt.io/qe-tools/pkg/polarion-generator/test_cases_generator.go
| @@ -95,7 +95,7 @@ Maintainers are: | ||
| * [User Guide - Kubernetes](https://kubernetes.io/docs/user-guide/) | ||
| * Details | ||
| * [Declarative Management of Kubernetes Objects Using Configuration Files - Kubernetes](https://kubernetes.io/docs/concepts/tools/kubectl/object-management-using-declarative-config/) | ||
| * [Kubernetes Architecture](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture.md) | ||
| * [Kubernetes Architecture](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/architecture.md) | ||
| ## Additional Topics | ||
| @@ -47,7 +47,7 @@ Example: | ||
| Try our quickstart at [kubevirt.io](http://kubevirt.io/get_kubevirt/). | ||
| See our user documentation at [docs.kubevirt.io](http://docs.kubevirt.io/). | ||
| See our user documentation at [kubevirt.io/docs](http://kubevirt.io/docs/). | ||
| # To start developing KubeVirt | ||
| @@ -3085,85 +3085,6 @@ | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "big.Int": { | ||
| "required": [ | ||
| "neg", | ||
| "abs" | ||
| ], | ||
| "properties": { | ||
| "abs": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/big.Word" | ||
| } | ||
| }, | ||
| "neg": { | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| }, | ||
| "big.Word": {}, | ||
| "inf.Dec": { | ||
| "required": [ | ||
| "unscaled", | ||
| "scale" | ||
| ], | ||
| "properties": { | ||
| "scale": { | ||
| "$ref": "#/definitions/inf.Scale" | ||
| }, | ||
| "unscaled": { | ||
| "$ref": "#/definitions/big.Int" | ||
| } | ||
| } | ||
| }, | ||
| "resource.Quantity": { | ||
| "required": [ | ||
| "i", | ||
| "d", | ||
| "s", | ||
| "Format" | ||
| ], | ||
| "properties": { | ||
| "Format": { | ||
| "type": "string" | ||
| }, | ||
| "d": { | ||
| "$ref": "#/definitions/resource.infDecAmount" | ||
| }, | ||
| "i": { | ||
| "$ref": "#/definitions/resource.int64Amount" | ||
| }, | ||
| "s": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "resource.infDecAmount": { | ||
| "required": [ | ||
| "Dec" | ||
| ], | ||
| "properties": { | ||
| "Dec": { | ||
| "$ref": "#/definitions/inf.Dec" | ||
| } | ||
| } | ||
| }, | ||
| "resource.int64Amount": { | ||
| "required": [ | ||
| "value", | ||
| "scale" | ||
| ], | ||
| "properties": { | ||
| "scale": { | ||
| "$ref": "#/definitions/resource.Scale" | ||
| }, | ||
| "value": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| } | ||
| } | ||
| }, | ||
| "types.UID": {}, | ||
| "v1.APIGroup": { | ||
| "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", | ||
| @@ -3475,7 +3396,7 @@ | ||
| ], | ||
| "properties": { | ||
| "bootOrder": { | ||
| "description": "BootOrder is an integer value \u003e 0, used to determine ordering of boot devices.\nLower values take precedence.\nDisks without a boot order are not tried if a disk with a boot order exists.\n+optional", | ||
| "description": "BootOrder is an integer value \u003e 0, used to determine ordering of boot devices.\nLower values take precedence.\nEach disk or interface that has a boot order must have a unique value.\nDisks without a boot order are not tried if a disk with a boot order exists.\n+optional", | ||
| "type": "integer", | ||
| "format": "integer" | ||
| }, | ||
| @@ -3829,6 +3750,11 @@ | ||
| "name" | ||
| ], | ||
| "properties": { | ||
| "bootOrder": { | ||
| "description": "BootOrder is an integer value \u003e 0, used to determine ordering of boot devices.\nLower values take precedence.\nEach interface or disk that has a boot order must have a unique value.\nInterfaces without a boot order are not tried.\n+optional", | ||
| "type": "integer", | ||
| "format": "integer" | ||
| }, | ||
| "bridge": { | ||
| "$ref": "#/definitions/v1.InterfaceBridge" | ||
| }, | ||
| @@ -3844,6 +3770,10 @@ | ||
| "description": "Logical name of the interface as well as a reference to the associated networks.\nMust match the Name of a Network.", | ||
| "type": "string" | ||
| }, | ||
| "pciAddress": { | ||
| "description": "If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10\n+optional", | ||
| "type": "string" | ||
| }, | ||
| "ports": { | ||
| "description": "List of ports to be forwarded to the virtual machine.", | ||
| "type": "array", | ||
| @@ -3878,10 +3808,7 @@ | ||
| }, | ||
| "matchLabels": { | ||
| "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| "type": "object" | ||
| } | ||
| } | ||
| }, | ||
| @@ -3961,6 +3888,10 @@ | ||
| "v1.Memory": { | ||
| "description": "Memory allows specifying the VirtualMachineInstance memory features.", | ||
| "properties": { | ||
| "guest": { | ||
| "description": "Guest allows to specifying the amount of memory which is visible inside the Guest OS.\nThe Guest must lie between Requests and Limits from the resources section.\nDefaults to the requested memory in the resources section if not specified.\n+ optional", | ||
| "type": "string" | ||
| }, | ||
| "hugepages": { | ||
| "description": "Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.\n+optional", | ||
| "$ref": "#/definitions/v1.Hugepages" | ||
| @@ -4057,10 +3988,7 @@ | ||
| "properties": { | ||
| "annotations": { | ||
| "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| "type": "object" | ||
| }, | ||
| "clusterName": { | ||
| "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", | ||
| @@ -4101,10 +4029,7 @@ | ||
| }, | ||
| "labels": { | ||
| "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| "type": "object" | ||
| }, | ||
| "name": { | ||
| "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", | ||
| @@ -4355,21 +4280,15 @@ | ||
| "properties": { | ||
| "limits": { | ||
| "description": "Limits describes the maximum amount of compute resources allowed.\nValid resource keys are \"memory\" and \"cpu\".\n+optional", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "$ref": "#/definitions/resource.Quantity" | ||
| } | ||
| "type": "object" | ||
| }, | ||
| "overcommitGuestOverhead": { | ||
| "description": "Don't ask the scheduler to take the guest-management overhead into account. Instead\nput the overhead only into the requested memory limits. This can lead to crashes if\nall memory is in use on a node. Defaults to false.", | ||
| "type": "boolean" | ||
| }, | ||
| "requests": { | ||
| "description": "Requests is a description of the initial vmi resources.\nValid resource keys are \"memory\" and \"cpu\".\n+optional", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "$ref": "#/definitions/resource.Quantity" | ||
| } | ||
| "type": "object" | ||
| } | ||
| } | ||
| }, | ||
| @@ -4873,10 +4792,7 @@ | ||
| }, | ||
| "nodeSelector": { | ||
| "description": "NodeSelector is a selector which must be true for the vmi to fit on a node.\nSelector which must match a node's labels for the vmi to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n+optional", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| "type": "object" | ||
| }, | ||
| "subdomain": { | ||
| "description": "If specified, the fully qualified vmi hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\".\nIf not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi,\nno matter if the vmi itself can pick up a hostname.\n+optional", | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| @@ -0,0 +1 @@ | ||
| check-patch.mounts |
| @@ -0,0 +1 @@ | ||
| check-patch.packages.el7 |
| @@ -0,0 +1 @@ | ||
| check-patch.sh |
| @@ -2,3 +2,4 @@ | ||
| /var/lib/libvirt/boot | ||
| /var/cache:/var/host_cache | ||
| /var/run/docker.sock:/var/run/docker.sock | ||
| /var/lib/stdci/shared:/var/lib/stdci/shared | ||
| @@ -0,0 +1 @@ | ||
| check-patch.mounts |
| @@ -0,0 +1 @@ | ||
| check-patch.packages.el7 |
| @@ -0,0 +1 @@ | ||
| check-patch.sh |
| @@ -32,25 +32,65 @@ export WORKSPACE="${WORKSPACE:-$PWD}" | ||
| if [[ $TARGET =~ openshift-.* ]]; then | ||
| if [[ $TARGET =~ .*-crio-.* ]]; then | ||
| export KUBEVIRT_PROVIDER="os-3.9.0-crio" | ||
| export KUBEVIRT_PROVIDER="os-3.10.0-crio" | ||
| else | ||
| export KUBEVIRT_PROVIDER="os-3.10.0" | ||
| fi | ||
| elif [[ $TARGET =~ .*-1.9.3-.* ]]; then | ||
| export KUBEVIRT_PROVIDER="k8s-1.9.3" | ||
| elif [[ $TARGET =~ .*-1.10.4-.* ]]; then | ||
| export KUBEVIRT_PROVIDER="k8s-1.10.4" | ||
| else | ||
| export KUBEVIRT_PROVIDER="k8s-1.10.3" | ||
| export KUBEVIRT_PROVIDER="k8s-1.11.0" | ||
| fi | ||
| export KUBEVIRT_NUM_NODES=2 | ||
| export NFS_WINDOWS_DIR=${NFS_WINDOWS_DIR:-/home/nfs/images/windows2016} | ||
| export WINDOWS_NFS_DIR=${WINDOWS_NFS_DIR:-/var/lib/stdci/shared/kubevirt-images/windows2016} | ||
| export WINDOWS_LOCK_PATH=${WINDOWS_LOCK_PATH:-/var/lib/stdci/shared/download_windows_image.lock} | ||
| wait_for_windows_lock() { | ||
| local max_lock_attempts=60 | ||
| local lock_wait_interval=60 | ||
| for ((i = 0; i < $max_lock_attempts; i++)); do | ||
| if (set -o noclobber; > $WINDOWS_LOCK_PATH) 2> /dev/null; then | ||
| echo "Acquired lock: $WINDOWS_LOCK_PATH" | ||
| return | ||
| fi | ||
| sleep $lock_wait_interval | ||
| done | ||
| echo "Timed out waiting for lock: $WINDOWS_LOCK_PATH" >&2 | ||
| exit 1 | ||
| } | ||
| release_windows_lock() { | ||
| if [[ -e "$WINDOWS_LOCK_PATH" ]]; then | ||
| rm -f "$WINDOWS_LOCK_PATH" | ||
| echo "Released lock: $WINDOWS_LOCK_PATH" | ||
| fi | ||
| } | ||
| if [[ $TARGET =~ windows.* ]]; then | ||
| # Create images directory | ||
| if [[ ! -d $WINDOWS_NFS_DIR ]]; then | ||
| mkdir -p $WINDOWS_NFS_DIR | ||
| fi | ||
| # Download windows image | ||
| if wait_for_windows_lock; then | ||
| if [[ ! -f "$WINDOWS_NFS_DIR/disk.img" ]]; then | ||
| curl http://templates.ovirt.org/kubevirt/win01.img > $WINDOWS_NFS_DIR/disk.img | ||
| fi | ||
| release_windows_lock | ||
| else | ||
| exit 1 | ||
| fi | ||
| fi | ||
| kubectl() { cluster/kubectl.sh "$@"; } | ||
| export NAMESPACE="${NAMESPACE:-kube-system}" | ||
| # Make sure that the VM is properly shut down on exit | ||
| trap '{ make cluster-down; }' EXIT SIGINT SIGTERM SIGSTOP | ||
| trap '{ release_windows_lock; make cluster-down; }' EXIT SIGINT SIGTERM SIGSTOP | ||
| make cluster-down | ||
| make cluster-up | ||
| @@ -116,8 +156,7 @@ ginko_params="--ginkgo.noColor --junit-output=$WORKSPACE/junit.xml" | ||
| # Prepare PV for windows testing | ||
| if [[ $TARGET =~ windows.* ]]; then | ||
| if [[ -d $NFS_WINDOWS_DIR ]]; then | ||
| kubectl create -f - <<EOF | ||
| kubectl create -f - <<EOF | ||
| --- | ||
| apiVersion: v1 | ||
| kind: PersistentVolume | ||
| @@ -133,8 +172,8 @@ spec: | ||
| nfs: | ||
| server: "nfs" | ||
| path: / | ||
| storageClassName: local | ||
| EOF | ||
| fi | ||
| # Run only windows tests | ||
| ginko_params="$ginko_params --ginkgo.focus=Windows" | ||
| fi | ||
| @@ -2,7 +2,7 @@ | ||
| set -e | ||
| _cli="docker run --privileged --net=host --rm ${USE_TTY} -v /var/run/docker.sock:/var/run/docker.sock kubevirtci/gocli@sha256:aa7f295a7908fa333ab5e98ef3af0bfafbabfd3cee2b83f9af47f722e3000f6a" | ||
| _cli="docker run --privileged --net=host --rm ${USE_TTY} -v /var/run/docker.sock:/var/run/docker.sock kubevirtci/gocli@sha256:df958c060ca8d90701a1b592400b33852029979ad6d5c1d9b79683033704b690" | ||
| function _main_ip() { | ||
| echo 127.0.0.1 | ||
| @@ -29,9 +29,9 @@ function _registry_volume() { | ||
| } | ||
| function _add_common_params() { | ||
| local params="--nodes ${KUBEVIRT_NUM_NODES} --random-ports --background --prefix $provider_prefix --registry-volume $(_registry_volume) kubevirtci/${image} ${KUBEVIRT_PROVIDER_EXTRA_ARGS}" | ||
| if [[ -d $NFS_WINDOWS_DIR ]] && [[ $TARGET =~ windows.* ]]; then | ||
| params="--memory 8192M --nfs-data $NFS_WINDOWS_DIR $params" | ||
| local params="--nodes ${KUBEVIRT_NUM_NODES} --cpu 4 --random-ports --background --prefix $provider_prefix --registry-volume $(_registry_volume) kubevirtci/${image} ${KUBEVIRT_PROVIDER_EXTRA_ARGS}" | ||
| if [[ $TARGET =~ windows.* ]]; then | ||
| params="--memory 8192M --nfs-data $WINDOWS_NFS_DIR $params" | ||
| fi | ||
| echo $params | ||
| } | ||
| @@ -2,7 +2,7 @@ | ||
| set -e | ||
| image="k8s-1.10.4@sha256:09ac918cc16f13a5d0af51d4c98e3e25cbf4f97b7b32fe18ec61b32f04ca1009" | ||
| image="k8s-1.10.4@sha256:ee6846957b58e1f56b240d9ba6410f082e4787a4c4f1e0d60f6b907b76146b3e" | ||
| source cluster/ephemeral-provider-common.sh | ||
Oops, something went wrong.