From 4a2a9301a8869d52b088cf35afab4dca665dafd7 Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Mon, 26 Jun 2023 22:27:40 +0200 Subject: [PATCH] fix: BONNY_OPERATOR_NAME env var is not a reference --- CHANGELOG.md | 10 ++++++++-- lib/mix/operator.ex | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5acb2ca..4463791 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,13 +11,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [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) diff --git a/lib/mix/operator.ex b/lib/mix/operator.ex index b364142..9b2763c 100644 --- a/lib/mix/operator.ex +++ b/lib/mix/operator.ex @@ -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