blackducksoftware / synopsys-operator

Archived and moved this to https://github.com/blackducksoftware/synopsysctl
Apache License 2.0
10 stars 14 forks source link

Stop and Start are using namespace for the resource name #641

Closed mphammer closed 5 years ago

mphammer commented 5 years ago

What happened:

Error when trying to stop an alert in namespaced mode.

How to reproduce it (as minimally and precisely as possible):

  1. ./synopsysctl deploy --enable-blackduck --enable-alert -n jb -i=gcr.io/saas-hub-stg/blackducksoftware/synopsys-operator:release-2019.6.x
  2. ./synopsysctl create alert alt1 -n jb
  3. ./synopsysctl create alert alt2 -n jb
  4. ./synopsysctl stop alert alt1 alt2 -n jb

Screenshots/additional context:

INFO[0000] stopping Alert 'alt1' in namespace 'jb'...   
INFO[0000] stopping Alert 'alt2' in namespace 'jb'...   
ERRO[0000] synopsyctl failed: [error stopping Alert 'jb' due to alerts.synopsys.com "jb" not found error stopping Alert 'jb' due to alerts.synopsys.com "jb" not found] 
mphammer commented 5 years ago

Fixed by PR #640