Skip to content

Commit

Permalink
Set search path for tainter-controller.yaml to 'config/tainter-contro…
Browse files Browse the repository at this point in the history
…ller.yaml'
  • Loading branch information
hmettendorf committed Mar 7, 2024
1 parent 7266c4a commit 47a1b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM rust:latest AS build
WORKDIR /app


COPY Cargo.toml Cargo.lock taint-controller.yaml .
COPY Cargo.toml Cargo.lock .
COPY src src
RUN cargo build --release

Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl std::fmt::Display for ConfigurationError {
impl TaintConfig {
pub fn try_default() -> Result<TaintConfig, ConfigurationError> {
let config = Config::builder()
.add_source(config::File::with_name("taint-controller.yaml"))
.add_source(config::File::with_name("config/taint-controller.yaml"))
.build().map_err(|e| ConfigurationError {
message: format!("Failed to load configuration: {}", e)
})?;
Expand Down

0 comments on commit 47a1b16

Please sign in to comment.