Skip to content

Commit

Permalink
temp changes for ritika's testing
Browse files Browse the repository at this point in the history
Signed-off-by: Kirtana Ashok <[email protected]>
  • Loading branch information
kiashok committed Aug 20, 2024
1 parent 65d0aa7 commit a92fed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions cmd/containerd-shim-runhcs-v1/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import (
"strings"
"sync"

<<<<<<< HEAD
=======
"github.com/Microsoft/hcsshim"
"github.com/Microsoft/hcsshim/internal/layers"
>>>>>>> a527acc55 (Remove pause container creation for process isolated containers)
"github.com/Microsoft/hcsshim/internal/log"
"github.com/Microsoft/hcsshim/internal/oci"
"github.com/Microsoft/hcsshim/internal/uvm"
Expand Down Expand Up @@ -80,7 +76,7 @@ func isPauseContainerRequired() bool {
isPauseContainerNeeded := true
hnsGlobals, err := hcsshim.GetHNSGlobals()
if err == nil {
if hnsGlobals.Version.Major > 15 ||
if (hnsGlobals.Version.Major == 13 && hnsGlobals.Version.Minor == 3) || hnsGlobals.Version.Major > 15 ||
(hnsGlobals.Version.Major == 15 && hnsGlobals.Version.Minor >= 2) {
isPauseContainerNeeded = false
}
Expand Down
2 changes: 1 addition & 1 deletion hcn/hcnnamespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func NewNamespace(nsType NamespaceType) *HostComputeNamespace {
isReadyOnCreate := false
hnsGlobals, err := hcsshim.GetHNSGlobals()
if err == nil {
isReadyOnCreate = (hnsGlobals.Version.Major > 15) ||
isReadyOnCreate = (hnsGlobals.Version.Major == 13 && hnsGlobals.Version.Minor == 3) || (hnsGlobals.Version.Major > 15) ||
(hnsGlobals.Version.Major == 15 && hnsGlobals.Version.Minor >= 2)
}

Expand Down

0 comments on commit a92fed7

Please sign in to comment.