Skip to content

Commit

Permalink
Add run subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed May 30, 2024
1 parent d438131 commit 62de33d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ builds:
-s -w
-X main.Version={{.Version}}
-X main.DateBuilt={{.Date}}
-X main.BinaryName=redpanda-connect
# - id: connect-lambda
# main: cmd/serverless/connect-lambda/main.go
# binary: redpanda-connect-lambda
Expand Down
17 changes: 17 additions & 0 deletions cmd/redpanda-connect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,24 @@ func main() {
service.CLIOptSetVersion(Version, DateBuilt),
service.CLIOptSetBinaryName(BinaryName),
service.CLIOptSetProductName("Redpanda Connect"),
service.CLIOptSetDefaultConfigPaths(
"redpanda-connect.yaml",
"/redpanda-connect.yaml",
"/etc/redpanda-connect/config.yaml",
"/etc/redpanda-connect.yaml",

"connect.yaml",
"/connect.yaml",
"/etc/connect/config.yaml",
"/etc/connect.yaml",

// Keep these for now, for backwards compatibility
"/benthos.yaml",
"/etc/benthos/config.yaml",
"/etc/benthos.yaml",
),
service.CLIOptSetDocumentationURL("https://docs.redpanda.com/redpanda-connect"),
service.CLIOptSetShowRunCommand(true),
service.CLIOptSetMainSchemaFrom(func() *service.ConfigSchema {
return service.NewEnvironment().FullConfigSchema(Version, DateBuilt).
Field(redpandaTopLevelConfigField())
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ require (
github.com/rabbitmq/amqp091-go v1.9.0
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
github.com/redis/go-redis/v9 v9.4.0
github.com/redpanda-data/benthos/v4 v4.28.0
github.com/redpanda-data/benthos/v4 v4.28.1
github.com/sijms/go-ora/v2 v2.8.7
github.com/smira/go-statsd v1.3.3
github.com/snowflakedb/gosnowflake v1.7.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,8 @@ github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5X
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/redis/go-redis/v9 v9.4.0 h1:Yzoz33UZw9I/mFhx4MNrB6Fk+XHO1VukNcCa1+lwyKk=
github.com/redis/go-redis/v9 v9.4.0/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
github.com/redpanda-data/benthos/v4 v4.28.0 h1:63achhq9Yztlm+gJLH7VqYr8NtzRI4FfkajENwgQtvU=
github.com/redpanda-data/benthos/v4 v4.28.0/go.mod h1:veuREp5S8MJ21MXofdfMPVm5qOwQGmymh9c13jax284=
github.com/redpanda-data/benthos/v4 v4.28.1 h1:+pXURW62NVbLHMLQXpS8qEUtxCsptpKneh+7chzv7Fw=
github.com/redpanda-data/benthos/v4 v4.28.1/go.mod h1:veuREp5S8MJ21MXofdfMPVm5qOwQGmymh9c13jax284=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/rickb777/date v1.20.5 h1:Ybjz7J7ga9ui4VJizQpil0l330r6wkn6CicaoattIxQ=
Expand Down
9 changes: 8 additions & 1 deletion resources/scripts/sign_for_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ _OS=$1
_PATH_TO_SIGN=$2
_IS_SNAPSHOT=$3

check_cmd() {
command -v "$1" > /dev/null 2>&1
}

if [ "$_OS" = "darwin" ]; then
quill sign-and-notarize "$_PATH_TO_SIGN" --dry-run="$_IS_SNAPSHOT" --ad-hoc="$_IS_SNAPSHOT" -vv
if check_cmd "quill"; then
quill sign-and-notarize "$_PATH_TO_SIGN" --dry-run="$_IS_SNAPSHOT" --ad-hoc="$_IS_SNAPSHOT" -vv
else
echo "Aborted, missing quill"
fi
else
echo "No need to sign binaries for ${_OS}"
fi

0 comments on commit 62de33d

Please sign in to comment.