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
Set owner-kind label on ClusterExtensionRevision resources (#2480)
Add the owner-kind label to ClusterExtensionRevision resources to
ensure they are properly labeled with both owner-kind and owner-name.
Previously, only the owner-name label was set on the ClusterExtensionRevision
resource itself. The owner-kind label was only applied to objects within the
revision, but not to the revision resource.
This change updates the buildClusterExtensionRevision function to set both
labels.OwnerKindKey (ClusterExtension) and labels.OwnerNameKey on the
ClusterExtensionRevision metadata.
Also fixed variable name collision where local variable 'labels' shadowed
the imported 'labels' package by renaming it to 'mergedLabels'.
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Co-authored-by: Per Goncalves da Silva <pegoncal@redhat.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
sc.Step(`^(?i)ClusterExtension reports ([[:alnum:]]+) transition between (\d+) and (\d+) minutes since its creation$`, ClusterExtensionReportsConditionTransitionTime)
75
75
sc.Step(`^(?i)ClusterExtensionRevision "([^"]+)" is archived$`, ClusterExtensionRevisionIsArchived)
76
76
sc.Step(`^(?i)ClusterExtensionRevision "([^"]+)" contains annotation "([^"]+)" with value$`, ClusterExtensionRevisionHasAnnotationWithValue)
77
+
sc.Step(`^(?i)ClusterExtensionRevision "([^"]+)" has label "([^"]+)" with value "([^"]+)"$`, ClusterExtensionRevisionHasLabelWithValue)
77
78
78
79
sc.Step(`^(?i)resource "([^"]+)" is installed$`, ResourceAvailable)
79
80
sc.Step(`^(?i)resource "([^"]+)" is available$`, ResourceAvailable)
0 commit comments