Skip to content

Commit e79a342

Browse files
committed
chore: fix broken lint
1 parent 5f5a460 commit e79a342

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

.clippy.toml

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ allowed-duplicate-crates = [
33
"bitflags",
44
"crossterm",
55
"h2",
6+
"headers-core",
7+
"headers",
68
"heck",
7-
"http",
89
"http-body",
9-
"hyper",
10+
"http",
1011
"hyper-tls",
12+
"hyper",
1113
"mio",
1214
"pbkdf2",
1315
"regex-automata",
@@ -16,16 +18,18 @@ allowed-duplicate-crates = [
1618
"rustls-pemfile",
1719
"syn",
1820
"sync_wrapper",
19-
"system-configuration",
2021
"system-configuration-sys",
21-
"windows-sys",
22-
"windows-targets",
22+
"system-configuration",
23+
"tokio-tungstenite",
24+
"tungstenite",
2325
"windows_aarch64_gnullvm",
2426
"windows_aarch64_msvc",
2527
"windows_i686_gnu",
2628
"windows_i686_msvc",
2729
"windows_x86_64_gnu",
2830
"windows_x86_64_gnullvm",
2931
"windows_x86_64_msvc",
32+
"windows-sys",
33+
"windows-targets",
3034
"winreg",
3135
]

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: build
22

33
on:
44
workflow_call:
5+
secrets:
6+
POSTHOG_API_KEY:
7+
description: 'PostHog API key'
8+
required: false
59

610
env:
711
CARGO_TERM_COLOR: always
@@ -70,6 +74,8 @@ jobs:
7074
os: linux
7175
arch: amd64
7276
runner: ubuntu-latest
77+
secrets:
78+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
7379

7480
docker-linux-arm64:
7581
if: ${{ github.event_name != 'pull_request' }}
@@ -80,6 +86,8 @@ jobs:
8086
os: linux
8187
arch: arm64
8288
runner: buildjet-4vcpu-ubuntu-2204-arm
89+
secrets:
90+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
8391

8492
helm:
8593
runs-on: ubuntu-latest

.github/workflows/docker.yml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
description: 'Runner to use'
1919
default: 'ubuntu-latest'
2020
type: string
21+
secrets:
22+
POSTHOG_API_KEY:
23+
description: 'Posthog API key'
24+
required: true
2125

2226
env:
2327
CARGO_TERM_COLOR: always

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
packages: write
2525

2626
uses: ./.github/workflows/build.yml
27+
secrets:
28+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
2729

2830
merge:
2931
runs-on: ubuntu-latest

src/cli/serve.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ pub struct Serve {
3030
// TODO(thomas): fetch these from the CRD
3131
#[clap(long, default_value = "1hr")]
3232
inactivity_timeout: humantime::Duration,
33-
/// Client ID for the OpenID provider that will be used.
33+
/// Client ID for the `OpenID` provider that will be used.
3434
#[clap(long, default_value = CLIENT_ID, env = "KUBERIFT_CLIENT_ID")]
3535
client_id: String,
36-
/// URL to the OpenID configuration. This is how the server knows what
36+
/// URL to the `OpenID` configuration. This is how the server knows what
3737
/// endpoints to use and how to validate tokens.
3838
#[clap(long, default_value = OID_CONFIG_URL, env = "KUBERIFT_OID_CONFIG_URL")]
3939
openid_configuration: String,

0 commit comments

Comments
 (0)