vendor: Bump hcsshim to 0.9.0
This change bumps hcsshim to 0.9.0. Main thing this tag contains is support for Kubernetes Host Process containers See: https://kubernetes.io/docs/tasks/configure-pod-container/create-hostprocess-pod/ Signed-off-by: Daniel Canter <dcanter@microsoft.com>
This commit is contained in:
26
vendor/github.com/Microsoft/hcsshim/hcn/hcn.go
generated
vendored
26
vendor/github.com/Microsoft/hcsshim/hcn/hcn.go
generated
vendored
@@ -122,7 +122,7 @@ func defaultQuery() HostComputeQuery {
|
||||
|
||||
// PlatformDoesNotSupportError happens when users are attempting to use a newer shim on an older OS
|
||||
func platformDoesNotSupportError(featureName string) error {
|
||||
return fmt.Errorf("Platform does not support feature %s", featureName)
|
||||
return fmt.Errorf("platform does not support feature %s", featureName)
|
||||
}
|
||||
|
||||
// V2ApiSupported returns an error if the HCN version does not support the V2 Apis.
|
||||
@@ -288,6 +288,30 @@ func TierAclPolicySupported() error {
|
||||
return platformDoesNotSupportError("TierAcl")
|
||||
}
|
||||
|
||||
// NetworkACLPolicySupported returns an error if the HCN version does not support NetworkACLPolicy
|
||||
func NetworkACLPolicySupported() error {
|
||||
supported, err := GetCachedSupportedFeatures()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if supported.NetworkACL {
|
||||
return nil
|
||||
}
|
||||
return platformDoesNotSupportError("NetworkACL")
|
||||
}
|
||||
|
||||
// NestedIpSetSupported returns an error if the HCN version does not support NestedIpSet
|
||||
func NestedIpSetSupported() error {
|
||||
supported, err := GetCachedSupportedFeatures()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if supported.NestedIpSet {
|
||||
return nil
|
||||
}
|
||||
return platformDoesNotSupportError("NestedIpSet")
|
||||
}
|
||||
|
||||
// RequestType are the different operations performed to settings.
|
||||
// Used to update the settings of Endpoint/Namespace objects.
|
||||
type RequestType string
|
||||
|
||||
Reference in New Issue
Block a user