Skip to content

Commit

Permalink
fix: corner case with a slightly different controller name
Browse files Browse the repository at this point in the history
  • Loading branch information
shini4i committed Sep 6, 2022
1 parent 9eef0c1 commit c99ffe4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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.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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/kubeseal_auto/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit c99ffe4

Please sign in to comment.