Skip to content

Commit

Permalink
fix: BONNY_OPERATOR_NAME env var is not a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed Jun 26, 2023
1 parent 7b3b5da commit b3f7c50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- ### Added | Changed | Deprecated | Removed | Fixed | Security -->

## [1.2.1] - 2023-06-126

### Fixed

- BONNY_OPERATOR_NAME env var is not a reference

## [1.2.0] - 2023-06-13

## Changed
### Changed

- Start leader election by default - [#195](https://github.com/coryodaniel/bonny/pull/195)

## Fixed
### Fixed

- `mix bonny.gen.manifest` - Merge RBAC rules for the same resources - [#213](https://github.com/coryodaniel/bonny/pull/213)
- Compile time dependency at runtime - [#212](https://github.com/coryodaniel/bonny/pull/212)
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/operator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ defmodule Bonny.Mix.Operator do
defp env_vars() do
[
%{name: "MIX_ENV", value: "prod"},
%{name: "BONNY_OPERATOR_NAME", value: Bonny.Config.name()},
env_field_ref("BONNY_POD_NAME", "metadata.name"),
env_field_ref("BONNY_POD_NAMESPACE", "metadata.namespace"),
env_field_ref("BONNY_POD_IP", "status.podIP"),
env_field_ref("BONNY_POD_SERVICE_ACCOUNT", "spec.serviceAccountName"),
env_field_ref("BONNY_OPERATOR_NAME", Bonny.Config.name())
]
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Bonny.MixProject do
use Mix.Project
@version "1.2.0"
@version "1.2.1"
@source_url "https://github.com/coryodaniel/bonny"

def project do
Expand Down

0 comments on commit b3f7c50

Please sign in to comment.