Skip to content

Commit 370d980

Browse files
author
Shreya2005-2005
committed
fix: add deprecation notice to SourceType field in ApplicationStatus
SourceType (singular string) and SourceTypes (plural array) both exist in ApplicationStatus with no guidance on which to use. Add deprecation comment to SourceType pointing to SourceTypes, consistent with how ObservedAt deprecation is documented in the same struct. Fixes #27766
1 parent 5ec0603 commit 370d980

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/apis/application/v1alpha1/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,8 @@ type ApplicationStatus struct {
12131213
// Deprecated: controller no longer updates ObservedAt field
12141214
ObservedAt *metav1.Time `json:"observedAt,omitempty" protobuf:"bytes,8,opt,name=observedAt"`
12151215
// SourceType specifies the type of this application
1216+
//
1217+
// Deprecated: Use SourceTypes instead, which supports both single and multi-source applications
12161218
SourceType ApplicationSourceType `json:"sourceType,omitempty" protobuf:"bytes,9,opt,name=sourceType"`
12171219
// Summary contains a list of URLs and container images used by this application
12181220
Summary ApplicationSummary `json:"summary,omitempty" protobuf:"bytes,10,opt,name=summary"`

0 commit comments

Comments
 (0)