Skip to content

Commit

Permalink
remove kubeconfig flags from plugins cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed Jul 21, 2023
1 parent e84c586 commit f745556
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/zora/templates/plugins/marvin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
mkdir -p $(CUSTOM_CHECKS_PATH)
ls -lh $(CUSTOM_CHECKS_PATH)
echo Scanning...
/marvin scan --disable-annotation-skip -f $(CUSTOM_CHECKS_PATH) -o json -v 2 --kubeconfig $(KUBECONFIG) > $(DONE_DIR)/results.json
/marvin scan --disable-annotation-skip -f $(CUSTOM_CHECKS_PATH) -o json -v 2 > $(DONE_DIR)/results.json
exitcode=$(echo $?)
if [ $exitcode -ne 0 ]; then
echo "ERROR" > $(DONE_DIR)/error
Expand Down
1 change: 0 additions & 1 deletion charts/zora/templates/plugins/popeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ spec:
POPEYE_REPORT_DIR=$(DONE_DIR) \
/bin/popeye \
-o json \
--kubeconfig $(KUBECONFIG) \
{{- if .Values.scan.plugins.popeye.skipInternalResources }}
-f /tmp/spinach.yml \
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion config/samples/zora_v1alpha1_plugin_marvin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
mkdir -p $(CUSTOM_CHECKS_PATH)
ls -lh $(CUSTOM_CHECKS_PATH)
echo Scanning...
/marvin scan --disable-annotation-skip -f $(CUSTOM_CHECKS_PATH) -o json -v 2 --kubeconfig $(KUBECONFIG) > $(DONE_DIR)/results.json
/marvin scan --disable-annotation-skip -f $(CUSTOM_CHECKS_PATH) -o json -v 2 > $(DONE_DIR)/results.json
exitcode=$(echo $?)
if [ $exitcode -ne 0 ]; then
echo "ERROR" > $(DONE_DIR)/error
Expand Down
1 change: 0 additions & 1 deletion config/samples/zora_v1alpha1_plugin_popeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ spec:
POPEYE_REPORT_DIR=$(DONE_DIR) \
/bin/popeye \
-o json \
--kubeconfig $(KUBECONFIG) \
--all-namespaces \
--force-exit-zero \
-f /tmp/spinach.yml \
Expand Down
1 change: 0 additions & 1 deletion config/samples/zora_v1alpha1_plugin_popeye_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
POPEYE_REPORT_DIR=$(DONE_DIR) \
/bin/popeye \
-o json \
--kubeconfig $(KUBECONFIG) \
--all-namespaces \
--force-exit-zero \
--save \
Expand Down

0 comments on commit f745556

Please sign in to comment.