1 package labels 2 3 const ( 4 5 // kubernetesInstanceLabel identifies the component name 6 kubernetesInstanceLabel = "app.kubernetes.io/instance" 7 8 // kubernetesNameLabel identifies the type of the component 9 // const kubernetesNameLabel = "app.kubernetes.io/name" 10 11 // kubernetesManagedByLabel identifies the manager of the component 12 kubernetesManagedByLabel = "app.kubernetes.io/managed-by" 13 14 // kubernetesManagedByVersionLabel identifies the version of manager used to deploy the resource 15 kubernetesManagedByVersionLabel = "app.kubernetes.io/managed-by-version" 16 17 // kubernetesPartOfLabel identifies the application to which the component belongs 18 kubernetesPartOfLabel = "app.kubernetes.io/part-of" 19 20 // kubernetesStorageNameLabel is applied to all storage resources that are created 21 kubernetesStorageNameLabel = "app.kubernetes.io/storage-name" 22 23 openshiftRunTimeLabel = "app.openshift.io/runtime" 24 25 // odoModeLabel indicates which command were used to create the component, either dev or deploy 26 odoModeLabel = "odo.dev/mode" 27 28 // odoProjectTypeAnnotation indicates the project type of the component 29 odoProjectTypeAnnotation = "odo.dev/project-type" 30 31 appLabel = "app" 32 33 componentLabel = "component" 34 35 // devfileStorageLabel is applied to all storage resources for devfile components that are created 36 devfileStorageLabel = "storage-name" 37 38 sourcePVCLabel = "odo-source-pvc" 39 ) 40 41 const ( 42 // ComponentDevMode indicates the resource is deployed using dev command 43 ComponentDevMode = "Dev" 44 45 // ComponentDeployMode indicates the resource is deployed using deploy command 46 ComponentDeployMode = "Deploy" 47 48 // ComponentAnyMode is used to search resources deployed using either dev or deploy command 49 ComponentAnyMode = "" 50 51 // odoManager is the value of the manager when a component is managed by odo 52 odoManager = "odo" 53 ) 54