forked from splunk/qbec
/
external-names.go
45 lines (39 loc) · 2.19 KB
/
external-names.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
/*
Copyright 2019 Splunk Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package model
// QBECMetadataPrefix is the leading path for all metadata set by qbec.
const QBECMetadataPrefix = "qbec.io/"
// QbecNames is the set of names used by Qbec.
var QbecNames = struct {
ApplicationLabel string // the label to use for tagging an object with an application name
TagLabel string // the label to use for tagging an object with a scoped GC tag
ComponentAnnotation string // the label to use for tagging an object with a component
EnvironmentLabel string // the label to use for tagging an object with an annotation
PristineAnnotation string // the annotation to use for storing the pristine object
ParamsCodeVarName string // the name of the code variable that stores env params
EnvVarName string // the name of the external variable that has the environment name
TagVarName string // the name of the external variable that has the tag name
DefaultNsVarName string // the name of the external variable that has the default namespace
CleanModeVarName string // name of external variable that has the indicator for clean mode
}{
ApplicationLabel: QBECMetadataPrefix + "application",
TagLabel: QBECMetadataPrefix + "tag",
ComponentAnnotation: QBECMetadataPrefix + "component",
EnvironmentLabel: QBECMetadataPrefix + "environment",
PristineAnnotation: QBECMetadataPrefix + "last-applied",
ParamsCodeVarName: QBECMetadataPrefix + "params",
EnvVarName: QBECMetadataPrefix + "env",
TagVarName: QBECMetadataPrefix + "tag",
DefaultNsVarName: QBECMetadataPrefix + "defaultNs",
CleanModeVarName: QBECMetadataPrefix + "cleanMode",
}