-
Notifications
You must be signed in to change notification settings - Fork 7
/
constants.go
68 lines (49 loc) · 1.66 KB
/
constants.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
package framework
const (
// test tag prefix, for NS labeling
fsmTest = "fsmTest"
// fsmCABundleName is the name of the secret used to store the CA bundle
fsmCABundleName = "fsm-ca-bundle"
)
const (
// Test is to mark after-test cleanup
Test CleanupType = "test"
//Suite is to mark after-suite cleanup
Suite CleanupType = "suite"
)
const (
// default name for the mesh
defaultFsmNamespace = "fsm-system"
// default MeshConfig name
defaultMeshConfigName = "fsm-mesh-config"
// default image tag
defaultImageTag = "latest"
// default cert manager
defaultCertManager = "tresor"
// default sidecar loglevel
defaultSidecarLogLevel = "debug"
// default FSM loglevel
defaultFSMLogLevel = "warn"
// Test folder base default value
testFolderBase = "/tmp"
)
const (
// SelfInstall uses current kube cluster, installs FSM using CLI
SelfInstall InstallType = "SelfInstall"
// KindCluster Creates Kind cluster on docker and uses it as cluster, FSM installs through CLI
KindCluster InstallType = "KindCluster"
// NoInstall uses current kube cluster, assumes an FSM is present in `FsmNamespace`
NoInstall InstallType = "NoInstall"
// RegistrySecretName is the default name for the container registry secret
RegistrySecretName = "acr-creds"
)
const (
// CollectLogs is used to force log collection
CollectLogs CollectLogsType = "yes"
// CollectLogsIfErrorOnly will collect logs only when test errors out
CollectLogsIfErrorOnly CollectLogsType = "ifError"
// NoCollectLogs will not collect logs
NoCollectLogs CollectLogsType = "no"
// ControlPlaneOnly will collect logs only for control plane processes
ControlPlaneOnly CollectLogsType = "controlPlaneOnly"
)