diff --git a/cluster/up.sh b/cluster/up.sh index 54c196558..c8bf26695 100755 --- a/cluster/up.sh +++ b/cluster/up.sh @@ -18,7 +18,7 @@ set -ex source ./cluster/kubevirtci.sh CNAO_VERSIOV=0.35.0 -KUBEVIRT_VERSION=v0.20.4 +KUBEVIRT_VERSION=v0.29.0 kubevirtci::install if [[ "$KUBEVIRT_PROVIDER" != external ]]; then diff --git a/go.mod b/go.mod index 2ee3bbf58..f42166ab6 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,17 @@ module github.com/k8snetworkplumbingwg/kubemacpool go 1.12 require ( + github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect github.com/go-logr/logr v0.1.0 github.com/go-logr/zapr v0.1.1 // indirect github.com/imdario/mergo v0.3.7 // indirect + github.com/improbable-eng/thanos v0.5.0 // indirect github.com/intel/multus-cni v0.0.0-20200316125841-bfaf22964b51 github.com/kr/pty v1.1.5 // indirect github.com/mattn/goveralls v0.0.5 github.com/onsi/ginkgo v1.11.0 github.com/onsi/gomega v1.8.1 + github.com/openshift/api v3.9.1-0.20190401220125-3a6077f1f910+incompatible // indirect github.com/pkg/errors v0.9.1 github.com/prometheus/procfs v0.0.8 // indirect github.com/qinqon/kube-admission-webhook v0.6.0 @@ -18,11 +21,11 @@ require ( golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect k8s.io/api v0.18.2 k8s.io/apimachinery v0.18.2 - k8s.io/client-go v11.0.0+incompatible + k8s.io/client-go v12.0.0+incompatible k8s.io/code-generator v0.18.0-alpha.2 k8s.io/utils v0.0.0-20200109141947-94aeca20bf09 // indirect - kubevirt.io/client-go v0.25.0 - kubevirt.io/kubevirt v0.25.0 + kubevirt.io/client-go v0.29.0 + kubevirt.io/kubevirt v0.29.0 sigs.k8s.io/controller-runtime v0.4.0 sigs.k8s.io/controller-tools v0.3.0 sigs.k8s.io/kustomize/kustomize/v3 v3.3.0 diff --git a/go.sum b/go.sum index 1d9e5ecb7..45cb75915 100644 --- a/go.sum +++ b/go.sum @@ -60,6 +60,8 @@ github.com/aws/aws-sdk-go v0.0.0-20180507225419-00862f899353/go.mod h1:ZRmQr0Faj github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0 h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/biogo/store v0.0.0-20160505134755-913427a1d5e8/go.mod h1:Iev9Q3MErcn+w3UOJD/DkEzllvugfdx7bGcMOFhvr/4= github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= @@ -103,6 +105,7 @@ github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfc github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/prometheus-operator v0.31.1/go.mod h1:vHwtP2e+VmEeS6m6lgp87aH+npGVRQsCi5jhcuQA1sA= +github.com/coreos/prometheus-operator v0.35.0/go.mod h1:XHYZUStZWcwd1yk/1DjZv/fywqKIyAJ6pSwvIr+v9BQ= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= @@ -169,6 +172,7 @@ github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2H github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= +github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= github.com/go-ini/ini v1.21.1/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-kit/kit v0.8.0 h1:Wz+5lgoB0kkuqLEc6NVmwRknTKP6dTGbSqvhZtBI/j0= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= @@ -213,7 +217,6 @@ github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= -github.com/go-openapi/runtime v0.17.2/go.mod h1:QO936ZXeisByFmZEO1IS1Dqhtf4QV1sYYFtIq6Ld86Q= github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= @@ -239,11 +242,11 @@ github.com/go-openapi/swag v0.17.2/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2 h1:jvO6bCMBEilGwMfHhrd61zIID4oIFdwb76V17SM88dE= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.4/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.7 h1:VRuXN2EnMSsZdauzdss6JBC29YotDqG59BZ+tdlIL1s= github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/validate v0.17.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.17.2/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= @@ -251,6 +254,7 @@ github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85n github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gobuffalo/flect v0.1.5/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80= github.com/gobuffalo/flect v0.2.0 h1:EWCvMGGxOjsgwlWaP+f4+Hh6yrrte7JeFL2S6b+0hdM= github.com/gobuffalo/flect v0.2.0/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80= github.com/godbus/dbus v0.0.0-20180201030542-885f9cc04c9c/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw= @@ -262,6 +266,7 @@ github.com/gogo/protobuf v1.2.1 h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d h1:3PaI8p3seN09VjbTYC/QWlUZdZ1qS1zGjy7LH2Wt07I= github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= @@ -374,6 +379,7 @@ github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJ github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.7 h1:Y+UAYTZ7gDEuOfhxKWy+dvb5dRQ6rJjFSdX2HZY1/gI= github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/improbable-eng/thanos v0.3.2/go.mod h1:GZewVGILKuJVPNRn7L4Zw+7X96qzFOwj63b22xYGXBE= github.com/improbable-eng/thanos v0.5.0/go.mod h1:RXlsWB7YlTbhIod//QDyd5cBZsnEN0jROXZJY/ol4nk= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -405,7 +411,7 @@ github.com/juju/testing v0.0.0-20190613124551-e81189438503/go.mod h1:63prj8cnj0t github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20181121151021-386d141f4c94/go.mod h1:b9S5QMGDYh+GhoIlY/2ADELIEWUAyqIn1+k7PLq2NCY= -github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20190920090233-ccc72ee9eb57/go.mod h1:b9S5QMGDYh+GhoIlY/2ADELIEWUAyqIn1+k7PLq2NCY= +github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20191119172530-79f836b90111/go.mod h1:MP2HbArq3QT+oVp8pmtHNZnSnkhdkHtDnc7h6nJXmBU= github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20200127152046-0ee521d56061 h1:zz0mSqgjSJP6gqP2b7GdCiysj5OgD2DMJRNFJegLcs4= github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20200127152046-0ee521d56061/go.mod h1:MP2HbArq3QT+oVp8pmtHNZnSnkhdkHtDnc7h6nJXmBU= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= @@ -515,10 +521,13 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa github.com/onsi/gomega v1.8.1 h1:C5Dqfs/LeauYDX0jJXIe2SWmwCbGzx9yF8C8xy3Lh34= github.com/onsi/gomega v1.8.1/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= +github.com/openshift/api v0.0.0-20191219222812-2987a591a72c/go.mod h1:dh9o4Fs58gpFXGSYfnVxGR9PnV53I8TW84pQaJDdGiY= github.com/openshift/api v3.9.1-0.20190401220125-3a6077f1f910+incompatible/go.mod h1:dh9o4Fs58gpFXGSYfnVxGR9PnV53I8TW84pQaJDdGiY= github.com/openshift/client-go v0.0.0-20190401163519-84c2b942258a/go.mod h1:6rzn+JTr7+WYS2E1TExP4gByoABxMznR6y2SnUIkmxk= +github.com/openshift/client-go v0.0.0-20191125132246-f6563a70e19a/go.mod h1:6rzn+JTr7+WYS2E1TExP4gByoABxMznR6y2SnUIkmxk= github.com/openshift/custom-resource-status v0.0.0-20190822192428-e62f2f3b79f3 h1:XuAys09+XqT5/FjdR23G/UtbBLII89dFe9XIi73EKIQ= github.com/openshift/custom-resource-status v0.0.0-20190822192428-e62f2f3b79f3/go.mod h1:GDjWl0tX6FNIj82vIxeudWeSx2Ff6nDZ8uJn0ohUFvo= +github.com/openshift/prom-label-proxy v0.1.1-0.20191016113035-b8153a7f39f1/go.mod h1:p5MuxzsYP1JPsNGwtjtcgRHHlGziCJJfztff91nNixw= github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7/go.mod h1:PLldrQSroqzH70Xl+1DQcGnefIbqsKR7UDaiux3zV+w= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -556,6 +565,8 @@ github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0 h1:vrDKnkGzuGvhNAL56c7DBz29ZL+KxnoR0x7enabFceM= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.1.0 h1:BQ53HtBmfOitExawJ6LokA4x8ov/z0SYYb0+HxJfRI8= +github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 h1:S/YWwWx/RA8rT8tKFRuGUZhuA90OyIBpPCXkcbwU8DE= @@ -571,6 +582,8 @@ github.com/prometheus/common v0.3.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1 h1:K0MGApIoQvMw27RTdJkPbr3JZ7DNbtxQNyi5STVM6Kw= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.6.0 h1:kRhiuYSXR3+uv2IbVbZhUxK5zVD/2pp3Gd2PpvPkpEo= +github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= @@ -578,8 +591,10 @@ github.com/prometheus/procfs v0.0.0-20190104112138-b1a0a9a36d74/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/prometheus v2.3.2+incompatible/go.mod h1:oAIUtOny2rjMX0OWN5vPR5/q/twIROJvdqnQKDdil/s= github.com/prometheus/prometheus v2.9.2+incompatible/go.mod h1:vdLuLLM0uqhLSofrQ7Nev2b/rQUyZ+pkT3zF7LB/i1g= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/prometheus/tsdb v0.8.0/go.mod h1:fSI0j+IUQrDd7+ZtR9WKIGtoYAYAJUKcKhYLG25tN4g= @@ -652,7 +667,6 @@ github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f/go.mod h1:VFNgLljT github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= -github.com/vishvananda/netlink v0.0.0-20180206203732-d35d6b58e1cb/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= github.com/vishvananda/netlink v0.0.0-20181108222139-023a6dafdcdf/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= @@ -780,6 +794,7 @@ golang.org/x/sys v0.0.0-20190425145619-16072639606e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f h1:25KHgbfyiSm6vwQLbM3zZIe1v9p/3ea4Rz+nnM5K/i4= golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 h1:ng0gs1AKnRRuEMZoTLLlbOd+C17zUDepwGQBb/n+JVg= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190922100055-0a153f010e69 h1:rOhMmluY6kLMhdnrivzec6lLgaVbMHMn2ISQXJeJ5EM= @@ -820,6 +835,7 @@ golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 h1:QjA/9ArTfVTLfEhClDCG7SG golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190617190820-da514acc4774 h1:CQVOmarCBFzTx0kbOU0ru54Cvot8SdSrNYjZPhQl+gk= golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72 h1:bw9doJza/SFBEweII/rHQh338oozWyiFsBRHtrflcws= golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190930201159-7c411dea38b0/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -862,6 +878,7 @@ google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZi google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -923,6 +940,7 @@ k8s.io/code-generator v0.0.0-20190311093542-50b561225d70/go.mod h1:MYiN+ZJZ9HkET k8s.io/code-generator v0.0.0-20190612205613-18da4a14b22b h1:p+PRuwXWwk5e+UYvicGiavEupapqM5NOxUl3y1GkD6c= k8s.io/code-generator v0.0.0-20190612205613-18da4a14b22b/go.mod h1:G8bQwmHm2eafm5bgtX67XDZQ8CWKSGu9DekI+yN4Y5I= k8s.io/code-generator v0.0.0-20190717022600-77f3a1fe56bb/go.mod h1:cDx5jQmWH25Ff74daM7NVYty9JWw9dvIS9zT9eIubCY= +k8s.io/code-generator v0.0.0-20190912054826-cd179ad6a269/go.mod h1:V5BD6M4CyaN5m+VthcclXWsVcT1Hu+glwa1bi3MIsyE= k8s.io/code-generator v0.17.2/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= k8s.io/code-generator v0.18.0-alpha.2 h1:i+cTAcc6ShbpfWsZmJvqE3VxZ2Nkk3TxczVjiGLNH+8= k8s.io/code-generator v0.18.0-alpha.2/go.mod h1:1Bsaqodc1TFZRb+hdtaQ1SJWc5RIkLIT9ZxThIv2S7M= @@ -964,14 +982,14 @@ k8s.io/kubernetes v1.11.8-beta.0.0.20190124204751-3a10094374f2/go.mod h1:ocZa8+6 k8s.io/kubernetes v1.13.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= k8s.io/utils v0.0.0-20190801114015-581e00157fb1 h1:+ySTxfHnfzZb9ys375PXNlLhkJPLKgHajBU0N62BDvE= k8s.io/utils v0.0.0-20190801114015-581e00157fb1/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -kubevirt.io/client-go v0.25.0 h1:6/bRmsjGtbvA2ObL4yXjgpEWrdIN9iYWe66u4PEoDy4= -kubevirt.io/client-go v0.25.0/go.mod h1:0ri554EgnLhqhjIORUUf/YrUmPBvGMFlOvDNzoM8qVk= +kubevirt.io/client-go v0.29.0 h1:s8TwjVgELtg5fJ18ipFmwuR17G4p8fOb+u0EJvjj5zk= +kubevirt.io/client-go v0.29.0/go.mod h1:JY7hQq+SUT0aLvleXrW/+28fDfZ6BPe4E6f8FyC8jkY= kubevirt.io/containerized-data-importer v1.10.6 h1:xkqLb48pkbdoY8gB2VDP2o+KXpO18tgQuLjcXNn0qAI= kubevirt.io/containerized-data-importer v1.10.6/go.mod h1:qF594BtRRkruyrqLwt3zbLCWdPIQNs1qWh4LR1cOzy0= kubevirt.io/containerized-data-importer v1.10.9 h1:wYCPyMbCLdn5tlZWW/lPYTMPtIOSfdXDevyWw9rxl2s= kubevirt.io/containerized-data-importer v1.10.9/go.mod h1:qF594BtRRkruyrqLwt3zbLCWdPIQNs1qWh4LR1cOzy0= -kubevirt.io/kubevirt v0.25.0 h1:tFnLcSKoy4Gw8EXsgr25VS8AAEH9kBdqdCbePHvQN9o= -kubevirt.io/kubevirt v0.25.0/go.mod h1:wWMoapTFXAGk0PP/WYHqdWw3vBlgJMmeV07/+k3kFIM= +kubevirt.io/kubevirt v0.29.0 h1:4FD3fS0LOujA9nBaB76sVcaAAFb4Ln4TfHp3XN0GI+M= +kubevirt.io/kubevirt v0.29.0/go.mod h1:fEoQAlic2063+LQhjCU9tUCvtuvN4OxA6P91lnB58mY= kubevirt.io/qe-tools v0.1.3-0.20190512140058-934db0579e0c/go.mod h1:PJyH/YXC4W0AmxfheDmXWMbLNsMSboVGXKpMAwfKzVE= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= @@ -982,6 +1000,7 @@ rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= sigs.k8s.io/controller-runtime v0.1.9/go.mod h1:HFAYoOh6XMV+jKF1UjFwrknPbowfyHEHHRdJMf2jMX8= sigs.k8s.io/controller-runtime v0.4.0 h1:wATM6/m+3w8lj8FXNaO6Fs/rq/vqoOjO1Q116Z9NPsg= sigs.k8s.io/controller-runtime v0.4.0/go.mod h1:ApC79lpY3PHW9xj/w9pj+lYkLgwAAUZwfXkME1Lajns= +sigs.k8s.io/controller-tools v0.2.4/go.mod h1:m/ztfQNocGYBgTTCmFdnK94uVvgxeZeE3LtJvd/jIzA= sigs.k8s.io/controller-tools v0.3.0 h1:y3YD99XOyWaXkiF1kd41uRvfp/64teWcrEZFuHxPhJ4= sigs.k8s.io/controller-tools v0.3.0/go.mod h1:enhtKGfxZD1GFEoMgP8Fdbu+uKQ/cq1/WGJhdVChfvI= sigs.k8s.io/kustomize/api v0.1.1 h1:W2dWXex2MhF4/EZNokZllvet2RejCHqdAFklufN7VTg= diff --git a/tests/virtual_machines_test.go b/tests/virtual_machines_test.go index ea2b1ce54..c667d5360 100644 --- a/tests/virtual_machines_test.go +++ b/tests/virtual_machines_test.go @@ -414,8 +414,7 @@ var _ = Describe("Virtual Machines", func() { baseVM := vm1.DeepCopy() err = testClient.VirtClient.Create(context.TODO(), vm1) - Expect(err).To(HaveOccurred()) - Expect(strings.Contains(err.Error(), "every network must be mapped to an interface")).To(Equal(true)) + Expect(err).To(HaveOccurred(), "should fail to create VM due to missing interface assignment to a network") baseVM.Spec.Template.Spec.Domain.Devices.Interfaces = append(baseVM.Spec.Template.Spec.Domain.Devices.Interfaces, newInterface("br2", "")) @@ -440,8 +439,7 @@ var _ = Describe("Virtual Machines", func() { baseVM.Name = "new-vm" err = testClient.VirtClient.Create(context.TODO(), vm1) - Expect(err).To(HaveOccurred()) - Expect(strings.Contains(err.Error(), "every network must be mapped to an interface")).To(Equal(true)) + Expect(err).To(HaveOccurred(), "should fail to create VM due to missing interface assignment to a network") baseVM.Spec.Template.Spec.Domain.Devices.Interfaces = append(baseVM.Spec.Template.Spec.Domain.Devices.Interfaces, newInterface("br2", "")) diff --git a/vendor/kubevirt.io/client-go/api/v1/deepcopy_generated.go b/vendor/kubevirt.io/client-go/api/v1/deepcopy_generated.go index 3aa93ff64..89a0eb3df 100644 --- a/vendor/kubevirt.io/client-go/api/v1/deepcopy_generated.go +++ b/vendor/kubevirt.io/client-go/api/v1/deepcopy_generated.go @@ -399,6 +399,11 @@ func (in *Devices) DeepCopyInto(out *Devices) { *out = new(bool) **out = **in } + if in.AutoattachSerialConsole != nil { + in, out := &in.AutoattachSerialConsole, &out.AutoattachSerialConsole + *out = new(bool) + **out = **in + } if in.Rng != nil { in, out := &in.Rng, &out.Rng *out = new(Rng) @@ -879,22 +884,6 @@ func (in *GPU) DeepCopy() *GPU { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GenieNetwork) DeepCopyInto(out *GenieNetwork) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenieNetwork. -func (in *GenieNetwork) DeepCopy() *GenieNetwork { - if in == nil { - return nil - } - out := new(GenieNetwork) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HPETTimer) DeepCopyInto(out *HPETTimer) { *out = *in @@ -1191,7 +1180,7 @@ func (in *KubeVirt) DeepCopyInto(out *KubeVirt) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } @@ -1214,6 +1203,27 @@ func (in *KubeVirt) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeVirtCertificateRotateStrategy) DeepCopyInto(out *KubeVirtCertificateRotateStrategy) { + *out = *in + if in.SelfSigned != nil { + in, out := &in.SelfSigned, &out.SelfSigned + *out = new(KubeVirtSelfSignConfiguration) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeVirtCertificateRotateStrategy. +func (in *KubeVirtCertificateRotateStrategy) DeepCopy() *KubeVirtCertificateRotateStrategy { + if in == nil { + return nil + } + out := new(KubeVirtCertificateRotateStrategy) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KubeVirtCondition) DeepCopyInto(out *KubeVirtCondition) { *out = *in @@ -1236,7 +1246,7 @@ func (in *KubeVirtCondition) DeepCopy() *KubeVirtCondition { func (in *KubeVirtList) DeepCopyInto(out *KubeVirtList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]KubeVirt, len(*in)) @@ -1265,9 +1275,41 @@ func (in *KubeVirtList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeVirtSelfSignConfiguration) DeepCopyInto(out *KubeVirtSelfSignConfiguration) { + *out = *in + if in.CARotateInterval != nil { + in, out := &in.CARotateInterval, &out.CARotateInterval + *out = new(metav1.Duration) + **out = **in + } + if in.CertRotateInterval != nil { + in, out := &in.CertRotateInterval, &out.CertRotateInterval + *out = new(metav1.Duration) + **out = **in + } + if in.CAOverlapInterval != nil { + in, out := &in.CAOverlapInterval, &out.CAOverlapInterval + *out = new(metav1.Duration) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeVirtSelfSignConfiguration. +func (in *KubeVirtSelfSignConfiguration) DeepCopy() *KubeVirtSelfSignConfiguration { + if in == nil { + return nil + } + out := new(KubeVirtSelfSignConfiguration) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KubeVirtSpec) DeepCopyInto(out *KubeVirtSpec) { *out = *in + in.CertificateRotationStrategy.DeepCopyInto(&out.CertificateRotationStrategy) return } @@ -1408,11 +1450,6 @@ func (in *NetworkSource) DeepCopyInto(out *NetworkSource) { *out = new(MultusNetwork) **out = **in } - if in.Genie != nil { - in, out := &in.Genie, &out.Genie - *out = new(GenieNetwork) - **out = **in - } return } @@ -1517,6 +1554,28 @@ func (in *RTCTimer) DeepCopy() *RTCTimer { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RenameOptions) DeepCopyInto(out *RenameOptions) { + *out = *in + out.TypeMeta = in.TypeMeta + if in.OldName != nil { + in, out := &in.OldName, &out.OldName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RenameOptions. +func (in *RenameOptions) DeepCopy() *RenameOptions { + if in == nil { + return nil + } + out := new(RenameOptions) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements) { *out = *in @@ -1771,6 +1830,106 @@ func (in *VirtualMachineInstanceCondition) DeepCopy() *VirtualMachineInstanceCon return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceFileSystem) DeepCopyInto(out *VirtualMachineInstanceFileSystem) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceFileSystem. +func (in *VirtualMachineInstanceFileSystem) DeepCopy() *VirtualMachineInstanceFileSystem { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceFileSystem) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceFileSystemInfo) DeepCopyInto(out *VirtualMachineInstanceFileSystemInfo) { + *out = *in + if in.Filesystems != nil { + in, out := &in.Filesystems, &out.Filesystems + *out = make([]VirtualMachineInstanceFileSystem, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceFileSystemInfo. +func (in *VirtualMachineInstanceFileSystemInfo) DeepCopy() *VirtualMachineInstanceFileSystemInfo { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceFileSystemInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceFileSystemList) DeepCopyInto(out *VirtualMachineInstanceFileSystemList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualMachineInstanceFileSystem, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceFileSystemList. +func (in *VirtualMachineInstanceFileSystemList) DeepCopy() *VirtualMachineInstanceFileSystemList { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceFileSystemList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualMachineInstanceFileSystemList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceGuestAgentInfo) DeepCopyInto(out *VirtualMachineInstanceGuestAgentInfo) { + *out = *in + out.TypeMeta = in.TypeMeta + out.OS = in.OS + if in.UserList != nil { + in, out := &in.UserList, &out.UserList + *out = make([]VirtualMachineInstanceGuestOSUser, len(*in)) + copy(*out, *in) + } + in.FSInfo.DeepCopyInto(&out.FSInfo) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceGuestAgentInfo. +func (in *VirtualMachineInstanceGuestAgentInfo) DeepCopy() *VirtualMachineInstanceGuestAgentInfo { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceGuestAgentInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualMachineInstanceGuestAgentInfo) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualMachineInstanceGuestOSInfo) DeepCopyInto(out *VirtualMachineInstanceGuestOSInfo) { *out = *in @@ -1787,11 +1946,58 @@ func (in *VirtualMachineInstanceGuestOSInfo) DeepCopy() *VirtualMachineInstanceG return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceGuestOSUser) DeepCopyInto(out *VirtualMachineInstanceGuestOSUser) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceGuestOSUser. +func (in *VirtualMachineInstanceGuestOSUser) DeepCopy() *VirtualMachineInstanceGuestOSUser { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceGuestOSUser) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualMachineInstanceGuestOSUserList) DeepCopyInto(out *VirtualMachineInstanceGuestOSUserList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualMachineInstanceGuestOSUser, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceGuestOSUserList. +func (in *VirtualMachineInstanceGuestOSUserList) DeepCopy() *VirtualMachineInstanceGuestOSUserList { + if in == nil { + return nil + } + out := new(VirtualMachineInstanceGuestOSUserList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualMachineInstanceGuestOSUserList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualMachineInstanceList) DeepCopyInto(out *VirtualMachineInstanceList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VirtualMachineInstance, len(*in)) @@ -1870,7 +2076,7 @@ func (in *VirtualMachineInstanceMigrationCondition) DeepCopy() *VirtualMachineIn func (in *VirtualMachineInstanceMigrationList) DeepCopyInto(out *VirtualMachineInstanceMigrationList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VirtualMachineInstanceMigration, len(*in)) @@ -2021,7 +2227,7 @@ func (in *VirtualMachineInstancePreset) DeepCopyObject() runtime.Object { func (in *VirtualMachineInstancePresetList) DeepCopyInto(out *VirtualMachineInstancePresetList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VirtualMachineInstancePreset, len(*in)) @@ -2122,7 +2328,7 @@ func (in *VirtualMachineInstanceReplicaSetCondition) DeepCopy() *VirtualMachineI func (in *VirtualMachineInstanceReplicaSetList) DeepCopyInto(out *VirtualMachineInstanceReplicaSetList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VirtualMachineInstanceReplicaSet, len(*in)) @@ -2308,6 +2514,13 @@ func (in *VirtualMachineInstanceStatus) DeepCopyInto(out *VirtualMachineInstance *out = new(corev1.PodQOSClass) **out = **in } + if in.ActivePods != nil { + in, out := &in.ActivePods, &out.ActivePods + *out = make(map[types.UID]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -2343,7 +2556,7 @@ func (in *VirtualMachineInstanceTemplateSpec) DeepCopy() *VirtualMachineInstance func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]VirtualMachine, len(*in)) @@ -2413,6 +2626,13 @@ func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualMachineStateChangeRequest) DeepCopyInto(out *VirtualMachineStateChangeRequest) { *out = *in + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.UID != nil { in, out := &in.UID, &out.UID *out = new(types.UID) diff --git a/vendor/kubevirt.io/client-go/api/v1/openapi_generated.go b/vendor/kubevirt.io/client-go/api/v1/openapi_generated.go index 2d32e72f3..807a46940 100644 --- a/vendor/kubevirt.io/client-go/api/v1/openapi_generated.go +++ b/vendor/kubevirt.io/client-go/api/v1/openapi_generated.go @@ -61,7 +61,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.Firmware": schema_kubevirtio_client_go_api_v1_Firmware(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.FloppyTarget": schema_kubevirtio_client_go_api_v1_FloppyTarget(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GPU": schema_kubevirtio_client_go_api_v1_GPU(ref), - "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GenieNetwork": schema_kubevirtio_client_go_api_v1_GenieNetwork(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.HPETTimer": schema_kubevirtio_client_go_api_v1_HPETTimer(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.HostDisk": schema_kubevirtio_client_go_api_v1_HostDisk(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.Hugepages": schema_kubevirtio_client_go_api_v1_Hugepages(ref), @@ -100,6 +99,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineCondition": schema_kubevirtio_client_go_api_v1_VirtualMachineCondition(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstance": schema_kubevirtio_client_go_api_v1_VirtualMachineInstance(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceCondition": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceCondition(ref), + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceFileSystemList": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceFileSystemList(ref), + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestAgentInfo": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceGuestAgentInfo(ref), + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSUserList": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceGuestOSUserList(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceList": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceList(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceMigration": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigration(ref), "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceMigrationCondition": schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationCondition(ref), @@ -133,10 +135,9 @@ func schema_kubevirtio_client_go_api_v1_BIOS(ref common.ReferenceCallback) commo Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "If set (default), BIOS will be used.", - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -145,6 +146,7 @@ func schema_kubevirtio_client_go_api_v1_Bootloader(ref common.ReferenceCallback) Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the firmware blob used to assist in the domain creation process. Used for setting the QEMU BIOS file path for the libvirt domain.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bios": { SchemaProps: spec.SchemaProps{ @@ -170,6 +172,7 @@ func schema_kubevirtio_client_go_api_v1_CDRomTarget(ref common.ReferenceCallback return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bus": { SchemaProps: spec.SchemaProps{ @@ -195,7 +198,6 @@ func schema_kubevirtio_client_go_api_v1_CDRomTarget(ref common.ReferenceCallback }, }, }, - Dependencies: []string{}, } } @@ -204,6 +206,7 @@ func schema_kubevirtio_client_go_api_v1_CPU(ref common.ReferenceCallback) common Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "CPU allows specifying the CPU topology.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "cores": { SchemaProps: spec.SchemaProps{ @@ -273,6 +276,7 @@ func schema_kubevirtio_client_go_api_v1_CPUFeature(ref common.ReferenceCallback) Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "CPUFeature allows specifying a CPU feature.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -292,7 +296,6 @@ func schema_kubevirtio_client_go_api_v1_CPUFeature(ref common.ReferenceCallback) Required: []string{"name"}, }, }, - Dependencies: []string{}, } } @@ -301,6 +304,7 @@ func schema_kubevirtio_client_go_api_v1_Chassis(ref common.ReferenceCallback) co Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Chassis specifies the chassis info passed to the domain.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "manufacturer": { SchemaProps: spec.SchemaProps{ @@ -335,7 +339,6 @@ func schema_kubevirtio_client_go_api_v1_Chassis(ref common.ReferenceCallback) co }, }, }, - Dependencies: []string{}, } } @@ -344,6 +347,7 @@ func schema_kubevirtio_client_go_api_v1_Clock(ref common.ReferenceCallback) comm Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the clock and timers of a vmi.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "utc": { SchemaProps: spec.SchemaProps{ @@ -371,6 +375,7 @@ func schema_kubevirtio_client_go_api_v1_ClockOffset(ref common.ReferenceCallback Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Exactly one of its members must be set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "utc": { SchemaProps: spec.SchemaProps{ @@ -398,6 +403,7 @@ func schema_kubevirtio_client_go_api_v1_ClockOffsetUTC(ref common.ReferenceCallb Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "UTC sets the guest clock to UTC on each boot.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "offsetSeconds": { SchemaProps: spec.SchemaProps{ @@ -409,7 +415,6 @@ func schema_kubevirtio_client_go_api_v1_ClockOffsetUTC(ref common.ReferenceCallb }, }, }, - Dependencies: []string{}, } } @@ -418,6 +423,7 @@ func schema_kubevirtio_client_go_api_v1_CloudInitConfigDriveSource(ref common.Re Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents a cloud-init config drive user data source. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "secretRef": { SchemaProps: spec.SchemaProps{ @@ -472,6 +478,7 @@ func schema_kubevirtio_client_go_api_v1_CloudInitNoCloudSource(ref common.Refere Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents a cloud-init nocloud user data source. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "secretRef": { SchemaProps: spec.SchemaProps{ @@ -526,6 +533,7 @@ func schema_kubevirtio_client_go_api_v1_ConfigMapVolumeSource(ref common.Referen Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "ConfigMapVolumeSource adapts a ConfigMap into a volume. More info: https://kubernetes.io/docs/concepts/storage/volumes/#configmap", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -541,10 +549,16 @@ func schema_kubevirtio_client_go_api_v1_ConfigMapVolumeSource(ref common.Referen Format: "", }, }, + "volumeLabel": { + SchemaProps: spec.SchemaProps{ + Description: "The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, - Dependencies: []string{}, } } @@ -553,6 +567,7 @@ func schema_kubevirtio_client_go_api_v1_ContainerDiskSource(ref common.Reference Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents a docker image with an embedded disk.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "image": { SchemaProps: spec.SchemaProps{ @@ -586,7 +601,6 @@ func schema_kubevirtio_client_go_api_v1_ContainerDiskSource(ref common.Reference Required: []string{"image"}, }, }, - Dependencies: []string{}, } } @@ -595,6 +609,7 @@ func schema_kubevirtio_client_go_api_v1_DHCPOptions(ref common.ReferenceCallback Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Extra DHCP options to use in the interface.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bootFileName": { SchemaProps: spec.SchemaProps{ @@ -649,6 +664,7 @@ func schema_kubevirtio_client_go_api_v1_DataVolumeSource(ref common.ReferenceCal return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -661,7 +677,6 @@ func schema_kubevirtio_client_go_api_v1_DataVolumeSource(ref common.ReferenceCal Required: []string{"name"}, }, }, - Dependencies: []string{}, } } @@ -669,6 +684,7 @@ func schema_kubevirtio_client_go_api_v1_Devices(ref common.ReferenceCallback) co return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "disks": { SchemaProps: spec.SchemaProps{ @@ -729,6 +745,13 @@ func schema_kubevirtio_client_go_api_v1_Devices(ref common.ReferenceCallback) co Format: "", }, }, + "autoattachSerialConsole": { + SchemaProps: spec.SchemaProps{ + Description: "Whether to attach the default serial console or not. Serial console access will not be available if set to false. Defaults to true.", + Type: []string{"boolean"}, + Format: "", + }, + }, "rng": { SchemaProps: spec.SchemaProps{ Description: "Whether to have random number generator from host", @@ -774,6 +797,7 @@ func schema_kubevirtio_client_go_api_v1_Disk(ref common.ReferenceCallback) commo return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -834,6 +858,13 @@ func schema_kubevirtio_client_go_api_v1_Disk(ref common.ReferenceCallback) commo Format: "", }, }, + "tag": { + SchemaProps: spec.SchemaProps{ + Description: "If specified, disk address and its tag will be provided to the guest via config drive metadata", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"name"}, }, @@ -848,6 +879,7 @@ func schema_kubevirtio_client_go_api_v1_DiskDevice(ref common.ReferenceCallback) Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the target of a volume to mount. Only one of its members may be specified.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "disk": { SchemaProps: spec.SchemaProps{ @@ -885,6 +917,7 @@ func schema_kubevirtio_client_go_api_v1_DiskTarget(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bus": { SchemaProps: spec.SchemaProps{ @@ -910,7 +943,6 @@ func schema_kubevirtio_client_go_api_v1_DiskTarget(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, } } @@ -918,6 +950,7 @@ func schema_kubevirtio_client_go_api_v1_DomainSpec(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "resources": { SchemaProps: spec.SchemaProps{ @@ -994,10 +1027,9 @@ func schema_kubevirtio_client_go_api_v1_EFI(ref common.ReferenceCallback) common Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "If set, EFI will be used instead of BIOS.", - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -1006,6 +1038,7 @@ func schema_kubevirtio_client_go_api_v1_EmptyDiskSource(ref common.ReferenceCall Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "EmptyDisk represents a temporary disk which shares the vmis lifecycle.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "capacity": { SchemaProps: spec.SchemaProps{ @@ -1026,6 +1059,7 @@ func schema_kubevirtio_client_go_api_v1_EphemeralVolumeSource(ref common.Referen return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "persistentVolumeClaim": { SchemaProps: spec.SchemaProps{ @@ -1045,6 +1079,7 @@ func schema_kubevirtio_client_go_api_v1_FeatureAPIC(ref common.ReferenceCallback return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "enabled": { SchemaProps: spec.SchemaProps{ @@ -1063,7 +1098,6 @@ func schema_kubevirtio_client_go_api_v1_FeatureAPIC(ref common.ReferenceCallback }, }, }, - Dependencies: []string{}, } } @@ -1072,6 +1106,7 @@ func schema_kubevirtio_client_go_api_v1_FeatureHyperv(ref common.ReferenceCallba Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Hyperv specific features.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "relaxed": { SchemaProps: spec.SchemaProps{ @@ -1169,6 +1204,7 @@ func schema_kubevirtio_client_go_api_v1_FeatureSpinlocks(ref common.ReferenceCal return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "enabled": { SchemaProps: spec.SchemaProps{ @@ -1187,7 +1223,6 @@ func schema_kubevirtio_client_go_api_v1_FeatureSpinlocks(ref common.ReferenceCal }, }, }, - Dependencies: []string{}, } } @@ -1196,6 +1231,7 @@ func schema_kubevirtio_client_go_api_v1_FeatureState(ref common.ReferenceCallbac Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents if a feature is enabled or disabled.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "enabled": { SchemaProps: spec.SchemaProps{ @@ -1207,7 +1243,6 @@ func schema_kubevirtio_client_go_api_v1_FeatureState(ref common.ReferenceCallbac }, }, }, - Dependencies: []string{}, } } @@ -1215,6 +1250,7 @@ func schema_kubevirtio_client_go_api_v1_FeatureVendorID(ref common.ReferenceCall return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "enabled": { SchemaProps: spec.SchemaProps{ @@ -1233,7 +1269,6 @@ func schema_kubevirtio_client_go_api_v1_FeatureVendorID(ref common.ReferenceCall }, }, }, - Dependencies: []string{}, } } @@ -1241,6 +1276,7 @@ func schema_kubevirtio_client_go_api_v1_Features(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "acpi": { SchemaProps: spec.SchemaProps{ @@ -1278,6 +1314,7 @@ func schema_kubevirtio_client_go_api_v1_Firmware(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "uuid": { SchemaProps: spec.SchemaProps{ @@ -1311,6 +1348,7 @@ func schema_kubevirtio_client_go_api_v1_FloppyTarget(ref common.ReferenceCallbac return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "readonly": { SchemaProps: spec.SchemaProps{ @@ -1329,7 +1367,6 @@ func schema_kubevirtio_client_go_api_v1_FloppyTarget(ref common.ReferenceCallbac }, }, }, - Dependencies: []string{}, } } @@ -1337,6 +1374,7 @@ func schema_kubevirtio_client_go_api_v1_GPU(ref common.ReferenceCallback) common return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -1355,28 +1393,6 @@ func schema_kubevirtio_client_go_api_v1_GPU(ref common.ReferenceCallback) common Required: []string{"name", "deviceName"}, }, }, - Dependencies: []string{}, - } -} - -func schema_kubevirtio_client_go_api_v1_GenieNetwork(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Represents the genie cni network.", - Properties: map[string]spec.Schema{ - "networkName": { - SchemaProps: spec.SchemaProps{ - Description: "References the CNI plugin name.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"networkName"}, - }, - }, - Dependencies: []string{}, } } @@ -1384,6 +1400,7 @@ func schema_kubevirtio_client_go_api_v1_HPETTimer(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "tickPolicy": { SchemaProps: spec.SchemaProps{ @@ -1402,7 +1419,6 @@ func schema_kubevirtio_client_go_api_v1_HPETTimer(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, } } @@ -1411,6 +1427,7 @@ func schema_kubevirtio_client_go_api_v1_HostDisk(ref common.ReferenceCallback) c Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents a disk created on the cluster level", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "path": { SchemaProps: spec.SchemaProps{ @@ -1453,6 +1470,7 @@ func schema_kubevirtio_client_go_api_v1_Hugepages(ref common.ReferenceCallback) Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "pageSize": { SchemaProps: spec.SchemaProps{ @@ -1464,7 +1482,6 @@ func schema_kubevirtio_client_go_api_v1_Hugepages(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, } } @@ -1472,6 +1489,7 @@ func schema_kubevirtio_client_go_api_v1_HypervTimer(ref common.ReferenceCallback return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "present": { SchemaProps: spec.SchemaProps{ @@ -1483,7 +1501,6 @@ func schema_kubevirtio_client_go_api_v1_HypervTimer(ref common.ReferenceCallback }, }, }, - Dependencies: []string{}, } } @@ -1492,6 +1509,7 @@ func schema_kubevirtio_client_go_api_v1_I6300ESBWatchdog(ref common.ReferenceCal Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "i6300esb watchdog device.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "action": { SchemaProps: spec.SchemaProps{ @@ -1503,7 +1521,6 @@ func schema_kubevirtio_client_go_api_v1_I6300ESBWatchdog(ref common.ReferenceCal }, }, }, - Dependencies: []string{}, } } @@ -1511,6 +1528,7 @@ func schema_kubevirtio_client_go_api_v1_Input(ref common.ReferenceCallback) comm return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bus": { SchemaProps: spec.SchemaProps{ @@ -1537,7 +1555,6 @@ func schema_kubevirtio_client_go_api_v1_Input(ref common.ReferenceCallback) comm Required: []string{"type", "name"}, }, }, - Dependencies: []string{}, } } @@ -1545,6 +1562,7 @@ func schema_kubevirtio_client_go_api_v1_Interface(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -1620,6 +1638,13 @@ func schema_kubevirtio_client_go_api_v1_Interface(ref common.ReferenceCallback) Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.DHCPOptions"), }, }, + "tag": { + SchemaProps: spec.SchemaProps{ + Description: "If specified, the virtual network interface address and its tag will be provided to the guest via config drive", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"name"}, }, @@ -1634,6 +1659,7 @@ func schema_kubevirtio_client_go_api_v1_InterfaceBindingMethod(ref common.Refere Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the method which will be used to connect the interface to the guest. Only one of its members may be specified.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bridge": { SchemaProps: spec.SchemaProps{ @@ -1667,10 +1693,9 @@ func schema_kubevirtio_client_go_api_v1_InterfaceBridge(ref common.ReferenceCall return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -1678,10 +1703,9 @@ func schema_kubevirtio_client_go_api_v1_InterfaceMasquerade(ref common.Reference return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -1689,10 +1713,9 @@ func schema_kubevirtio_client_go_api_v1_InterfaceSRIOV(ref common.ReferenceCallb return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -1700,10 +1723,9 @@ func schema_kubevirtio_client_go_api_v1_InterfaceSlirp(ref common.ReferenceCallb return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -1711,6 +1733,7 @@ func schema_kubevirtio_client_go_api_v1_KVMTimer(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "present": { SchemaProps: spec.SchemaProps{ @@ -1722,7 +1745,6 @@ func schema_kubevirtio_client_go_api_v1_KVMTimer(ref common.ReferenceCallback) c }, }, }, - Dependencies: []string{}, } } @@ -1731,17 +1753,18 @@ func schema_kubevirtio_client_go_api_v1_KubeVirt(ref common.ReferenceCallback) c Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "KubeVirt represents the object deploying all KubeVirt resources", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -1770,6 +1793,7 @@ func schema_kubevirtio_client_go_api_v1_KubeVirtCondition(ref common.ReferenceCa Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "KubeVirtCondition represents a condition of a KubeVirt deployment", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -1819,17 +1843,18 @@ func schema_kubevirtio_client_go_api_v1_KubeVirtList(ref common.ReferenceCallbac Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "KubeVirtList is a list of KubeVirts", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -1864,6 +1889,7 @@ func schema_kubevirtio_client_go_api_v1_KubeVirtSpec(ref common.ReferenceCallbac return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "imageTag": { SchemaProps: spec.SchemaProps{ @@ -1900,10 +1926,23 @@ func schema_kubevirtio_client_go_api_v1_KubeVirtSpec(ref common.ReferenceCallbac Format: "", }, }, + "uninstallStrategy": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss", + Type: []string{"string"}, + Format: "", + }, + }, + "certificateRotateStrategy": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.KubeVirtCertificateRotateStrategy"), + }, + }, }, }, }, - Dependencies: []string{}, + Dependencies: []string{ + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.KubeVirtCertificateRotateStrategy"}, } } @@ -1912,6 +1951,7 @@ func schema_kubevirtio_client_go_api_v1_KubeVirtStatus(ref common.ReferenceCallb Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "KubeVirtStatus represents information pertaining to a KubeVirt deployment.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "phase": { SchemaProps: spec.SchemaProps{ @@ -1997,6 +2037,7 @@ func schema_kubevirtio_client_go_api_v1_LunTarget(ref common.ReferenceCallback) return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "bus": { SchemaProps: spec.SchemaProps{ @@ -2015,7 +2056,6 @@ func schema_kubevirtio_client_go_api_v1_LunTarget(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, } } @@ -2023,6 +2063,7 @@ func schema_kubevirtio_client_go_api_v1_Machine(ref common.ReferenceCallback) co return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -2035,7 +2076,6 @@ func schema_kubevirtio_client_go_api_v1_Machine(ref common.ReferenceCallback) co Required: []string{"type"}, }, }, - Dependencies: []string{}, } } @@ -2044,6 +2084,7 @@ func schema_kubevirtio_client_go_api_v1_Memory(ref common.ReferenceCallback) com Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Memory allows specifying the VirtualMachineInstance memory features.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "hugepages": { SchemaProps: spec.SchemaProps{ @@ -2070,6 +2111,7 @@ func schema_kubevirtio_client_go_api_v1_MultusNetwork(ref common.ReferenceCallba Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the multus cni network.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "networkName": { SchemaProps: spec.SchemaProps{ @@ -2089,7 +2131,6 @@ func schema_kubevirtio_client_go_api_v1_MultusNetwork(ref common.ReferenceCallba Required: []string{"networkName"}, }, }, - Dependencies: []string{}, } } @@ -2098,6 +2139,7 @@ func schema_kubevirtio_client_go_api_v1_Network(ref common.ReferenceCallback) co Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Network represents a network type and a resource that should be connected to the vm.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -2116,17 +2158,12 @@ func schema_kubevirtio_client_go_api_v1_Network(ref common.ReferenceCallback) co Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork"), }, }, - "genie": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GenieNetwork"), - }, - }, }, Required: []string{"name"}, }, }, Dependencies: []string{ - "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GenieNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.PodNetwork"}, + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.PodNetwork"}, } } @@ -2135,6 +2172,7 @@ func schema_kubevirtio_client_go_api_v1_NetworkSource(ref common.ReferenceCallba Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the source resource that will be connected to the vm. Only one of its members may be specified.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "pod": { SchemaProps: spec.SchemaProps{ @@ -2146,16 +2184,11 @@ func schema_kubevirtio_client_go_api_v1_NetworkSource(ref common.ReferenceCallba Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork"), }, }, - "genie": { - SchemaProps: spec.SchemaProps{ - Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GenieNetwork"), - }, - }, }, }, }, Dependencies: []string{ - "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.GenieNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.PodNetwork"}, + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.MultusNetwork", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.PodNetwork"}, } } @@ -2163,6 +2196,7 @@ func schema_kubevirtio_client_go_api_v1_PITTimer(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "tickPolicy": { SchemaProps: spec.SchemaProps{ @@ -2181,7 +2215,6 @@ func schema_kubevirtio_client_go_api_v1_PITTimer(ref common.ReferenceCallback) c }, }, }, - Dependencies: []string{}, } } @@ -2190,6 +2223,7 @@ func schema_kubevirtio_client_go_api_v1_PodNetwork(ref common.ReferenceCallback) Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the stock pod network interface.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "vmNetworkCIDR": { SchemaProps: spec.SchemaProps{ @@ -2201,7 +2235,6 @@ func schema_kubevirtio_client_go_api_v1_PodNetwork(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, } } @@ -2210,6 +2243,7 @@ func schema_kubevirtio_client_go_api_v1_Port(ref common.ReferenceCallback) commo Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Port repesents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -2236,7 +2270,6 @@ func schema_kubevirtio_client_go_api_v1_Port(ref common.ReferenceCallback) commo Required: []string{"port"}, }, }, - Dependencies: []string{}, } } @@ -2244,6 +2277,7 @@ func schema_kubevirtio_client_go_api_v1_RTCTimer(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "tickPolicy": { SchemaProps: spec.SchemaProps{ @@ -2269,7 +2303,6 @@ func schema_kubevirtio_client_go_api_v1_RTCTimer(ref common.ReferenceCallback) c }, }, }, - Dependencies: []string{}, } } @@ -2277,12 +2310,14 @@ func schema_kubevirtio_client_go_api_v1_ResourceRequirements(ref common.Referenc return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "requests": { SchemaProps: spec.SchemaProps{ Description: "Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\".", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), @@ -2296,6 +2331,7 @@ func schema_kubevirtio_client_go_api_v1_ResourceRequirements(ref common.Referenc Description: "Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\".", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), @@ -2324,17 +2360,18 @@ func schema_kubevirtio_client_go_api_v1_RestartOptions(ref common.ReferenceCallb Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "RestartOptions may be provided when deleting an API object.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2349,7 +2386,6 @@ func schema_kubevirtio_client_go_api_v1_RestartOptions(ref common.ReferenceCallb }, }, }, - Dependencies: []string{}, } } @@ -2358,10 +2394,9 @@ func schema_kubevirtio_client_go_api_v1_Rng(ref common.ReferenceCallback) common Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Rng represents the random device passed from host", - Properties: map[string]spec.Schema{}, + Type: []string{"object"}, }, }, - Dependencies: []string{}, } } @@ -2370,6 +2405,7 @@ func schema_kubevirtio_client_go_api_v1_SecretVolumeSource(ref common.ReferenceC Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "SecretVolumeSource adapts a Secret into a volume.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "secretName": { SchemaProps: spec.SchemaProps{ @@ -2385,10 +2421,16 @@ func schema_kubevirtio_client_go_api_v1_SecretVolumeSource(ref common.ReferenceC Format: "", }, }, + "volumeLabel": { + SchemaProps: spec.SchemaProps{ + Description: "The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, - Dependencies: []string{}, } } @@ -2397,6 +2439,7 @@ func schema_kubevirtio_client_go_api_v1_ServiceAccountVolumeSource(ref common.Re Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "ServiceAccountVolumeSource adapts a ServiceAccount into a volume.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "serviceAccountName": { SchemaProps: spec.SchemaProps{ @@ -2408,7 +2451,6 @@ func schema_kubevirtio_client_go_api_v1_ServiceAccountVolumeSource(ref common.Re }, }, }, - Dependencies: []string{}, } } @@ -2417,6 +2459,7 @@ func schema_kubevirtio_client_go_api_v1_Timer(ref common.ReferenceCallback) comm Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents all available timers in a vmi.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "hpet": { SchemaProps: spec.SchemaProps{ @@ -2461,17 +2504,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachine(ref common.ReferenceCallb Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2502,6 +2546,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineCondition(ref common.Refer Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineCondition represents the state of VirtualMachine", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -2551,17 +2596,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstance(ref common.Refere Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2591,6 +2637,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceCondition(ref comm return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -2635,22 +2682,192 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceCondition(ref comm } } +func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceFileSystemList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualMachineInstanceFileSystemList comprises the list of all filesystems on guest machine", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceFileSystem"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceFileSystem"}, + } +} + +func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceGuestAgentInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "guestAgentVersion": { + SchemaProps: spec.SchemaProps{ + Description: "GAVersion is a version of currently installed guest agent", + Type: []string{"string"}, + Format: "", + }, + }, + "hostname": { + SchemaProps: spec.SchemaProps{ + Description: "Hostname represents FQDN of a guest", + Type: []string{"string"}, + Format: "", + }, + }, + "os": { + SchemaProps: spec.SchemaProps{ + Description: "OS contains the guest operating system information", + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSInfo"), + }, + }, + "timezone": { + SchemaProps: spec.SchemaProps{ + Description: "Timezone is guest os current timezone", + Type: []string{"string"}, + Format: "", + }, + }, + "userList": { + SchemaProps: spec.SchemaProps{ + Description: "UserList is a list of active guest OS users", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSUser"), + }, + }, + }, + }, + }, + "fsInfo": { + SchemaProps: spec.SchemaProps{ + Description: "FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage", + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceFileSystemInfo"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceFileSystemInfo", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSInfo", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSUser"}, + } +} + +func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceGuestOSUserList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualMachineInstanceGuestOSUserList comprises the list of all active users on guest machine", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSUser"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubevirt.io/kubevirt/staging/src/kubevirt.io/client-go/api/v1.VirtualMachineInstanceGuestOSUser"}, + } +} + func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceList is a list of VirtualMachines", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2686,17 +2903,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigration(ref comm Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceMigration represents the object tracking a VMI's migration to another host in the cluster", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2724,6 +2942,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationCondition return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -2773,17 +2992,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationList(ref Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2818,6 +3038,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationSpec(ref return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "vmiName": { SchemaProps: spec.SchemaProps{ @@ -2829,7 +3050,6 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationSpec(ref }, }, }, - Dependencies: []string{}, } } @@ -2838,6 +3058,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceMigrationStatus(re Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceMigration reprents information pertaining to a VMI's migration.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "phase": { SchemaProps: spec.SchemaProps{ @@ -2869,6 +3090,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceNetworkInterface(r return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "ipAddress": { SchemaProps: spec.SchemaProps{ @@ -2915,7 +3137,6 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceNetworkInterface(r }, }, }, - Dependencies: []string{}, } } @@ -2923,17 +3144,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstancePreset(ref common. return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2957,17 +3179,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstancePresetList(ref com Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstancePresetList is a list of VirtualMachinePresets", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -3002,6 +3225,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstancePresetSpec(ref com return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "selector": { SchemaProps: spec.SchemaProps{ @@ -3029,17 +3253,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceReplicaSet(ref com Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -3069,6 +3294,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceReplicaSetConditio return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ @@ -3118,17 +3344,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceReplicaSetList(ref Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VMIList is a list of VMIs", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -3163,6 +3390,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceReplicaSetSpec(ref return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ @@ -3203,6 +3431,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceReplicaSetStatus(r return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "replicas": { SchemaProps: spec.SchemaProps{ @@ -3250,7 +3479,15 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceSpec(ref common.Re Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ + "priorityClassName": { + SchemaProps: spec.SchemaProps{ + Description: "If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.", + Type: []string{"string"}, + Format: "", + }, + }, "domain": { SchemaProps: spec.SchemaProps{ Description: "Specification of the desired behavior of the VirtualMachineInstance on the host.", @@ -3262,6 +3499,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceSpec(ref common.Re Description: "NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"string"}, @@ -3277,6 +3515,13 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceSpec(ref common.Re Ref: ref("k8s.io/api/core/v1.Affinity"), }, }, + "schedulerName": { + SchemaProps: spec.SchemaProps{ + Description: "If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler.", + Type: []string{"string"}, + Format: "", + }, + }, "tolerations": { SchemaProps: spec.SchemaProps{ Description: "If toleration is specified, obey all the toleration rules.", @@ -3383,6 +3628,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceStatus(ref common. Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineInstanceStatus represents information about the status of a VirtualMachineInstance. Status may trail the actual state of a system.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "nodeName": { SchemaProps: spec.SchemaProps{ @@ -3457,6 +3703,21 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceStatus(ref common. Format: "", }, }, + "activePods": { + SchemaProps: spec.SchemaProps{ + Description: "ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, @@ -3469,6 +3730,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineInstanceTemplateSpec(ref c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ @@ -3494,17 +3756,18 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineList(ref common.ReferenceC Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineList is a list of virtualmachines", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -3540,6 +3803,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineSpec(ref common.ReferenceC Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineSpec describes how the proper VirtualMachine should look like", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "running": { SchemaProps: spec.SchemaProps{ @@ -3588,6 +3852,7 @@ func schema_kubevirtio_client_go_api_v1_VirtualMachineStatus(ref common.Referenc Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "VirtualMachineStatus represents the status returned by the controller to describe how the VirtualMachine is doing", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "created": { SchemaProps: spec.SchemaProps{ @@ -3642,6 +3907,7 @@ func schema_kubevirtio_client_go_api_v1_Volume(ref common.ReferenceCallback) com Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Volume represents a named volume in a vmi.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -3730,6 +3996,7 @@ func schema_kubevirtio_client_go_api_v1_VolumeSource(ref common.ReferenceCallbac Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Represents the source of a volume to mount. Only one of its members may be specified.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "hostDisk": { SchemaProps: spec.SchemaProps{ @@ -3810,6 +4077,7 @@ func schema_kubevirtio_client_go_api_v1_Watchdog(ref common.ReferenceCallback) c Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Named watchdog device.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ @@ -3838,6 +4106,7 @@ func schema_kubevirtio_client_go_api_v1_WatchdogDevice(ref common.ReferenceCallb Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Description: "Hardware watchdog device. Exactly one of its members must be set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "i6300esb": { SchemaProps: spec.SchemaProps{ diff --git a/vendor/kubevirt.io/client-go/api/v1/schema.go b/vendor/kubevirt.io/client-go/api/v1/schema.go index 18a8fda1a..0e86ab184 100644 --- a/vendor/kubevirt.io/client-go/api/v1/schema.go +++ b/vendor/kubevirt.io/client-go/api/v1/schema.go @@ -66,6 +66,11 @@ type ConfigMapVolumeSource struct { // Specify whether the ConfigMap or it's keys must be defined // +optional Optional *bool `json:"optional,omitempty"` + // The volume label of the resulting disk inside the VMI. + // Different bootstrapping mechanisms require different values. + // Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). + // +optional + VolumeLabel string `json:"volumeLabel,omitempty"` } // SecretVolumeSource adapts a Secret into a volume. @@ -79,6 +84,11 @@ type SecretVolumeSource struct { // Specify whether the Secret or it's keys must be defined // +optional Optional *bool `json:"optional,omitempty"` + // The volume label of the resulting disk inside the VMI. + // Different bootstrapping mechanisms require different values. + // Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart). + // +optional + VolumeLabel string `json:"volumeLabel,omitempty"` } // ServiceAccountVolumeSource adapts a ServiceAccount into a volume. @@ -336,6 +346,9 @@ type Devices struct { // Whether to attach the default graphics device or not. // VNC will not be available if set to false. Defaults to true. AutoattachGraphicsDevice *bool `json:"autoattachGraphicsDevice,omitempty"` + // Whether to attach the default serial console or not. + // Serial console access will not be available if set to false. Defaults to true. + AutoattachSerialConsole *bool `json:"autoattachSerialConsole,omitempty"` // Whether to have random number generator from host // +optional Rng *Rng `json:"rng,omitempty"` @@ -396,6 +409,9 @@ type Disk struct { // Cache specifies which kvm disk cache mode should be used. // +optional Cache DriverCache `json:"cache,omitempty"` + // If specified, disk address and its tag will be provided to the guest via config drive metadata + // +optional + Tag string `json:"tag,omitempty"` } // Represents the target of a volume to mount. @@ -959,6 +975,9 @@ type Interface struct { // If specified the network interface will pass additional DHCP options to the VMI // +optional DHCPOptions *DHCPOptions `json:"dhcpOptions,omitempty"` + // If specified, the virtual network interface address and its tag will be provided to the guest via config drive + // +optional + Tag string `json:"tag,omitempty"` } // Extra DHCP options to use in the interface. @@ -1056,7 +1075,6 @@ type Network struct { type NetworkSource struct { Pod *PodNetwork `json:"pod,omitempty"` Multus *MultusNetwork `json:"multus,omitempty"` - Genie *GenieNetwork `json:"genie,omitempty"` } // Represents the stock pod network interface. @@ -1074,14 +1092,6 @@ type PodNetwork struct { type Rng struct { } -// Represents the genie cni network. -// --- -// +k8s:openapi-gen=true -type GenieNetwork struct { - // References the CNI plugin name. - NetworkName string `json:"networkName"` -} - // Represents the multus cni network. // --- // +k8s:openapi-gen=true diff --git a/vendor/kubevirt.io/client-go/api/v1/schema_swagger_generated.go b/vendor/kubevirt.io/client-go/api/v1/schema_swagger_generated.go index a050a79dd..083c10558 100644 --- a/vendor/kubevirt.io/client-go/api/v1/schema_swagger_generated.go +++ b/vendor/kubevirt.io/client-go/api/v1/schema_swagger_generated.go @@ -14,16 +14,18 @@ func (HostDisk) SwaggerDoc() map[string]string { func (ConfigMapVolumeSource) SwaggerDoc() map[string]string { return map[string]string{ - "": "ConfigMapVolumeSource adapts a ConfigMap into a volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#configmap", - "optional": "Specify whether the ConfigMap or it's keys must be defined\n+optional", + "": "ConfigMapVolumeSource adapts a ConfigMap into a volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#configmap", + "optional": "Specify whether the ConfigMap or it's keys must be defined\n+optional", + "volumeLabel": "The volume label of the resulting disk inside the VMI.\nDifferent bootstrapping mechanisms require different values.\nTypical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).\n+optional", } } func (SecretVolumeSource) SwaggerDoc() map[string]string { return map[string]string{ - "": "SecretVolumeSource adapts a Secret into a volume.", - "secretName": "Name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret\n+optional", - "optional": "Specify whether the Secret or it's keys must be defined\n+optional", + "": "SecretVolumeSource adapts a Secret into a volume.", + "secretName": "Name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret\n+optional", + "optional": "Specify whether the Secret or it's keys must be defined\n+optional", + "volumeLabel": "The volume label of the resulting disk inside the VMI.\nDifferent bootstrapping mechanisms require different values.\nTypical values are \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart).\n+optional", } } @@ -165,6 +167,7 @@ func (Devices) SwaggerDoc() map[string]string { "inputs": "Inputs describe input devices", "autoattachPodInterface": "Whether to attach a pod network interface. Defaults to true.", "autoattachGraphicsDevice": "Whether to attach the default graphics device or not.\nVNC will not be available if set to false. Defaults to true.", + "autoattachSerialConsole": "Whether to attach the default serial console or not.\nSerial console access will not be available if set to false. Defaults to true.", "rng": "Whether to have random number generator from host\n+optional", "blockMultiQueue": "Whether or not to enable virtio multi-queue for block devices\n+optional", "networkInterfaceMultiqueue": "If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature\n+optional", @@ -193,6 +196,7 @@ func (Disk) SwaggerDoc() map[string]string { "serial": "Serial provides the ability to specify a serial number for the disk device.\n+optional", "dedicatedIOThread": "dedicatedIOThread indicates this disk should have an exclusive IO Thread.\nEnabling this implies useIOThreads = true.\nDefaults to false.\n+optional", "cache": "Cache specifies which kvm disk cache mode should be used.\n+optional", + "tag": "If specified, disk address and its tag will be provided to the guest via config drive metadata\n+optional", } } @@ -443,6 +447,7 @@ func (Interface) SwaggerDoc() map[string]string { "bootOrder": "BootOrder is an integer value > 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", "pciAddress": "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", "dhcpOptions": "If specified the network interface will pass additional DHCP options to the VMI\n+optional", + "tag": "If specified, the virtual network interface address and its tag will be provided to the guest via config drive\n+optional", } } @@ -521,13 +526,6 @@ func (Rng) SwaggerDoc() map[string]string { } } -func (GenieNetwork) SwaggerDoc() map[string]string { - return map[string]string{ - "": "Represents the genie cni network.", - "networkName": "References the CNI plugin name.", - } -} - func (MultusNetwork) SwaggerDoc() map[string]string { return map[string]string{ "": "Represents the multus cni network.", diff --git a/vendor/kubevirt.io/client-go/api/v1/types.go b/vendor/kubevirt.io/client-go/api/v1/types.go index d9a9dc383..28c9348c4 100644 --- a/vendor/kubevirt.io/client-go/api/v1/types.go +++ b/vendor/kubevirt.io/client-go/api/v1/types.go @@ -81,6 +81,12 @@ type EvictionStrategy string // --- // +k8s:openapi-gen=true type VirtualMachineInstanceSpec struct { + // If specified, indicates the pod's priority. + // If not specified, the pod priority will be default or zero if there is no + // default. + // +optional + PriorityClassName string `json:"priorityClassName,omitempty"` + // Specification of the desired behavior of the VirtualMachineInstance on the host. Domain DomainSpec `json:"domain"` // NodeSelector is a selector which must be true for the vmi to fit on a node. @@ -90,6 +96,10 @@ type VirtualMachineInstanceSpec struct { NodeSelector map[string]string `json:"nodeSelector,omitempty"` // If affinity is specifies, obey all the affinity rules Affinity *k8sv1.Affinity `json:"affinity,omitempty"` + // If specified, the VMI will be dispatched by specified scheduler. + // If not specified, the VMI will be dispatched by default scheduler. + // +optional + SchedulerName string `json:"schedulerName,omitempty"` // If toleration is specified, obey all the toleration rules. Tolerations []k8sv1.Toleration `json:"tolerations,omitempty"` @@ -168,6 +178,10 @@ type VirtualMachineInstanceStatus struct { // More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md // +optional QOSClass *k8sv1.PodQOSClass `json:"qosClass,omitempty"` + + // ActivePods is a mapping of pod UID to node name. + // It is possible for multiple pods to be running for a single VMI during migration. + ActivePods map[types.UID]string `json:"activePods,omitempty"` } func (v *VirtualMachineInstance) IsScheduling() bool { @@ -227,6 +241,9 @@ const ( // Reflects whether the QEMU guest agent is connected through the channel VirtualMachineInstanceAgentConnected VirtualMachineInstanceConditionType = "AgentConnected" + // Reflects whether the QEMU guest agent is connected through the channel + VirtualMachineInstanceUnsupportedAgent VirtualMachineInstanceConditionType = "AgentVersionNotSupported" + // Indicates whether the VMI is live migratable VirtualMachineInstanceIsMigratable VirtualMachineInstanceConditionType = "LiveMigratable" // Reason means that VMI is not live migratioable because of it's disks collection @@ -462,7 +479,10 @@ const ( CPUManager string = "cpumanager" // This annotation is used to inject ignition data // Used on VirtualMachineInstance. - IgnitionAnnotation string = "kubevirt.io/ignitiondata" + IgnitionAnnotation string = "kubevirt.io/ignitiondata" + PlacePCIDevicesOnRootComplex string = "kubevirt.io/placePCIDevicesOnRootComplex" + + VirtualMachineLabel = AppLabel + "/vm" ) func NewVMI(name string, uid types.UID) *VirtualMachineInstance { @@ -881,8 +901,9 @@ type StateChangeRequestAction string // These are the currently defined state change requests const ( - StartRequest StateChangeRequestAction = "Start" - StopRequest StateChangeRequestAction = "Stop" + StartRequest StateChangeRequestAction = "Start" + StopRequest StateChangeRequestAction = "Stop" + RenameRequest = "Rename" ) // VirtualMachineStatus represents the status returned by the @@ -904,6 +925,8 @@ type VirtualMachineStatus struct { type VirtualMachineStateChangeRequest struct { // Indicates the type of action that is requested. e.g. Start or Stop Action StateChangeRequestAction `json:"action"` + // Provides additional data in order to perform the Action + Data map[string]string `json:"data,omitempty" optional:"true"` // Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable UID *types.UID `json:"uid,omitempty" optional:"true" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` } @@ -930,9 +953,15 @@ const ( // etc. or deleted due to kubelet being down or finalizers are failing. VirtualMachineFailure VirtualMachineConditionType = "Failure" + // VirtualMachineReady is copied to the virtual machine from its vmi + VirtualMachineReady VirtualMachineConditionType = "Ready" + // VirtualMachinePaused is added in a virtual machine when its vmi // signals with its own condition that it is paused. VirtualMachinePaused VirtualMachineConditionType = "Paused" + + // This condition indicates that the VM was renamed + RenameConditionType VirtualMachineConditionType = "RenameOperation" ) // --- @@ -1034,6 +1063,16 @@ type KubeVirtList struct { Items []KubeVirt `json:"items"` } +type KubeVirtSelfSignConfiguration struct { + CARotateInterval *metav1.Duration `json:"caRotateInterval,omitempty"` + CertRotateInterval *metav1.Duration `json:"certRotateInterval,omitempty"` + CAOverlapInterval *metav1.Duration `json:"caOverlapInterval,omitempty"` +} + +type KubeVirtCertificateRotateStrategy struct { + SelfSigned *KubeVirtSelfSignConfiguration `json:"selfSigned,omitempty"` +} + // --- // +k8s:openapi-gen=true type KubeVirtSpec struct { @@ -1054,8 +1093,21 @@ type KubeVirtSpec struct { // The name of the Prometheus service account that needs read-access to KubeVirt endpoints // Defaults to prometheus-k8s MonitorAccount string `json:"monitorAccount,omitempty"` + + // Specifies if kubevirt can be deleted if workloads are still present. + // This is mainly a precaution to avoid accidental data loss + UninstallStrategy KubeVirtUninstallStrategy `json:"uninstallStrategy,omitempty"` + + CertificateRotationStrategy KubeVirtCertificateRotateStrategy `json:"certificateRotateStrategy,omitempty"` } +type KubeVirtUninstallStrategy string + +const ( + KubeVirtUninstallStrategyRemoveWorkloads KubeVirtUninstallStrategy = "RemoveWorkloads" + KubeVirtUninstallStrategyBlockUninstallIfWorkloadsExist KubeVirtUninstallStrategy = "BlockUninstallIfWorkloadsExist" +) + // KubeVirtStatus represents information pertaining to a KubeVirt deployment. // --- // +k8s:openapi-gen=true @@ -1140,3 +1192,71 @@ type RestartOptions struct { // +optional GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"` } + +// VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent +// --- +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +type VirtualMachineInstanceGuestAgentInfo struct { + metav1.TypeMeta `json:",inline"` + // GAVersion is a version of currently installed guest agent + GAVersion string `json:"guestAgentVersion,omitempty"` + // Hostname represents FQDN of a guest + Hostname string `json:"hostname,omitempty"` + // OS contains the guest operating system information + OS VirtualMachineInstanceGuestOSInfo `json:"os,omitempty"` + // Timezone is guest os current timezone + Timezone string `json:"timezone,omitempty"` + // UserList is a list of active guest OS users + UserList []VirtualMachineInstanceGuestOSUser `json:"userList,omitempty"` + // FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage + FSInfo VirtualMachineInstanceFileSystemInfo `json:"fsInfo,omitempty"` +} + +// VirtualMachineInstanceGuestOSUserList comprises the list of all active users on guest machine +// --- +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +type VirtualMachineInstanceGuestOSUserList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualMachineInstanceGuestOSUser `json:"items"` +} + +// VirtualMachineGuestOSUser is the single user of the guest os +type VirtualMachineInstanceGuestOSUser struct { + UserName string `json:"userName"` + Domain string `json:"domain,omitempty"` + LoginTime float64 `json:"loginTime,omitempty"` +} + +// VirtualMachineInstanceFileSystemInfo represents information regarding single guest os filesystem +type VirtualMachineInstanceFileSystemInfo struct { + Filesystems []VirtualMachineInstanceFileSystem `json:"disks"` +} + +// VirtualMachineInstanceFileSystemList comprises the list of all filesystems on guest machine +// --- +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +k8s:openapi-gen=true +type VirtualMachineInstanceFileSystemList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualMachineInstanceFileSystem `json:"items"` +} + +// VirtualMachineInstanceFileSystem represents guest os disk +type VirtualMachineInstanceFileSystem struct { + DiskName string `json:"diskName"` + MountPoint string `json:"mountPoint"` + FileSystemType string `json:"fileSystemType"` + UsedBytes int `json:"usedBytes"` + TotalBytes int `json:"totalBytes"` +} + +// Options for a rename operation +type RenameOptions struct { + metav1.TypeMeta `json:",inline"` + NewName string `json:"newName"` + OldName *string `json:"oldName,omitempty"` +} diff --git a/vendor/kubevirt.io/client-go/api/v1/types_swagger_generated.go b/vendor/kubevirt.io/client-go/api/v1/types_swagger_generated.go index 9b049c974..f781ae54f 100644 --- a/vendor/kubevirt.io/client-go/api/v1/types_swagger_generated.go +++ b/vendor/kubevirt.io/client-go/api/v1/types_swagger_generated.go @@ -19,9 +19,11 @@ func (VirtualMachineInstanceList) SwaggerDoc() map[string]string { func (VirtualMachineInstanceSpec) SwaggerDoc() map[string]string { return map[string]string{ "": "VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.", + "priorityClassName": "If specified, indicates the pod's priority.\nIf not specified, the pod priority will be default or zero if there is no\ndefault.\n+optional", "domain": "Specification of the desired behavior of the VirtualMachineInstance on the host.", "nodeSelector": "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", "affinity": "If affinity is specifies, obey all the affinity rules", + "schedulerName": "If specified, the VMI will be dispatched by specified scheduler.\nIf not specified, the VMI will be dispatched by default scheduler.\n+optional", "tolerations": "If toleration is specified, obey all the toleration rules.", "evictionStrategy": "EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be\nmigrated instead of shut-off in case of a node drain.", "terminationGracePeriodSeconds": "Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.", @@ -48,6 +50,7 @@ func (VirtualMachineInstanceStatus) SwaggerDoc() map[string]string { "migrationState": "Represents the status of a live migration", "migrationMethod": "Represents the method using which the vmi can be migrated: live migration or block migration", "qosClass": "The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements\nSee PodQOSClass type for available QOS classes\nMore info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md\n+optional", + "activePods": "ActivePods is a mapping of pod UID to node name.\nIt is possible for multiple pods to be running for a single VMI during migration.", } } @@ -227,6 +230,7 @@ func (VirtualMachineStatus) SwaggerDoc() map[string]string { func (VirtualMachineStateChangeRequest) SwaggerDoc() map[string]string { return map[string]string{ "action": "Indicates the type of action that is requested. e.g. Start or Stop", + "data": "Provides additional data in order to perform the Action", "uid": "Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable", } } @@ -268,13 +272,22 @@ func (KubeVirtList) SwaggerDoc() map[string]string { } } +func (KubeVirtSelfSignConfiguration) SwaggerDoc() map[string]string { + return map[string]string{} +} + +func (KubeVirtCertificateRotateStrategy) SwaggerDoc() map[string]string { + return map[string]string{} +} + func (KubeVirtSpec) SwaggerDoc() map[string]string { return map[string]string{ - "imageTag": "The image tag to use for the continer images installed.\nDefaults to the same tag as the operator's container image.", - "imageRegistry": "The image registry to pull the container images from\nDefaults to the same registry the operator's container image is pulled from.", - "imagePullPolicy": "The ImagePullPolicy to use.", - "monitorNamespace": "The namespace Prometheus is deployed in\nDefaults to openshift-monitor", - "monitorAccount": "The name of the Prometheus service account that needs read-access to KubeVirt endpoints\nDefaults to prometheus-k8s", + "imageTag": "The image tag to use for the continer images installed.\nDefaults to the same tag as the operator's container image.", + "imageRegistry": "The image registry to pull the container images from\nDefaults to the same registry the operator's container image is pulled from.", + "imagePullPolicy": "The ImagePullPolicy to use.", + "monitorNamespace": "The namespace Prometheus is deployed in\nDefaults to openshift-monitor", + "monitorAccount": "The name of the Prometheus service account that needs read-access to KubeVirt endpoints\nDefaults to prometheus-k8s", + "uninstallStrategy": "Specifies if kubevirt can be deleted if workloads are still present.\nThis is mainly a precaution to avoid accidental data loss", } } @@ -296,3 +309,51 @@ func (RestartOptions) SwaggerDoc() map[string]string { "gracePeriodSeconds": "The duration in seconds before the object should be force-restared. Value must be non-negative integer.\nThe value zero indicates, restart immediately. If this value is nil, the default grace period for deletion of the corresponding VMI for the\nspecified type will be used to determine on how much time to give the VMI to restart.\nDefaults to a per object value if not specified. zero means restart immediately.\nAllowed Values: nil and 0\n+optional", } } + +func (VirtualMachineInstanceGuestAgentInfo) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineInstanceGuestAgentInfo represents information from the installed guest agent", + "guestAgentVersion": "GAVersion is a version of currently installed guest agent", + "hostname": "Hostname represents FQDN of a guest", + "os": "OS contains the guest operating system information", + "timezone": "Timezone is guest os current timezone", + "userList": "UserList is a list of active guest OS users", + "fsInfo": "FSInfo is a guest os filesystem information containing the disk mapping and disk mounts with usage", + } +} + +func (VirtualMachineInstanceGuestOSUserList) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineInstanceGuestOSUserList comprises the list of all active users on guest machine", + } +} + +func (VirtualMachineInstanceGuestOSUser) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineGuestOSUser is the single user of the guest os", + } +} + +func (VirtualMachineInstanceFileSystemInfo) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineInstanceFileSystemInfo represents information regarding single guest os filesystem", + } +} + +func (VirtualMachineInstanceFileSystemList) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineInstanceFileSystemList comprises the list of all filesystems on guest machine", + } +} + +func (VirtualMachineInstanceFileSystem) SwaggerDoc() map[string]string { + return map[string]string{ + "": "VirtualMachineInstanceFileSystem represents guest os disk", + } +} + +func (RenameOptions) SwaggerDoc() map[string]string { + return map[string]string{ + "": "Options for a rename operation", + } +} diff --git a/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/BUILD.bazel b/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/BUILD.bazel index 0e66ff92a..629e43580 100644 --- a/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/BUILD.bazel +++ b/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/BUILD.bazel @@ -11,6 +11,7 @@ go_library( deps = [ "//staging/src/kubevirt.io/client-go/api/v1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/api/scheduling/v1: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/apis/meta/v1/unstructured:go_default_library", diff --git a/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/utils.go b/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/utils.go index 5c722d02e..232c7a22f 100644 --- a/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/utils.go +++ b/vendor/kubevirt.io/kubevirt/tools/vms-generator/utils/utils.go @@ -25,6 +25,7 @@ import ( "os" k8sv1 "k8s.io/api/core/v1" + schedulingv1 "k8s.io/api/scheduling/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" @@ -52,8 +53,6 @@ const ( VmiWithHookSidecar = "vmi-with-sidecar-hook" VmiMultusPtp = "vmi-multus-ptp" VmiMultusMultipleNet = "vmi-multus-multiple-net" - VmiGeniePtp = "vmi-genie-ptp" - VmiGenieMultipleNet = "vmi-genie-multiple-net" VmiHostDisk = "vmi-host-disk" VmiGPU = "vmi-gpu" VmTemplateFedora = "vm-template-fedora" @@ -61,10 +60,16 @@ const ( VmTemplateWindows = "vm-template-windows2012r2" ) +const ( + Preemtible = "preemtible" + NonPreemtible = "non-preemtible" +) + const ( VmCirros = "vm-cirros" VmAlpineMultiPvc = "vm-alpine-multipvc" VmAlpineDataVolume = "vm-alpine-datavolume" + VMPriorityClass = "vm-priorityclass" ) const VmiReplicaSetCirros = "vmi-replicaset-cirros" @@ -122,6 +127,12 @@ func getBaseVMI(name string) *v1.VirtualMachineInstance { } } +func initFedoraWithDisk(spec *v1.VirtualMachineInstanceSpec, containerDisk string) *v1.VirtualMachineInstanceSpec { + addContainerDisk(spec, containerDisk, busVirtio) + addRNG(spec) + return spec +} + func initFedora(spec *v1.VirtualMachineInstanceSpec) *v1.VirtualMachineInstanceSpec { addContainerDisk(spec, fmt.Sprintf("%s/%s:%s", DockerPrefix, imageFedora, DockerTag), busVirtio) addRNG(spec) // without RNG, newer fedora images may hang waiting for entropy sources @@ -374,7 +385,7 @@ func GetVMIMasquerade() *v1.VirtualMachineInstance { vm.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("1024M") vm.Spec.Networks = []v1.Network{v1.Network{Name: "testmasquerade", NetworkSource: v1.NetworkSource{Pod: &v1.PodNetwork{}}}} initFedora(&vm.Spec) - addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" |passwd fedora --stdin\nyum install -y nginx\nsystemctl enable nginx\nsystemctl start nginx") + addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" |passwd fedora --stdin\nip -6 addr add fd2e:f1fe:9490:a8ff::2/120 dev eth0\nsleep 5\nip -6 route add default via fd2e:f1fe:9490:a8ff::1 src fd2e:f1fe:9490:a8ff::2\nyum install -y nginx\nsystemctl enable nginx\nsystemctl start nginx") masquerade := &v1.InterfaceMasquerade{} ports := []v1.Port{v1.Port{Name: "http", Protocol: "TCP", Port: 80}} @@ -421,39 +432,6 @@ func GetVMIMultusMultipleNet() *v1.VirtualMachineInstance { return vm } -func GetVMIGeniePtp() *v1.VirtualMachineInstance { - vm := getBaseVMI(VmiGeniePtp) - vm.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("1024M") - vm.Spec.Networks = []v1.Network{ - {Name: "ptp", NetworkSource: v1.NetworkSource{Genie: &v1.GenieNetwork{NetworkName: "ptp"}}}, - } - initFedora(&vm.Spec) - addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\n") - - vm.Spec.Domain.Devices.Interfaces = []v1.Interface{ - {Name: "ptp", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}, - } - - return vm -} - -func GetVMIGenieMultipleNet() *v1.VirtualMachineInstance { - vm := getBaseVMI(VmiGenieMultipleNet) - vm.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("1024M") - vm.Spec.Networks = []v1.Network{ - {Name: "default", NetworkSource: v1.NetworkSource{Genie: &v1.GenieNetwork{NetworkName: "flannel"}}}, - {Name: "ptp", NetworkSource: v1.NetworkSource{Genie: &v1.GenieNetwork{NetworkName: "ptp"}}}, - } - initFedora(&vm.Spec) - addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\ndhclient eth1\n") - - vm.Spec.Domain.Devices.Interfaces = []v1.Interface{ - {Name: "default", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}, - {Name: "ptp", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}, - } - - return vm -} func GetVMINoCloud() *v1.VirtualMachineInstance { vmi := getBaseVMI(VmiNoCloud) @@ -513,7 +491,7 @@ func GetVMIWindows() *v1.VirtualMachineInstance { Spinlocks: &v1.FeatureSpinlocks{Retries: &spinlocks}, }, }, - Machine: v1.Machine{Type: "q35"}, + Machine: v1.Machine{Type: ""}, Clock: &v1.Clock{ ClockOffset: v1.ClockOffset{UTC: &v1.ClockOffsetUTC{}}, Timer: &v1.Timer{ @@ -568,6 +546,45 @@ func getBaseVM(name string, labels map[string]string) *v1.VirtualMachine { } } +func GetPreemtible() *schedulingv1.PriorityClass { + preemtionPolicy := k8sv1.PreemptLowerPriority + pc := schedulingv1.PriorityClass{ + TypeMeta: metav1.TypeMeta{ + APIVersion: schedulingv1.SchemeGroupVersion.String(), + Kind: "PriorityClass", + }, + GlobalDefault: false, + Description: "Priority class for VMs which are allowed to be preemtited.", + PreemptionPolicy: &preemtionPolicy, + Value: 1000000, + } + pc.ObjectMeta.Name = "preemtible" + return &pc +} + +func GetNonPreemtible() *schedulingv1.PriorityClass { + preemtionPolicy := k8sv1.PreemptNever + pc := schedulingv1.PriorityClass{ + TypeMeta: metav1.TypeMeta{ + APIVersion: schedulingv1.SchemeGroupVersion.String(), + Kind: "PriorityClass", + }, + GlobalDefault: false, + Description: "Priority class for VMs which should not be preemtited.", + PreemptionPolicy: &preemtionPolicy, + Value: 999999999, + } + pc.ObjectMeta.Name = "non-preemtible" + return &pc +} + +func GetVMPriorityClass() *v1.VirtualMachine { + vm := GetVMCirros() + vm.Spec.Template.Spec.PriorityClassName = "non-preemtible" + vm.ObjectMeta.Name = "vm-non-preemtible" + return vm +} + func GetVMCirros() *v1.VirtualMachine { vm := getBaseVM(VmCirros, map[string]string{ "kubevirt.io/vm": VmCirros, @@ -578,10 +595,15 @@ func GetVMCirros() *v1.VirtualMachine { return vm } -func GetTemplateFedora() *Template { +func GetTemplateFedoraWithContainerDisk(containerDisk string) *Template { + vm := getFedoraVMWithoutDisk() + initFedoraWithDisk(&vm.Spec.Template.Spec, containerDisk) + return createFedoraTemplateFromVM(vm) +} + +func getFedoraVMWithoutDisk() *v1.VirtualMachine { vm := getBaseVM("", map[string]string{"kubevirt-vm": "vm-${NAME}", "kubevirt.io/os": "fedora27"}) spec := &vm.Spec.Template.Spec - initFedora(spec) addNoCloudDiskWitUserData(spec, "#cloud-config\npassword: fedora\nchpasswd: { expire: False }") setDefaultNetworkAndInterface(spec, v1.InterfaceBindingMethod{ @@ -593,6 +615,10 @@ func GetTemplateFedora() *Template { enableNetworkInterfaceMultiqueue(spec, enableNetworkInterfaceMultiqueueForTemplate) + return vm +} + +func createFedoraTemplateFromVM(vm *v1.VirtualMachine) *Template { template := getBaseTemplate(vm, "4096Mi", "4") template.ObjectMeta = metav1.ObjectMeta{ Name: VmTemplateFedora, @@ -609,6 +635,12 @@ func GetTemplateFedora() *Template { return template } +func GetTemplateFedora() *Template { + vm := getFedoraVMWithoutDisk() + initFedora(&vm.Spec.Template.Spec) + return createFedoraTemplateFromVM(vm) +} + func GetTemplateRHEL7() *Template { vm := getBaseVM("", map[string]string{"kubevirt-vm": "vm-${NAME}", "kubevirt.io/os": "rhel-7.4"}) spec := &vm.Spec.Template.Spec diff --git a/vendor/modules.txt b/vendor/modules.txt index 1f43a78c9..d39daa803 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -2,7 +2,7 @@ github.com/PuerkitoBio/purell # github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 github.com/PuerkitoBio/urlesc -# github.com/beorn7/perks v1.0.0 +# github.com/beorn7/perks v1.0.1 github.com/beorn7/perks/quantile # github.com/containernetworking/cni v0.7.1 github.com/containernetworking/cni/libcni @@ -135,13 +135,13 @@ github.com/openshift/custom-resource-status/conditions/v1 github.com/pborman/uuid # github.com/pkg/errors v0.9.1 github.com/pkg/errors -# github.com/prometheus/client_golang v1.0.0 +# github.com/prometheus/client_golang v1.1.0 github.com/prometheus/client_golang/prometheus/promhttp github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/internal # github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 github.com/prometheus/client_model/go -# github.com/prometheus/common v0.4.1 +# github.com/prometheus/common v0.6.0 github.com/prometheus/common/expfmt github.com/prometheus/common/model github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg @@ -343,7 +343,7 @@ k8s.io/apimachinery/pkg/util/diff k8s.io/apimachinery/pkg/util/framer k8s.io/apimachinery/pkg/apis/meta/internalversion k8s.io/apimachinery/pkg/apis/meta/v1beta1 -# k8s.io/client-go v11.0.0+incompatible => k8s.io/client-go v0.0.0-20190918160344-1fbdaa4c8d90 +# k8s.io/client-go v12.0.0+incompatible => k8s.io/client-go v0.0.0-20190918160344-1fbdaa4c8d90 k8s.io/client-go/kubernetes k8s.io/client-go/kubernetes/typed/core/v1 k8s.io/client-go/rest @@ -478,13 +478,13 @@ k8s.io/utils/pointer k8s.io/utils/integer k8s.io/utils/buffer k8s.io/utils/trace -# kubevirt.io/client-go v0.25.0 +# kubevirt.io/client-go v0.29.0 kubevirt.io/client-go/api/v1 kubevirt.io/client-go/precond # kubevirt.io/containerized-data-importer v1.10.9 kubevirt.io/containerized-data-importer/pkg/apis/core/v1alpha1 kubevirt.io/containerized-data-importer/pkg/apis/core -# kubevirt.io/kubevirt v0.25.0 +# kubevirt.io/kubevirt v0.29.0 kubevirt.io/kubevirt/tools/vms-generator/utils # sigs.k8s.io/controller-runtime v0.4.0 sigs.k8s.io/controller-runtime/pkg/runtime/log