Merge pull request #7775 from mxpv/defaults
There is no way to disable debug endpoint on Darwin
This commit is contained in:
commit
d39ee7b1b7
@ -92,6 +92,10 @@ func outputConfig(cfg *srvconfig.Config) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func defaultConfig() *srvconfig.Config {
|
||||||
|
return platformAgnosticDefaultConfig()
|
||||||
|
}
|
||||||
|
|
||||||
var configCommand = cli.Command{
|
var configCommand = cli.Command{
|
||||||
Name: "config",
|
Name: "config",
|
||||||
Usage: "information on the containerd config",
|
Usage: "information on the containerd config",
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
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 command
|
|
||||||
|
|
||||||
import (
|
|
||||||
srvconfig "github.com/containerd/containerd/services/server/config"
|
|
||||||
)
|
|
||||||
|
|
||||||
func defaultConfig() *srvconfig.Config {
|
|
||||||
return platformAgnosticDefaultConfig()
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
//go:build !linux && !windows && !solaris
|
|
||||||
// +build !linux,!windows,!solaris
|
|
||||||
|
|
||||||
/*
|
|
||||||
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 command
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/containerd/containerd/defaults"
|
|
||||||
srvconfig "github.com/containerd/containerd/services/server/config"
|
|
||||||
)
|
|
||||||
|
|
||||||
func defaultConfig() *srvconfig.Config {
|
|
||||||
cfg := platformAgnosticDefaultConfig()
|
|
||||||
cfg.Debug = srvconfig.Debug{
|
|
||||||
Level: "info",
|
|
||||||
Address: defaults.DefaultDebugAddress,
|
|
||||||
}
|
|
||||||
return cfg
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
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 command
|
|
||||||
|
|
||||||
import (
|
|
||||||
srvconfig "github.com/containerd/containerd/services/server/config"
|
|
||||||
)
|
|
||||||
|
|
||||||
func defaultConfig() *srvconfig.Config {
|
|
||||||
return platformAgnosticDefaultConfig()
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user