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

owner label check not working #97

Closed jmatis-bullhorn closed 3 years ago

jmatis-bullhorn commented 3 years ago

Describe the bug When 'owner' label check enabled helm datree test does not fail on chart that does not have this label

To Reproduce Steps to reproduce the behaviour:

  1. Run command '$ helm datree test hawtio'
  2. output does not show any error despite my settings in

Expected behavior i was expecting it to fail since my chart does not have that label

Screenshots my deployment yaml starts with:

apiVersion: apps/v1 kind: Deployment metadata: name: {{ $chartname }}-{{ $branchName }} labels: app: {{ $chartname }} branch: {{ $branchName }} spec:

[hawtio]$ grep -ir owner * [hawtio]$

Desktop (please complete the following information):

Datree version (run datree verion):

Additional context
(Summary)WWWW WWWWWWWWWWWWW

eyarz commented 3 years ago

Thank you for reporting that! I'm not able able to reproduce this bug :/

Can you please try to generate a manifest file and run datree test [manifest file] against it? It will help us to debug this issue and understand if this is a logical problem with the policy engine or the helm plugin.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.