Skip to content

Commit 6b11c8a

Browse files
committed
undeprecate references
On-behalf-of: @SAP christoph.mewes@sap.com
1 parent c19446a commit 6b11c8a

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

internal/sync/syncer_related.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ func resolveRelatedResourceObjects(relatedOrigin, relatedDest syncSide, relRes s
250250

251251
func resolveRelatedResourceOriginNamespaces(relatedOrigin, relatedDest syncSide, origin syncagentv1alpha1.RelatedResourceOrigin, spec syncagentv1alpha1.RelatedResourceObjectSpec) (map[string]string, error) {
252252
switch {
253-
//nolint:staticcheck // .Reference is deprecated, but we still support it for now.
254253
case spec.Reference != nil:
255254
originNamespace, err := resolveObjectReference(relatedOrigin.object, *spec.Reference) //nolint:staticcheck
256255
if err != nil {

sdk/apis/syncagent/v1alpha1/published_resource.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ type RelatedResourceObjectSpec struct {
217217
Selector *RelatedResourceObjectSelector `json:"selector,omitempty"`
218218
// Reference points to a field inside the main object. This reference is
219219
// evaluated on both source and destination sides to find the related object.
220-
//
221-
// Deprecated: Use Go templates instead.
222220
Reference *RelatedResourceObjectReference `json:"reference,omitempty"`
223221
// Template is a Go templated string that can make use of variables to
224222
// construct the resulting string.

0 commit comments

Comments
 (0)