forked from redpanda-data/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request redpanda-data#2703 from redpanda-data/cloud-build
Add cloud and community build artifacts
- Loading branch information
Showing
11 changed files
with
449 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
amqp_0_9 | ||
archive | ||
aws_dynamodb | ||
aws_dynamodb_partiql | ||
aws_kinesis | ||
aws_kinesis_firehose | ||
aws_lambda | ||
aws_s3 | ||
aws_sns | ||
aws_sqs | ||
bloblang | ||
bounds_check | ||
cache | ||
cached | ||
compress | ||
decompress | ||
dedupe | ||
generate | ||
group_by | ||
group_by_value | ||
http | ||
http_client | ||
jmespath | ||
jq | ||
json_schema | ||
kafka | ||
kafka_franz | ||
log | ||
mapping | ||
memcached | ||
memory | ||
metric | ||
mutation | ||
nats | ||
nats_jetstream | ||
nats_kv | ||
nats_request_reply | ||
opensearch | ||
parquet_decode | ||
parquet_encode | ||
protobuf | ||
rate_limit | ||
redis | ||
redis_hash | ||
redis_list | ||
redis_pubsub | ||
redis_scan | ||
redis_script | ||
redis_streams | ||
ristretto | ||
schema_registry_decode | ||
schema_registry_encode | ||
select_parts | ||
sftp | ||
sleep | ||
snowflake_put | ||
socket | ||
splunk | ||
splunk_hec | ||
sql_insert | ||
sql_raw | ||
sql_select | ||
unarchive | ||
websocket | ||
workflow | ||
|
||
# Broker and operational types | ||
broker | ||
switch | ||
drop | ||
batched | ||
resource | ||
inproc | ||
sequence | ||
read_until | ||
sync_response | ||
drop_on | ||
fallback | ||
reject | ||
reject_errored | ||
retry | ||
switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Copyright 2024 Redpanda Data, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package main | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/redpanda-data/benthos/v4/public/bloblang" | ||
"github.com/redpanda-data/benthos/v4/public/service" | ||
|
||
"github.com/redpanda-data/connect/v4/internal/cli" | ||
|
||
// Only import a subset of components for execution. | ||
_ "github.com/redpanda-data/connect/v4/public/components/amqp09" | ||
_ "github.com/redpanda-data/connect/v4/public/components/aws" | ||
_ "github.com/redpanda-data/connect/v4/public/components/changelog" | ||
_ "github.com/redpanda-data/connect/v4/public/components/confluent" | ||
_ "github.com/redpanda-data/connect/v4/public/components/crypto" | ||
_ "github.com/redpanda-data/connect/v4/public/components/io" | ||
_ "github.com/redpanda-data/connect/v4/public/components/kafka" | ||
_ "github.com/redpanda-data/connect/v4/public/components/maxmind" | ||
_ "github.com/redpanda-data/connect/v4/public/components/memcached" | ||
_ "github.com/redpanda-data/connect/v4/public/components/msgpack" | ||
_ "github.com/redpanda-data/connect/v4/public/components/nats" | ||
_ "github.com/redpanda-data/connect/v4/public/components/opensearch" | ||
_ "github.com/redpanda-data/connect/v4/public/components/otlp" | ||
_ "github.com/redpanda-data/connect/v4/public/components/prometheus" | ||
_ "github.com/redpanda-data/connect/v4/public/components/pure" | ||
_ "github.com/redpanda-data/connect/v4/public/components/pure/extended" | ||
_ "github.com/redpanda-data/connect/v4/public/components/redis" | ||
_ "github.com/redpanda-data/connect/v4/public/components/sftp" | ||
_ "github.com/redpanda-data/connect/v4/public/components/sql/base" | ||
|
||
// Import all (supported) sql drivers. | ||
_ "github.com/go-sql-driver/mysql" | ||
_ "github.com/lib/pq" | ||
_ "github.com/sijms/go-ora/v2" | ||
|
||
_ "embed" | ||
) | ||
|
||
var ( | ||
// Version version set at compile time. | ||
Version string | ||
// DateBuilt date built set at compile time. | ||
DateBuilt string | ||
// BinaryName binary name. | ||
BinaryName string = "redpanda-connect" | ||
) | ||
|
||
//go:embed allow_list.txt | ||
var allowList string | ||
|
||
func main() { | ||
var allowSlice []string | ||
for _, s := range strings.Split(allowList, "\n") { | ||
s = strings.TrimSpace(s) | ||
if s == "" || strings.HasPrefix(s, "#") { | ||
continue | ||
} | ||
allowSlice = append(allowSlice, s) | ||
} | ||
|
||
env := service.GlobalEnvironment() | ||
|
||
// Observability and scanner plugins aren't necessarily present in our | ||
// internal lists and so we allow everything that's imported | ||
env.WalkScanners(func(name string, config *service.ConfigView) { | ||
allowSlice = append(allowSlice, name) | ||
}) | ||
env.WalkMetrics(func(name string, config *service.ConfigView) { | ||
allowSlice = append(allowSlice, name) | ||
}) | ||
env.WalkTracers(func(name string, config *service.ConfigView) { | ||
allowSlice = append(allowSlice, name) | ||
}) | ||
|
||
env = env.With(allowSlice...) | ||
|
||
// Allow only pure methods and functions within Bloblang. | ||
benv := bloblang.GlobalEnvironment() | ||
env.UseBloblangEnvironment(benv.OnlyPure()) | ||
|
||
cli.InitEnterpriseCLI(BinaryName, Version, DateBuilt, true, service.CLIOptSetEnvironment(env)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2024 Redpanda Data, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Platforms and architectures list from https://pkg.go.dev/modernc.org/sqlite?utm_source=godoc#hdr-Supported_platforms_and_architectures | ||
// Last updated from modernc.org/sqlite@v1.19.1 | ||
//go:build (darwin && (amd64 || arm64)) || (freebsd && (amd64 || arm64)) || (linux && (386 || amd64 || arm || arm64 || riscv64)) || (windows && (amd64 || arm64)) | ||
|
||
package main | ||
|
||
import ( | ||
// Import sqlite specifically. | ||
_ "modernc.org/sqlite" | ||
) |
Oops, something went wrong.