Skip to content

Commit

Permalink
Merge pull request validatedpatterns#251 from wolfganghuse/custom-s3-…
Browse files Browse the repository at this point in the history
…endpoint

Custom s3 endpoint
  • Loading branch information
claudiol authored Feb 29, 2024
2 parents 8d71b5d + 94dead3 commit 01fdc1b
Show file tree
Hide file tree
Showing 19 changed files with 162 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ data:
s3.message.aggregation.count={{ .Values.global.s3.bucket.message.aggregation.count }}
s3.custom.endpoint.enabled={{ .Values.global.s3.bucket.custom.endpoint.enabled }}
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.{{ .Values.global.localClusterDomain }}
s3.custom.endpoint.url={{ .Values.global.s3.bucket.custom.endpoint.url }}
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:{{ .Values.kafka.broker.topic.vibration }}?brokers={{ .Values.kafka.broker.uri }}")
.convertBodyTo(String.class)
Expand All @@ -88,9 +92,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:{{ .Values.kafka.broker.topic.temperature }}?brokers={{ .Values.kafka.broker.uri }}")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ data:
s3.message.aggregation.count={{ .Values.global.s3.bucket.message.aggregation.count }}
s3.custom.endpoint.enabled={{ .Values.global.s3.bucket.custom.endpoint.enabled }}
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.{{ .Values.global.localClusterDomain }}
s3.custom.endpoint.url={{ .Values.global.s3.bucket.custom.endpoint.url }}
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
+ secret
+ region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:{{ .Values.kafka.broker.topic.vibration }}?brokers={{ .Values.kafka.broker.uri }}")
.convertBodyTo(String.class)
Expand All @@ -87,9 +91,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:{{ .Values.kafka.broker.topic.temperature }}?brokers={{ .Values.kafka.broker.uri }}")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ data:
custom:
endpoint:
enabled: false
url: https://my.custom.endpoint
message:
aggregation:
count: 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ data:
custom:
endpoint:
enabled: false
url: https://my.custom.endpoint
message:
aggregation:
count: 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ data:
custom:
endpoint:
enabled: false
url: https://my.custom.endpoint
message:
aggregation:
count: 50
Expand Down
1 change: 1 addition & 0 deletions tests/common-clustergroup-normal.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ data:
custom:
endpoint:
enabled: false
url: https://my.custom.endpoint
message:
aggregation:
count: 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-data-lake/templates/central-s3-store/kafka-to-s3-integration.yaml
apiVersion: camel.apache.org/v1
Expand Down Expand Up @@ -82,9 +82,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-vibration?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -110,9 +114,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-temperature?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-data-lake/templates/central-s3-store/kafka-to-s3-integration.yaml
apiVersion: camel.apache.org/v1
Expand Down Expand Up @@ -82,9 +82,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-vibration?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -110,9 +114,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-temperature?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-data-lake/templates/central-s3-store/kafka-to-s3-integration.yaml
apiVersion: camel.apache.org/v1
Expand Down Expand Up @@ -82,9 +82,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-vibration?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -110,9 +114,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-temperature?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
15 changes: 12 additions & 3 deletions tests/datacenter-manuela-data-lake-naked.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.
s3.custom.endpoint.url=
---
# Source: manuela-data-lake/templates/central-s3-store/kafka-to-s3-integration.yaml
apiVersion: camel.apache.org/v1
Expand Down Expand Up @@ -82,9 +82,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-vibration?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -110,9 +114,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-temperature?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
15 changes: 12 additions & 3 deletions tests/datacenter-manuela-data-lake-normal.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-data-lake/templates/central-s3-store/kafka-to-s3-integration.yaml
apiVersion: camel.apache.org/v1
Expand Down Expand Up @@ -82,9 +82,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ secret
+ region;
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-vibration?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -110,9 +114,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:manuela-factory.iot-sensor-sw-temperature?brokers=prod-kafka-cluster-kafka-bootstrap.manuela-data-lake.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
19 changes: 14 additions & 5 deletions tests/datacenter-manuela-tst-industrial-edge-factory.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-tst-all/templates/line-dashboard/line-dashboard-configmap.config.yaml
apiVersion: v1
Expand Down Expand Up @@ -672,9 +672,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
+ secret
+ region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:iot-sensor-sw-vibration?brokers=dev-kafka-cluster-kafka-bootstrap.manuela-tst-all.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -700,9 +704,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:iot-sensor-sw-temperature?brokers=dev-kafka-cluster-kafka-bootstrap.manuela-tst-all.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
19 changes: 14 additions & 5 deletions tests/datacenter-manuela-tst-industrial-edge-hub.expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data:
s3.message.aggregation.count=50
s3.custom.endpoint.enabled=false
# Convert this directory into a helm chart and use templating to set this
s3.custom.endpoint.url=s3-openshift-storage.apps.region.example.com
s3.custom.endpoint.url=https://my.custom.endpoint
---
# Source: manuela-tst-all/templates/line-dashboard/line-dashboard-configmap.config.yaml
apiVersion: v1
Expand Down Expand Up @@ -672,9 +672,13 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
+ secret
+ region;
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:iot-sensor-sw-vibration?brokers=dev-kafka-cluster-kafka-bootstrap.manuela-tst-all.svc:9092")
.convertBodyTo(String.class)
Expand All @@ -700,9 +704,14 @@ spec:
String key = "accessKey=RAW(" + s3_accessKey + ")";
String secret = "&secretKey=RAW(" + s3_secretKey + ")";
String region = "&region=" + s3_region;
String s3params = key
String customendpoint = "&overrideEndpoint=" + s3_custom_endpoint_enabled;
String endpoint = "&uriEndpointOverride=" + s3_custom_endpoint_url;
String s3params = key
+ customendpoint
+ endpoint
+ secret
+ region;
from("kafka:iot-sensor-sw-temperature?brokers=dev-kafka-cluster-kafka-bootstrap.manuela-tst-all.svc:9092")
.convertBodyTo(String.class)
.aggregate(simple("true"), new GroupedBodyAggregationStrategy()).completionSize(s3_message_aggregation_count)
Expand Down
Loading

0 comments on commit 01fdc1b

Please sign in to comment.