Skip to content

Commit e40d791

Browse files
committed
Clarify RunFunctionResponse TTL semantics
Signed-off-by: Nic Cope <[email protected]>
1 parent 67dfd60 commit e40d791

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

apis/apiextensions/fn/proto/v1/run_function.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/apiextensions/fn/proto/v1/run_function.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ message RunFunctionRequest {
5555
// of the 'input' block of the relevant entry in a Composition's pipeline.
5656
optional google.protobuf.Struct input = 4;
5757

58-
// Optional context. Crossplane may pass arbitary contextual information to a
58+
// Optional context. Crossplane may pass arbitrary contextual information to a
5959
// Function. A Function may also return context in its RunFunctionResponse,
6060
// and that context will be passed to subsequent Functions. Crossplane
6161
// discards all context returned by the last Function in the pipeline.
@@ -170,9 +170,9 @@ message ResponseMeta {
170170
// meta.tag of the corresponding RunFunctionRequest.
171171
string tag = 1;
172172

173-
// Time-to-live of this response. Deterministic Functions with no side-effects
174-
// (e.g. simple templating Functions) may specify a TTL. Crossplane may choose
175-
// to cache responses until the TTL expires.
173+
// Time-to-live of this response. Crossplane will call the function again when
174+
// the TTL expires. Crossplane may cache the response to avoid calling the
175+
// function again until the TTL expires.
176176
optional google.protobuf.Duration ttl = 2;
177177
}
178178

apis/apiextensions/fn/proto/v1beta1/zz_generated_run_function.pb.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/apiextensions/fn/proto/v1beta1/zz_generated_run_function.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ message RunFunctionRequest {
5757
// of the 'input' block of the relevant entry in a Composition's pipeline.
5858
optional google.protobuf.Struct input = 4;
5959

60-
// Optional context. Crossplane may pass arbitary contextual information to a
60+
// Optional context. Crossplane may pass arbitrary contextual information to a
6161
// Function. A Function may also return context in its RunFunctionResponse,
6262
// and that context will be passed to subsequent Functions. Crossplane
6363
// discards all context returned by the last Function in the pipeline.
@@ -172,9 +172,9 @@ message ResponseMeta {
172172
// meta.tag of the corresponding RunFunctionRequest.
173173
string tag = 1;
174174

175-
// Time-to-live of this response. Deterministic Functions with no side-effects
176-
// (e.g. simple templating Functions) may specify a TTL. Crossplane may choose
177-
// to cache responses until the TTL expires.
175+
// Time-to-live of this response. Crossplane will call the function again when
176+
// the TTL expires. Crossplane may cache the response to avoid calling the
177+
// function again until the TTL expires.
178178
optional google.protobuf.Duration ttl = 2;
179179
}
180180

0 commit comments

Comments
 (0)