Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CSIName - default prefix CSIName = "csi-baremetal" // ComponentName - is the name of component ComponentName = CSIName + "-operator" // PrometheusPort - default prometeus port PrometheusPort = 8787 // LivenessPort - default liveness port LivenessPort = "liveness-port" // TerminationGracePeriodSeconds - default termination timeout TerminationGracePeriodSeconds = 10 // LogsVolume - default volume for logs LogsVolume = "logs" // CSISocketDirVolume - default volume of CSI socket CSISocketDirVolume = "csi-socket-dir" // TerminationMessagePath - default path for saving termination message TerminationMessagePath = "/var/log/termination-log" // TerminationMessagePolicy - default policy TerminationMessagePolicy = corev1.TerminationMessageReadFile // ProvisionerName - name of csi-provisioner sidecar ProvisionerName = "csi-provisioner" // ResizerName - name of csi-resizer sidecar ResizerName = "csi-resizer" // DriverRegistrarName - name of csi-node-driver-registrar sidecar DriverRegistrarName = "csi-node-driver-registrar" // LivenessProbeName - name of livenessprobe sidecar LivenessProbeName = "livenessprobe" // AppLabelKey matches CSI CRs with csi-baremetal app AppLabelKey = "app.kubernetes.io/name" // AppLabelShortKey matches CSI CRs with csi-baremetal app AppLabelShortKey = "app" // ComponentLabelKey matches CSI CRs with csi-baremetal component ComponentLabelKey = "app.kubernetes.io/component" // ComponentLabelShortKey matches CSI CRs with csi-baremetal component ComponentLabelShortKey = "component" // AppLabelValue matches CSI CRs with csi-baremetal app AppLabelValue = CSIName // SelectorKey is a key for Deployments/Daemonsets selector SelectorKey = "name" // RsysLabelKey are used for directory layout in rsyslog RsysLabelKey = "app.kubernetes.io/instance" // DefaultNamespace is the default namespace DefaultNamespace = "default" // LogLevelSlogan parameter definition LogLevelSlogan = "--loglevel=" )
View Source
const ( // PlatformVanilla - vanilla platform key PlatformVanilla = "vanilla" // PlatformRKE - RKE platform key PlatformRKE = "rke" // PlatformOpenShift - openshift platform key PlatformOpenShift = "openshift" )
Variables ¶
View Source
var ( // CrashVolume - the volume for crush dumps CrashVolume = corev1.Volume{ Name: "crash-dump", VolumeSource: corev1.VolumeSource{ EmptyDir: &corev1.EmptyDirVolumeSource{}, }} // CrashMountVolume - the mount point for CrashVolume CrashMountVolume = corev1.VolumeMount{ Name: "crash-dump", MountPath: "/crash-dump", } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.