/
consts.go
100 lines (73 loc) · 2.91 KB
/
consts.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// This file is part of MinIO
// Copyright (c) 2022 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// AUTO GENERATED CODE. DO NOT EDIT.
package consts
const (
// AppName denotes application/library/plugin/tool name
AppName = "directpv"
// AppPrettyName denotes application/library/plugin/tool pretty name
AppPrettyName = "DirectPV"
// AppCapsName denotes application/library/plugin/tool name in capital letters.
AppCapsName = "DIRECTPV"
// Group denotes group name.
GroupName = AppName + ".min.io"
// LatestAPIVersion denotes latest API version of drive/volume.
LatestAPIVersion = "v1beta1"
// Identity denotes identity value.
Identity = AppName + "-min-io"
// StorageClassName denotes storage class name.
StorageClassName = Identity
// ControllerName is the name of the controller.
ControllerName = AppName + "-controller"
// DriverName is the driver name.
DriverName = AppName + "-driver"
// DriveKind is drive CRD kind.
DriveKind = AppPrettyName + "Drive"
// VolumeKind is volume CRD kind.
VolumeKind = AppPrettyName + "Volume"
// DriveResource is drive CRD resource.
DriveResource = AppName + "drives"
// VolumeResource is volume CRD resource.
VolumeResource = AppName + "volumes"
// AppRootDir is application root directory.
AppRootDir = "/var/lib/" + AppName
// UdevDataDir is Udev data directory.
UdevDataDir = "/run/udev/data"
// MetricsPort is default metrics port.
MetricsPort = 10443
// ReadinessPort is default readiness port.
ReadinessPort = 30443
// ReadinessPath is default readiness path.
ReadinessPath = "/ready"
// MountRootDir is mount root directory.
MountRootDir = AppRootDir + "/mnt"
CredentialsSecretName = AppName + "-creds"
PrivateKeyFileName = "key.pem"
PublicCertFileName = "cert.pem"
NodeServerName = "node-server"
ControllerServerName = "controller"
LegacyNodeServerName = "legacy-node-server"
LegacyControllerServerName = "legacy-controller"
NodeAPIServerName = "node-api-server"
NodeAPIPortName = "node-api-port"
NodeAPIPort = 50443
NodeAPIServerCertsPath = "/tmp/nodeapiserver/certs"
NodeAPIServerHLSVC = NodeAPIServerName + "-hl"
AdminServerName = "admin-server"
AdminServerPortName = "admin-server-port"
AdminServerPort = 40443
AdminServerCertsPath = "/tmp/adminserver/certs"
)