Skip to content

Commit

Permalink
fix: remove erronious dep on linode & cloudflare tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Apr 11, 2024
1 parent 333fd7d commit 9250559
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/bolt/core/src/context/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ impl ServiceContextData {
));
}

if self.depends_on_infra() {
if self.depends_on_infra() && project_ctx.tls_enabled() {
let tls = terraform::output::read_tls(&project_ctx).await;
let k8s_infra = terraform::output::read_k8s_infra(&project_ctx).await;

Expand Down
2 changes: 2 additions & 0 deletions svc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion svc/pkg/cluster/worker/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kind = "rust"

[secrets]
"rivet/api_route/token" = {}
"cloudflare/terraform/auth_token" = {}
"cloudflare/terraform/auth_token" = { optional = true }
"ssh/server/private_key_openssh" = {}

[databases]
Expand Down
2 changes: 1 addition & 1 deletion svc/pkg/linode/ops/instance-type-get/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ kind = "rust"
[operation]

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }
2 changes: 1 addition & 1 deletion svc/pkg/linode/ops/server-destroy/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ kind = "rust"
[operation]

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }
2 changes: 1 addition & 1 deletion svc/pkg/linode/ops/server-provision/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ kind = "rust"
[operation]

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }
"ssh/server/private_key_openssh" = {}
2 changes: 1 addition & 1 deletion svc/pkg/linode/standalone/gc/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ kind = "rust"
singleton = true

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }
2 changes: 1 addition & 1 deletion svc/pkg/linode/worker/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ kind = "rust"
[consumer]

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }
"ssh/server/private_key_openssh" = {}
2 changes: 1 addition & 1 deletion svc/pkg/tier/ops/list/Service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ kind = "rust"
[operation]

[secrets]
"linode/token" = {}
"linode/token" = { optional = true }

0 comments on commit 9250559

Please sign in to comment.