This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 278
/
constants.go
78 lines (57 loc) · 2.19 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
69
70
71
72
73
74
75
76
77
78
package framework
const (
// test tag prefix, for NS labeling
osmTest = "osmTest"
// osmCABundleName is the name of the secret used to store the CA bundle
osmCABundleName = "osm-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
defaultOsmNamespace = "osm-system"
// default MeshConfig name
defaultMeshConfigName = "osm-mesh-config"
// default image tag
defaultImageTag = "latest"
// default cert manager
defaultCertManager = "tresor"
// default envoy loglevel
defaultEnvoyLogLevel = "debug"
// default OSM loglevel
defaultOSMLogLevel = "trace"
// Test folder base default value
testFolderBase = "/tmp"
)
const (
// SelfInstall uses current kube cluster, installs OSM using CLI
SelfInstall InstallType = "SelfInstall"
// KindCluster Creates Kind cluster on docker and uses it as cluster, OSM installs through CLI
KindCluster InstallType = "KindCluster"
// NoInstall uses current kube cluster, assumes an OSM is present in `OsmNamespace`
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"
)
// Windows Specific container images
const (
// EnvoyOSMWindowsImage is Envoy Windows image used for testing.
// On Windows until Windows Server 2022 is publicly available we have to rely on this testing images.
EnvoyOSMWindowsImage = "openservicemesh/envoy-windows-nanoserver@sha256:94590d10bc8a46c60cd3a3858d80f3d6577d4e9a191fa05c0077f8b3d6002e22"
// WindowsNanoserverDockerImage is the base Windows image that is compatible with the test cluster.
WindowsNanoserverDockerImage = "mcr.microsoft.com/windows/nanoserver/insider:10.0.20348.1"
)