forked from openshift/insights-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
41 lines (36 loc) · 1.43 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package clusterconfig
import (
registryv1 "github.com/openshift/api/imageregistry/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
)
const (
jsonExtension = "json"
)
var (
registryScheme = runtime.NewScheme()
// logTailLines sets maximum number of lines to fetch from pod logs
logTailLines = int64(100)
// logTailLinesLong sets the maximum number of lines to fetch from long pod logs
logTailLinesLong = int64(400)
defaultNamespaces = []string{"default", "kube-system", "kube-public", "openshift"}
datahubGroupVersionResource = schema.GroupVersionResource{
Group: "installers.datahub.sap.com", Version: "v1alpha1", Resource: "datahubs",
}
pnccGroupVersionResource = schema.GroupVersionResource{
Group: "controlplane.operator.openshift.io", Version: "v1alpha1", Resource: "podnetworkconnectivitychecks",
}
machineConfigGroupVersionResource = schema.GroupVersionResource{
Group: "machineconfiguration.openshift.io", Version: "v1", Resource: "machineconfigs",
}
machineHeatlhCheckGVR = schema.GroupVersionResource{
Group: "machine.openshift.io", Version: "v1beta1", Resource: "machinehealthchecks",
}
machineAutoScalerGvr = schema.GroupVersionResource{
Group: "autoscaling.openshift.io", Version: "v1beta1", Resource: "machineautoscalers",
}
)
func init() { //nolint: gochecknoinits
utilruntime.Must(registryv1.AddToScheme(registryScheme))
}