Skip to content

Commit 45b2d2a

Browse files
Change field processingGuarantee to processingGuarantees for WindowConfig
1 parent ca2806b commit 45b2d2a

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.ci/tests/integration/cases/logging-window-function/verify.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ if [ $? -ne 0 ]; then
4343
exit 1
4444
fi
4545

46+
# verify the `processingGuarantees` config
47+
kubectl logs window-function-sample | grep processingGuarantees=ATLEAST_ONCE
48+
if [ $? -ne 0 ]; then
49+
kubectl delete -f "${manifests_file}" > /dev/null 2>&1 || true
50+
exit 1
51+
fi
52+
4653
verify_java_result=$(NAMESPACE=${PULSAR_NAMESPACE} CLUSTER=${PULSAR_RELEASE_NAME} ci::send_test_data "persistent://public/default/window-function-input-topic" "test-message" 3 2>&1)
4754
if [ $? -ne 0 ]; then
4855
echo "$verify_java_result"

api/compute/v1alpha1/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ type WindowConfig struct {
546546
MaxLagMs *int64 `json:"maxLagMs,omitempty"`
547547
WatermarkEmitIntervalMs *int64 `json:"watermarkEmitIntervalMs,omitempty"`
548548
TimestampExtractorClassName *string `json:"timestampExtractorClassName,omitempty"`
549-
ProcessingGuarantee WindowProcessGuarantee `json:"processingGuarantee,omitempty"`
549+
ProcessingGuarantees WindowProcessGuarantee `json:"processingGuarantees,omitempty"`
550550
}
551551

552552
type VPASpec struct {

charts/function-mesh-operator/charts/admission-webhook/templates/crd-compute.functionmesh.io-functionmeshes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,7 @@ spec:
37863786
maxLagMs:
37873787
format: int64
37883788
type: integer
3789-
processingGuarantee:
3789+
processingGuarantees:
37903790
enum:
37913791
- ATLEAST_ONCE
37923792
- ATMOST_ONCE

charts/function-mesh-operator/charts/admission-webhook/templates/crd-compute.functionmesh.io-functions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3805,7 +3805,7 @@ spec:
38053805
maxLagMs:
38063806
format: int64
38073807
type: integer
3808-
processingGuarantee:
3808+
processingGuarantees:
38093809
enum:
38103810
- ATLEAST_ONCE
38113811
- ATMOST_ONCE

config/crd/bases/compute.functionmesh.io_functionmeshes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,7 @@ spec:
37863786
maxLagMs:
37873787
format: int64
37883788
type: integer
3789-
processingGuarantee:
3789+
processingGuarantees:
37903790
enum:
37913791
- ATLEAST_ONCE
37923792
- ATMOST_ONCE

config/crd/bases/compute.functionmesh.io_functions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3783,7 +3783,7 @@ spec:
37833783
maxLagMs:
37843784
format: int64
37853785
type: integer
3786-
processingGuarantee:
3786+
processingGuarantees:
37873787
enum:
37883788
- ATLEAST_ONCE
37893789
- ATMOST_ONCE

0 commit comments

Comments
 (0)