Skip to content

Commit

Permalink
Change config env var prefix to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Mar 19, 2024
1 parent e4a8725 commit 235ab72
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.16.1] - 2024-03-18
### Fixed
- Changed config env var prefix to `KAMU_API_SERVER_CONFIG_` to avoid collisions with Kubernetes automatic variables

## [0.16.0] - 2024-03-18
### Added
- Support for metadata object caching on local file system (e.g. to avoid too many calls to S3 repo)
Expand Down
4 changes: 2 additions & 2 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ kamu-adapter-flight-sql = { git = "https://github.com/kamu-data/kamu-cli", branc


[workspace.package]
version = "0.16.0"
version = "0.16.1"
edition = "2021"
homepage = "https://github.com/kamu-data/kamu-platform"
repository = "https://github.com/kamu-data/kamu-platform"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Business Source License 1.1

Licensor: Kamu Data, Inc.

Licensed Work: Kamu Platform Version 0.16.0
Licensed Work: Kamu Platform Version 0.16.1
The Licensed Work is © 2023 Kamu Data, Inc.

Additional Use Grant: You may use the Licensed Work for any purpose,
Expand Down
2 changes: 1 addition & 1 deletion src/app/api-server/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub fn load_config(path: Option<&PathBuf>) -> Result<ApiServerConfig, InternalEr
ApiServerConfig::default(),
))
.merge(figment::providers::Yaml::file(path))
.merge(figment::providers::Env::prefixed("KAMU_API_SERVER_").lowercase(false))
.merge(figment::providers::Env::prefixed("KAMU_API_SERVER_CONFIG_").lowercase(false))
.extract()
.int_err()
}
Expand Down

0 comments on commit 235ab72

Please sign in to comment.