datreeio / datree

Prevent Kubernetes misconfigurations from reaching production (again 😤 )! From code to cloud, Datree provides an E2E policy enforcement solution to run automatic checks for rule violations. See our docs: https://hub.datree.io
https://datree.io
Apache License 2.0
6.39k stars 363 forks source link

Read test commands flags from ./config.yaml file #385

Open noaabarki opened 2 years ago

noaabarki commented 2 years ago

Describe the solution you'd like

Read all test command’s flags from both command and the config file(~/.datree/config.yaml). The main feature is to allow users to set permanent yet custom flags in their config local settings.

“How to implementation” Suggestion

Requirements Golang basic level.

RishiKumarRay commented 2 years ago

Do we have to just paste this code

laneia commented 2 years ago

Hey @noaabarki I’d be interested in taking this on

noaabarki commented 2 years ago

Hi @laneia! That's amazing, you got it :)

dimabru commented 2 years ago

Will this cause us to override the flags without the ability to change it via the cli?

To be more specific, I will be able to manually add schema-version flag to config.yaml but will not have the ability to use the cli to override it using datree config set schema-version Or even check what is set using datree config get schema-version

royhadad commented 2 years ago

Will this cause us to override the flags without the ability to change it via the cli?

To be more specific, I will be able to manually add schema-version flag to config.yaml but will not have the ability to use the cli to override it using datree config set schema-version Or even check what is set using datree config get schema-version

As with most tools, I think we want the inline flags to merge & override the flags from config.yaml

naorpeled commented 2 years ago

@noaabarki I would like to work on this issue :)

noaabarki commented 2 years ago

You are the best! 🥳 It's yours.

naorpeled commented 2 years ago

Hey @noaabarki, didn't have much time to work on this task in the past few weeks :(

Wanted to get it done within the day that I was assigned but got a bit stuck, will try to get it done this week.

amustaque97 commented 1 year ago

@noaabarki is anyone working on this issue?

royhadad commented 1 year ago

@amustaque97 Nope, feel free to give it a shot :)

Abhi-y2003 commented 1 year ago

@noaabarki is there anyone working on this issue? I would like to work on this : )

eyarz commented 1 year ago

@Abhi-y2003 go for it!