diff --git a/defaults/defaults_differ_windows.go b/defaults/defaults_differ_windows.go new file mode 100644 index 000000000..0762d259e --- /dev/null +++ b/defaults/defaults_differ_windows.go @@ -0,0 +1,23 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package defaults + +const ( + // DefaultDiffer will set the default differ for the platform. + // This differ should be compatible with the windows snapshotter. + DefaultDiffer = "windows" +) diff --git a/defaults/defaults_snapshotter_windows.go b/defaults/defaults_snapshotter_windows.go index fefe66774..37e5f7574 100644 --- a/defaults/defaults_snapshotter_windows.go +++ b/defaults/defaults_snapshotter_windows.go @@ -21,5 +21,4 @@ const ( // This will be based on the client compilation target, so take that into // account when choosing this value. DefaultSnapshotter = "windows" - DefaultDiffer = "windows" )