You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Conflicts with label used in creation path for nested RGD (https://github.com/kro-run/kro/pull/631)
36
+
-**Proposed Label:**
37
+
-`kro.run/reconciled-by-rgd`
38
+
-**Value:** The name of the ResourceGraphDefinition (e.g., `my-rgd-name`).
39
+
-**Purpose:** To indicate that an instance is being actively reconciled against a specific RGD. This label will be applied to the instance itself.
40
+
-**Alternative Names:**
41
+
-`kro.run/reconciling-rgd`
42
+
-`kro.run/template`
36
43
37
44
2.**Label for resources created during instance reconciliation:**
38
-
-**Proposed Label:**`kro.run/created-by`
39
-
-**Value:** The name of the ResourceGraphDefinition (e.g., `my-rgd-name`).
40
-
-**Purpose:** To identify which RGD was used as a template to create a resource during the reconciliation of an instance. This label will be applied to all resources created by the instance controller.
41
-
-**Alternative Names:**`kro.run/managed-by-rgd`, `kro.run/owner-rgd`, `kro.run/template-rgd`. The `managed-by` label is a common pattern in the Kubernetes ecosystem.
-**Value:** The name of the ResourceGraphDefinition (e.g., `my-rgd-name`).
51
+
-**Purpose:** To identify which RGD was used as a template to create a resource during the reconciliation of an instance. This label will be applied to all resources created by the instance controller.
52
+
-**Alternative Names:**
53
+
- kro.run/created-by-rgd
54
+
- kro.run/managed-by-rgd
55
+
- kro.run/owner-rgd
56
+
- kro.run/template-rgd
42
57
43
58
3.**Labels for resources to link back to the instance:**
44
-
-**Proposed Labels:**
45
-
-`kro.run/managed-by-instance-group`: The API group of the instance (e.g., `mygroup.example.com`).
46
-
-`kro.run/managed-by-instance-kind`: The kind of the instance (e.g., `MyKind`).
47
-
-`kro.run/managed-by-instance-namespace`: The namespace of the instance (e.g., `default`).
48
-
-`kro.run/managed-by-instance-name`: The name of the instance (e.g., `my-instance`).
49
-
- The `managed-by` label is a common pattern in the Kubernetes ecosystem.
50
-
-**Purpose:** To provide a direct and queryable link from a created resource back to the instance that caused its creation. This set of labels uniquely identifies the instance.
51
-
-**Alternative Name prefix:**`kro.run/owner-`, `kro.run/created-by-`, etc.
-`kro.run/managed-by-instance-group`: The API group of the instance (e.g., `mygroup.example.com`).
65
+
-`kro.run/managed-by-instance-kind`: The kind of the instance (e.g., `MyKind`).
66
+
-`kro.run/managed-by-instance-namespace`: The namespace of the instance (e.g., `default`).
67
+
-`kro.run/managed-by-instance-name`: The name of the instance (e.g., `my-instance`).
68
+
- The `managed-by` label is a common pattern in the Kubernetes ecosystem.
69
+
-**Purpose:** To provide a direct and queryable link from a created resource back to the instance that caused its creation. This set of labels uniquely identifies the instance.
70
+
-**Alternative Name prefix:**
71
+
-`kro.run/owner-`
72
+
-`kro.run/created-by-`
52
73
53
74
## Other solutions considered
54
75
55
-
We could continue using the existing labels, but their purpose is not as explicit for relationship tracking, which can lead to confusion for users and client tools. We could also use annotations, but labels are better suited for this purpose as they are queryable via the Kubernetes API, which is a key requirement for observability and tooling.
76
+
1. We could continue using the existing labels, but their purpose is not as explicit for relationship tracking, which can lead to confusion for users and client tools.
77
+
2. We could also use annotations, but labels are better suited for this purpose as they are queryable via the Kubernetes API, which is a key requirement for observability and tooling.
56
78
57
79
## Scoping
58
80
59
81
#### What is in scope for this proposal?
60
82
61
-
- Defining and adding the new labels to the KRO API.
62
-
- Updating the instance controller to apply these labels to instances and created resources during reconciliation.
63
-
- Updating the official KRO documentation to reflect the new labels and their usage.
83
+
- Defining and adding the new labels to the KRO API.
84
+
- Updating the instance controller to apply these labels to instances and created resources during reconciliation.
85
+
- Updating the official KRO documentation to reflect the new labels and their usage.
86
+
- Adding docs reflecting the new labels. Old labels would not be documented.
87
+
- Deprecate old labels in next minor release or the one after that.
64
88
65
89
#### What is not in scope?
66
90
67
-
- Removing or deprecating the existing labels. This could be considered in a future proposal to maintain backward compatibility.
0 commit comments