Skip to content

Commit

Permalink
Merge pull request #516 from deepmind/release-v0.27.4
Browse files Browse the repository at this point in the history
Fix renamed flag from secrets_path to refs_path in the linter and start release-v0.27.4
  • Loading branch information
uberspot authored May 14, 2020
2 parents 18edad8 + a916dcd commit e106bec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.27.4:
- Fix linter argument flag to refs-path instead of deprecated secrets-path (#516)

## 0.27.3:
- Fix Vaultkv Error Handling (#512)
- Fix Running init with kapitan binary doesn't work (#514)
Expand Down
2 changes: 1 addition & 1 deletion kapitan/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def start_lint(args):

if args.search_secrets:
logger.info("\nChecking for orphan secrets files...\n")
status_secrets = lint_orphan_secrets(args.compiled_path, args.secrets_path)
status_secrets = lint_orphan_secrets(args.compiled_path, args.refs_path)

checks_sum = status_secrets + status_class_checks + status_yamllint
if args.fail_on_warning and checks_sum > 0:
Expand Down
4 changes: 2 additions & 2 deletions scripts/kap_5_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def post_warning():

pre_warning()

print("searching for refs in secrets-path:", args.secrets_path)
print("searching for refs in secrets-path:", args.refs_path)

for file_path in find_files(args.secrets_path):
for file_path in find_files(args.refs_path):
update_secrets(file_path)

print()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_lint(self):
args.skip_yamllint = False
args.inventory_path = "./tests/test_resources/inventory"
args.search_secrets = True
args.secrets_path = "./tests/test_resources/secrets"
args.refs_path = "./tests/test_resources/secrets"
args.compiled_path = "./tests/test_resources/compiled"

num_issues_found = start_lint(args)
Expand Down

0 comments on commit e106bec

Please sign in to comment.