Skip to content

Commit

Permalink
Bump version: 0.4.6 → 0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shini4i committed Mar 5, 2024
1 parent 3e7b535 commit 939574d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.4.6
current_version = 0.4.7
commit = True
tag = True

Expand Down
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.7] - 2024-03-05
### Fixed
- Yaml parsing for kubeseal >= 0.24.0

## [0.4.6] - 2023-10-03
### Changed
- Made code formatting less pythonic, but more readable
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.6"
version = "0.4.7"
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/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__version__ = "0.4.6"
__version__ = "0.4.7"

import click
import colorama
Expand Down
7 changes: 4 additions & 3 deletions src/kubeseal_auto/kubeseal.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ def seal(self, secret_name: str):
def parse_existing_secret(secret_name: str):
try:
with open(secret_name, "r") as stream:
return yaml.safe_load(stream)
except ComposerError:
click.echo("Only single document yaml files are supported. Skipping.")
docs = [doc for doc in yaml.safe_load_all(stream) if doc is not None]
if len(docs) > 1:
raise ComposerError("Only single document yaml files are supported")
return docs[0]
except FileNotFoundError:
click.echo("Provided file does not exists. Aborting.")
exit(1)
Expand Down

0 comments on commit 939574d

Please sign in to comment.