-
Notifications
You must be signed in to change notification settings - Fork 18
/
const.go
100 lines (78 loc) · 3.92 KB
/
const.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
package v1
const (
// DefaultPorterAgentRepository is the default image repository of the Porter
// Agent to use when it is not configured in the operator.
DefaultPorterAgentRepository = "ghcr.io/getporter/porter-agent"
// DefaultPorterAgentVersion is the default version of the Porter Agent to
// use when it is not configured in the operator.
//
// As we test out the operator with new versions of Porter, keep this value
// up-to-date so that the default version is guaranteed to work.
DefaultPorterAgentVersion = "v1.0.2"
// LabelJobType is a label applied to jobs created by the operator. It
// indicates the purpose of the job.
LabelJobType = Prefix + "jobType"
// JobTypeAgent is the value of job type label applied to the Porter Agent.
JobTypeAgent = "porter-agent"
// JobTypeInstaller is the value of the job type label applied to the job
// that runs the bundle.
JobTypeInstaller = "bundle-installer"
// LabelSecretType is a label applied to secrets created by the operator. It
// indicates the purpose of the secret.
LabelSecretType = Prefix + "secretType"
// SecretTypeConfig is the value of the secret type label applied to the
// secret that contains files to copy into the porter home directory.
SecretTypeConfig = "porter-config"
// SecretTypeWorkdir is the value of the secret type label applied to the
// secret that contains files to copy into the working directory of the
// Porter Agent.
SecretTypeWorkdir = "workdir"
// LabelManaged is a label applied to resources created by the Porter
// Operator.
LabelManaged = Prefix + "managed"
// LabelResourceKind is a label applied to resources created by the Porter
// Operator, representing the kind of owning resource. It is used to help the
// operator determine if a resource has already been created.
LabelResourceKind = Prefix + "resourceKind"
// LabelResourceName is a label applied to the resources created by the
// Porter Operator, representing the name of the owning resource. It is used
// to help the operator determine if a resource has
// already been created.
LabelResourceName = Prefix + "resourceName"
// LabelResourceGeneration is a label applied to the resources created by the
// Porter Operator, representing the generation of the owning resource. It is
// used to help the operator determine if a resource has
// already been created.
LabelResourceGeneration = Prefix + "resourceGeneration"
// LabelRetry is a label applied to the resources created by the
// Porter Operator, representing the retry attempt identifier.
LabelRetry = Prefix + "retry"
// FinalizerName is the name of the finalizer applied to Porter Operator
// resources that should be reconciled by the operator before allowing it to
// be deleted.
FinalizerName = Prefix + "finalizer"
// VolumePorterSharedName is the name of the volume shared between the porter
// agent and the invocation image.
VolumePorterSharedName = "porter-shared"
// VolumePorterSharedPath is the mount path of the volume shared between the
// porter agent and the invocation image.
VolumePorterSharedPath = "/porter-shared"
// VolumePorterConfigName is the name of the volume that contains Porter's config
// file.
VolumePorterConfigName = "porter-config"
// VolumePorterConfigPath is the mount path of the volume containing Porter's
// config file.
VolumePorterConfigPath = "/porter-config"
// VolumePorterWorkDirName is the name of the volume that is used as the Porter's
// working directory.
VolumePorterWorkDirName = "porter-workdir"
// VolumePorterWorkDirPath is the mount path of the volume that is used as the
// Porter's working directory.
VolumePorterWorkDirPath = "/porter-workdir"
// VolumeImgPullSecretName is the name of the volume that contains
// .docker/config.json file.
VolumeImgPullSecretName = "img-pull-secret"
// VolumeImagePullSecretPath is the mount path of the volume containing for docker
// auth for image pull secrets.
VolumeImgPullSecretPath = "/home/nonroot"
)