Skip to content

Commit 6f4f4a1

Browse files
committed
Merge branch 'postgres-sink-on-conflict' of github.com:vaughnw128/vector into postgres-sink-on-conflict
2 parents fd4e550 + 9c21ae9 commit 6f4f4a1

11 files changed

Lines changed: 495 additions & 153 deletions

File tree

‎Cargo.lock‎

Lines changed: 39 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ workspace = true
5353
[package.metadata.deb]
5454
name = "vector"
5555
section = "admin"
56-
maintainer-scripts = "distribution/debian/scripts/"
56+
maintainer-scripts = "target/debian-maintainer-scripts/"
5757
conf-files = ["/etc/default/vector", "/etc/vector/vector.yaml"]
5858
assets = [
5959
["target/release/vector", "/usr/bin/", "755"],

‎distribution/debian/scripts/preinst‎

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -32,49 +32,9 @@ case "$1" in
3232
# absent makes dpkg prompt about a deleted configuration file. Stage
3333
# the exact incoming stub instead, then restore the user's file in
3434
# postinst (or postrm if installation aborts).
35-
# Keep this content byte-for-byte in sync with ../vector.yaml.
35+
# The packaging step embeds distribution/debian/vector.yaml here.
3636
cat > /etc/vector/vector.yaml <<'VECTOR_CONFIG_STUB'
37-
# __ __ __
38-
# \ \ / / / /
39-
# \ V / / /
40-
# \_/ \/
41-
#
42-
# V E C T O R
43-
# Configuration
44-
#
45-
# ------------------------------------------------------------------------------
46-
# Website: https://vector.dev
47-
# Docs: https://vector.dev/docs
48-
# Chat: https://chat.vector.dev
49-
# ------------------------------------------------------------------------------
50-
51-
# Change this to use a non-default directory for Vector data storage:
52-
# data_dir: "/var/lib/vector"
53-
54-
# Example configurations are available at /etc/vector/examples/
55-
56-
# Add your sources, transforms, and sinks here.
57-
# See https://vector.dev/docs/reference/configuration/ for full reference.
58-
59-
# sources:
60-
# my_source:
61-
# type: "..."
62-
63-
# transforms:
64-
# my_transform:
65-
# type: "..."
66-
# inputs: ["my_source"]
67-
68-
# sinks:
69-
# my_sink:
70-
# type: "..."
71-
# inputs: ["my_transform"]
72-
73-
# Vector's API (disabled by default)
74-
# Uncomment to try it out with the `vector top` command
75-
# api:
76-
# enabled: true
77-
# address: "127.0.0.1:8686"
37+
{{config_stub~}}
7838
VECTOR_CONFIG_STUB
7939
fi
8040
fi

‎scripts/package-deb.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ cat LICENSE NOTICE >"$PROJECT_ROOT/target/debian-license.txt"
7676
# mirroring `scripts/package-rpm.sh`. Without this, a `0.59.0-dev-1` package
7777
# would sort newer than the eventual stable `0.59.0-1` release.
7878
DEB_VERSION="${PACKAGE_VERSION/-/\~}"
79+
${VDEV:-cargo vdev} build debian-maintainer-scripts
80+
7981
cargo deb --target "$TARGET" --deb-version "${DEB_VERSION}-1" --variant "$TARGET" --no-build --no-strip --profile "$PROFILE"
8082

8183
# Rename the resulting .deb file to remove TARGET from name.

‎src/providers/http.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Default for HttpConfig {
6767
request: RequestConfig::default(),
6868
poll_interval_secs: 30,
6969
tls_options: None,
70-
proxy: Default::default(),
70+
proxy: ProxyConfig::default(),
7171
config_format: Format::default(),
7272
interpolate_env: false,
7373
}
@@ -90,7 +90,7 @@ async fn http_request(
9090

9191
// Augment with headers. These may be required e.g. for authentication to
9292
// private endpoints.
93-
for (header, value) in headers.iter() {
93+
for (header, value) in headers {
9494
builder = builder.header(header.as_str(), value.as_str());
9595
}
9696

@@ -184,7 +184,7 @@ fn poll_http(
184184
match http_request_to_config_builder(&url, tls_options.as_ref(), &headers, &proxy, &config_format, interpolate_env).await {
185185
Ok(config_builder) => yield signal::SignalTo::ReloadFromConfigBuilder(config_builder),
186186
Err(_) => {},
187-
};
187+
}
188188

189189
info!(
190190
message = "HTTP provider is waiting.",

‎src/providers/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![warn(clippy::pedantic)]
12
#![allow(missing_docs)]
23
use enum_dispatch::enum_dispatch;
34
use vector_lib::configurable::{NamedComponent, configurable_component};

‎vdev/Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vdev"
3-
version = "0.3.28"
3+
version = "0.3.29"
44
edition = "2024"
55
authors = ["Vector Contributors <vector@datadoghq.com>"]
66
license = "MPL-2.0"
@@ -27,6 +27,7 @@ clap-verbosity-flag = "3.0.4"
2727
clap_complete.workspace = true
2828
directories = "6.0.0"
2929
glob.workspace = true
30+
handlebars = { version = "6.4.4", default-features = false }
3031
hex = "0.4.3"
3132
indexmap.workspace = true
3233
indicatif = { version = "0.18.4", features = ["improved_unicode"] }

0 commit comments

Comments
 (0)