mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-19 04:06:24 +00:00
Allow compilation time disabling for each type of Problem Daemon.
This commit is contained in:
+1
@@ -23,6 +23,7 @@ import (
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"k8s.io/node-problem-detector/cmd/options"
|
||||
_ "k8s.io/node-problem-detector/cmd/nodeproblemdetector/problemdaemonplugins"
|
||||
"k8s.io/node-problem-detector/pkg/exporters/k8sexporter"
|
||||
"k8s.io/node-problem-detector/pkg/exporters/prometheusexporter"
|
||||
"k8s.io/node-problem-detector/pkg/problemdaemon"
|
||||
+3
-4
@@ -1,3 +1,5 @@
|
||||
// +build !disable_custom_plugin_monitor
|
||||
|
||||
/*
|
||||
Copyright 2019 The Kubernetes Authors All rights reserved.
|
||||
|
||||
@@ -14,11 +16,8 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package main
|
||||
package problemdaemonplugins
|
||||
|
||||
// register problem daemons here
|
||||
import (
|
||||
_ "k8s.io/node-problem-detector/pkg/custompluginmonitor"
|
||||
_ "k8s.io/node-problem-detector/pkg/systemlogmonitor"
|
||||
_ "k8s.io/node-problem-detector/pkg/systemstatsmonitor"
|
||||
)
|
||||
@@ -0,0 +1,23 @@
|
||||
// +build !disable_system_log_monitor
|
||||
|
||||
/*
|
||||
Copyright 2019 The Kubernetes Authors All rights reserved.
|
||||
|
||||
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 problemdaemonplugins
|
||||
|
||||
import (
|
||||
_ "k8s.io/node-problem-detector/pkg/systemlogmonitor"
|
||||
)
|
||||
@@ -0,0 +1,23 @@
|
||||
// +build !disable_system_stats_monitor
|
||||
|
||||
/*
|
||||
Copyright 2019 The Kubernetes Authors All rights reserved.
|
||||
|
||||
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 problemdaemonplugins
|
||||
|
||||
import (
|
||||
_ "k8s.io/node-problem-detector/pkg/systemstatsmonitor"
|
||||
)
|
||||
Reference in New Issue
Block a user