diff --git a/CHANGELOG.md b/CHANGELOG.md index c891418..dbc6f29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.4.4] - 2022-09-06 +### Fixed +- Corner case when SealedSecrets controller has a different name + ## [0.4.3] - 2022-09-06 ### Changed - Fallback to the default kubeseal binary if the specific version can't be downloaded diff --git a/pyproject.toml b/pyproject.toml index 4829fe4..fac8816 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kubeseal-auto" -version = "0.4.3" +version = "0.4.4" description = "An interactive wrapper for kubeseal binary" authors = ["Vadim Gedz "] license = "MIT" diff --git a/src/kubeseal_auto/cluster.py b/src/kubeseal_auto/cluster.py index 8360b8a..2c03e5d 100644 --- a/src/kubeseal_auto/cluster.py +++ b/src/kubeseal_auto/cluster.py @@ -43,7 +43,7 @@ def _find_sealed_secrets_controller(self) -> dict: .list_deployment_for_all_namespaces(label_selector=expected_label) .items ): - if deployment.metadata.labels[expected_label] == "sealed-secrets": + if "sealed-secrets" in deployment.metadata.labels[expected_label]: name = deployment.metadata.labels[expected_label] namespace = deployment.metadata.namespace version = deployment.metadata.labels["app.kubernetes.io/version"]