Skip to content

Commit

Permalink
fix(vmbda): fix hotplug api call
Browse files Browse the repository at this point in the history
Signed-off-by: Isteb4k <dmitry.rakitin@flant.com>
  • Loading branch information
Isteb4k committed Jul 5, 2024
1 parent ebdb04e commit c302c5c
Show file tree
Hide file tree
Showing 23 changed files with 583 additions and 19 deletions.
File renamed without changes.
25 changes: 25 additions & 0 deletions .mirrord/mirrord_virtualization_api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"feature": {
"network": {
"incoming": "steal",
"outgoing": true
},
"fs": {
"mode": "read",
"read_only": [ "^/var/", "^/etc/" ]
},
"env": true
},
"agent": {
"communication_timeout": 6000,
"startup_timeout": 56000
},
"internal_proxy": {
"start_idle_timeout": 13000,
"idle_timeout": 1500
},
"target": {
"namespace": "d8-virtualization",
"path": "deployment/virtualization-api/container/virtualization-api"
}
}
54 changes: 54 additions & 0 deletions api/pkg/apiserver/api/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/subresources/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&VirtualMachineConsole{},
&VirtualMachineVNC{},
&VirtualMachinePortForward{},
&VirtualMachineAddVolume{},
&VirtualMachineRemoveVolume{},
&virtv2.VirtualMachine{},
&virtv2.VirtualMachineList{},
)
Expand Down
16 changes: 16 additions & 0 deletions api/subresources/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,19 @@ type VirtualMachinePortForward struct {
Protocol string
Port int
}

// +genclient
// +genclient:readonly
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type VirtualMachineAddVolume struct {
metav1.TypeMeta
}

// +genclient
// +genclient:readonly
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type VirtualMachineRemoveVolume struct {
metav1.TypeMeta
}
2 changes: 2 additions & 0 deletions api/subresources/v1alpha2/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&VirtualMachineConsole{},
&VirtualMachineVNC{},
&VirtualMachinePortForward{},
&VirtualMachineAddVolume{},
&VirtualMachineRemoveVolume{},
&virtv2.VirtualMachine{},
&virtv2.VirtualMachineList{},
)
Expand Down
18 changes: 18 additions & 0 deletions api/subresources/v1alpha2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,21 @@ type VirtualMachinePortForward struct {
Protocol string `json:"protocol"`
Port int `json:"port"`
}

// +genclient
// +genclient:readonly
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:conversion-gen:explicit-from=net/url.Values

type VirtualMachineAddVolume struct {
metav1.TypeMeta `json:",inline"`
}

// +genclient
// +genclient:readonly
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:conversion-gen:explicit-from=net/url.Values

type VirtualMachineRemoveVolume struct {
metav1.TypeMeta `json:",inline"`
}
88 changes: 88 additions & 0 deletions api/subresources/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions api/subresources/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c302c5c

Please sign in to comment.