Skip to content

Commit

Permalink
Add support for Windows OVS Containerisation in Install-OVS script
Browse files Browse the repository at this point in the history
For antrea-io#4952

Signed-off-by: Naman Agarwal <naman.agarwal75@gmail.com>
  • Loading branch information
NamanAg30 committed May 30, 2023
1 parent 5562b29 commit 2fccf87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ curl.exe -LO https://raw.githubusercontent.com/antrea-io/antrea/main/hack/window
.\Install-OVS.ps1 -ImportCertificate $false -Local -LocalFile <PathToOVSPackage> # Production
```

If you want to containerise OVS for containerd runtime , use the ContaineriseOVS parameter as true.

```powershell
.\Install-OVS.ps1 -ContaineriseOVS $true
```

Verify the OVS services are installed.

```powershell
Expand Down
11 changes: 9 additions & 2 deletions hack/windows/Install-OVS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
.PARAMETER ImportCertificate
Specifies if a certificate file is needed for OVS package. If true, certificate
will be retrieved from OVSExt.sys and a package.cer file will be generated.
.PARAMETER ContaineriseOVS
Specifies whether user wants to run ovs inside container.
#>
Param(
[parameter(Mandatory = $false)] [string] $DownloadDir,
Expand All @@ -29,6 +32,7 @@ Param(
[parameter(Mandatory = $false)] [bool] $CheckFileHash = $true,
[parameter(Mandatory = $false)] [string] $LocalFile,
[parameter(Mandatory = $false)] [bool] $ImportCertificate = $true
[parameter(Mandatory = $false)] [bool] $ContaineriseOVS = $false
)

$ErrorActionPreference = "Stop"
Expand Down Expand Up @@ -259,8 +263,11 @@ DownloadOVS

InstallOVS

InstallDependency
if ($ContaineriseOVS -eq $false) {
InstallDependency

ConfigOVS
ConfigOVS

}

Log "OVS Installation Complete!"

0 comments on commit 2fccf87

Please sign in to comment.