Skip to content

Commit 59ac9ea

Browse files
smallc2009cw-Guo
authored andcommitted
Validate region value in Kinesis Output plugin
Signed-off-by: Anson Liu <[email protected]>
1 parent eeab410 commit 59ac9ea

File tree

7 files changed

+10
-0
lines changed

7 files changed

+10
-0
lines changed

apis/fluentbit/v1alpha2/plugins/output/kinesis_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
// https://github.com/aws/amazon-kinesis-streams-for-fluent-bit <br />
1616
type Kinesis struct {
1717
// The AWS region.
18+
// +kubebuilder:validation:Required
19+
// +kubebuilder:validation:MinLength=1
1820
Region string `json:"region"`
1921
// The name of the Kinesis Streams Delivery stream that you want log records sent to.
2022
Stream string `json:"stream"`

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ spec:
21092109
type: string
21102110
region:
21112111
description: The AWS region.
2112+
minLength: 1
21122113
type: string
21132114
roleARN:
21142115
description: ARN of an IAM role to assume (for cross account access).

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_outputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ spec:
21092109
type: string
21102110
region:
21112111
description: The AWS region.
2112+
minLength: 1
21122113
type: string
21132114
roleARN:
21142115
description: ARN of an IAM role to assume (for cross account access).

config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ spec:
21092109
type: string
21102110
region:
21112111
description: The AWS region.
2112+
minLength: 1
21122113
type: string
21132114
roleARN:
21142115
description: ARN of an IAM role to assume (for cross account access).

config/crd/bases/fluentbit.fluent.io_outputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ spec:
21092109
type: string
21102110
region:
21112111
description: The AWS region.
2112+
minLength: 1
21122113
type: string
21132114
roleARN:
21142115
description: ARN of an IAM role to assume (for cross account access).

manifests/setup/fluent-operator-crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6245,6 +6245,7 @@ spec:
62456245
type: string
62466246
region:
62476247
description: The AWS region.
6248+
minLength: 1
62486249
type: string
62496250
roleARN:
62506251
description: ARN of an IAM role to assume (for cross account access).
@@ -35143,6 +35144,7 @@ spec:
3514335144
type: string
3514435145
region:
3514535146
description: The AWS region.
35147+
minLength: 1
3514635148
type: string
3514735149
roleARN:
3514835150
description: ARN of an IAM role to assume (for cross account access).

manifests/setup/setup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6245,6 +6245,7 @@ spec:
62456245
type: string
62466246
region:
62476247
description: The AWS region.
6248+
minLength: 1
62486249
type: string
62496250
roleARN:
62506251
description: ARN of an IAM role to assume (for cross account access).
@@ -35143,6 +35144,7 @@ spec:
3514335144
type: string
3514435145
region:
3514535146
description: The AWS region.
35147+
minLength: 1
3514635148
type: string
3514735149
roleARN:
3514835150
description: ARN of an IAM role to assume (for cross account access).

0 commit comments

Comments
 (0)