Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Error out in cases when user attempts to create secret with incorrect json/yaml file format. #2409

Open
sangee2004 opened this issue Jan 12, 2024 · 0 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@sangee2004
Copy link
Contributor

sangee2004 commented Jan 12, 2024

acorn version - v0.10.0-rc2-9-g43dbcbf4+43dbcbf4

Steps to reproduce the problem:

  1. Create secret with incorrect json/yaml file format using --file option like
%cat test.yml
type: "opaque"
data:
-test1:         "value1"
-test2:         "value2"
%acorn secret create --file test.yml mytestsec
mytestsec
 % acorn secret reveal mytestsec                
NAME      TYPE      KEY       VALUE
  1. Secrets get created with no data.

Expected Behavior:
Secret creation should error out stating that there was no data found to create secrets.

@sangee2004 sangee2004 added kind/bug Something isn't working help wanted Extra attention is needed labels Jan 12, 2024
@sangee2004 sangee2004 added this to the Backlog milestone Jan 12, 2024
@cjellick cjellick removed the help wanted Extra attention is needed label Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants