/
constants.go
36 lines (31 loc) · 1.18 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
package v1alpha1
const (
// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry.
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" //nolint:gosec // not a credential
)
// Internal ExtraIdentity keys.
const (
ComponentNameKey = "component-name"
ComponentVersionKey = "component-version"
ResourceNameKey = "resource-name"
ResourceVersionKey = "resource-version"
SourceNameKey = "source-name"
SourceNamespaceKey = "source-namespace"
SourceArtifactChecksumKey = "source-artifact-checksum"
)
// Externally defined extra identity keys.
const (
// ResourceHelmChartNameKey if defined, means the resource is a helm resource and the chart should be added
// to the repository name.
ResourceHelmChartNameKey = "helmChart"
)
// Log levels.
const (
// LevelDebug defines the depth at witch debug information is displayed.
LevelDebug = 4
)
// Ocm credential config key for secrets.
const (
// OCMCredentialConfigKey defines the secret key to look for in case a user provides an ocm credential config.
OCMCredentialConfigKey = ".ocmcredentialconfig" //nolint:gosec // it isn't a cred
)