Skip to content

Commit ac97fd0

Browse files
authored
Differentiate descriptions of Address and Endpoint (#179)
1 parent e82356d commit ac97fd0

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

api/v1alpha08/sonataflow_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,14 @@ type SonataFlowSpec struct {
120120
// SonataFlowStatus defines the observed state of SonataFlow
121121
type SonataFlowStatus struct {
122122
api.Status `json:",inline"`
123+
// Address is used as a part of Addressable interface (status.address.url) for knative
123124
// +optional
124125
Address duckv1.Addressable `json:"address,omitempty"`
125126
// keeps track of how many failure recovers a given workflow had so far
126127
RecoverFailureAttempts int `json:"recoverFailureAttempts,omitempty"`
127128
LastTimeRecoverAttempt metav1.Time `json:"lastTimeRecoverAttempt,omitempty"`
128-
Endpoint *apis.URL `json:"endpoint,omitempty"`
129+
// Endpoint is an externally accessible URL of the workflow
130+
Endpoint *apis.URL `json:"endpoint,omitempty"`
129131
}
130132

131133
func (s *SonataFlowStatus) GetTopLevelConditionType() api.ConditionType {

bundle/manifests/sonataflow.org_sonataflows.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,11 +2150,8 @@ spec:
21502150
description: SonataFlowStatus defines the observed state of SonataFlow
21512151
properties:
21522152
address:
2153-
description: "Addressable provides a generic mechanism for a custom
2154-
resource definition to indicate a destination for message delivery.
2155-
\n Addressable is the schema for the destination information. This
2156-
is typically stored in the object's `status`, as this information
2157-
may be generated by the controller."
2153+
description: Address is used as a part of Addressable interface (status.address.url)
2154+
for knative
21582155
properties:
21592156
CACerts:
21602157
description: CACerts is the Certification Authority (CA) certificates
@@ -2196,6 +2193,7 @@ spec:
21962193
type: object
21972194
type: array
21982195
endpoint:
2196+
description: Endpoint is an externally accessible URL of the workflow
21992197
type: string
22002198
lastTimeRecoverAttempt:
22012199
format: date-time

config/crd/bases/sonataflow.org_sonataflows.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,11 +2151,8 @@ spec:
21512151
description: SonataFlowStatus defines the observed state of SonataFlow
21522152
properties:
21532153
address:
2154-
description: "Addressable provides a generic mechanism for a custom
2155-
resource definition to indicate a destination for message delivery.
2156-
\n Addressable is the schema for the destination information. This
2157-
is typically stored in the object's `status`, as this information
2158-
may be generated by the controller."
2154+
description: Address is used as a part of Addressable interface (status.address.url)
2155+
for knative
21592156
properties:
21602157
CACerts:
21612158
description: CACerts is the Certification Authority (CA) certificates
@@ -2197,6 +2194,7 @@ spec:
21972194
type: object
21982195
type: array
21992196
endpoint:
2197+
description: Endpoint is an externally accessible URL of the workflow
22002198
type: string
22012199
lastTimeRecoverAttempt:
22022200
format: date-time

operator.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,11 +2581,8 @@ spec:
25812581
description: SonataFlowStatus defines the observed state of SonataFlow
25822582
properties:
25832583
address:
2584-
description: "Addressable provides a generic mechanism for a custom
2585-
resource definition to indicate a destination for message delivery.
2586-
\n Addressable is the schema for the destination information. This
2587-
is typically stored in the object's `status`, as this information
2588-
may be generated by the controller."
2584+
description: Address is used as a part of Addressable interface (status.address.url)
2585+
for knative
25892586
properties:
25902587
CACerts:
25912588
description: CACerts is the Certification Authority (CA) certificates
@@ -2627,6 +2624,7 @@ spec:
26272624
type: object
26282625
type: array
26292626
endpoint:
2627+
description: Endpoint is an externally accessible URL of the workflow
26302628
type: string
26312629
lastTimeRecoverAttempt:
26322630
format: date-time

0 commit comments

Comments
 (0)