-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add config/samples/zora_v1alpha1_plugin_marvin.yaml * implement marvin parse * unit test for marvin parse * using marvin parse in worker * using scan.plugins.popeye.enabled in helm chart * add marvin plugin in helm chart * add marvin as default plugin * remove values-hml.yaml * 0.5.0-alpha2 * parsing marvin errors * 0.5.0-alpha3 * using marvin 0.1.3 * get marvin report errors * add marvin errors to testdata * add param to build string message for each regex pattern * marvin 0.1.4 * zora 0.5.0-alpha4 * replacing IDs from marvin testdata * marvin issues URL * zora 0.5.0-alpha5 * zora 0.5.0
- Loading branch information
Showing
27 changed files
with
1,076 additions
and
174 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,3 @@ | |
.vscode/ | ||
|
||
README.md.gotmpl | ||
|
||
values-hml.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2023 Undistro Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
{{ if .Values.scan.plugins.marvin.enabled -}} | ||
apiVersion: zora.undistro.io/v1alpha1 | ||
kind: Plugin | ||
metadata: | ||
name: marvin | ||
labels: | ||
{{- include "zora.labels" . | nindent 4 }} | ||
spec: | ||
image: "{{ .Values.scan.plugins.marvin.image.repository }}:{{ .Values.scan.plugins.marvin.image.tag }}" | ||
{{- if .Values.scan.plugins.marvin.resources }} | ||
resources: | ||
{{- toYaml .Values.scan.plugins.marvin.resources | nindent 4 }} | ||
{{- end }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
start=$(date +%s) | ||
echo Scanning... | ||
/marvin scan --disable-annotation-skip -o json -v 2 --kubeconfig $(KUBECONFIG) > $(DONE_DIR)/results.json | ||
exitcode=$(echo $?) | ||
if [ $exitcode -ne 0 ]; then | ||
echo "ERROR" > $(DONE_DIR)/error | ||
else | ||
echo $(DONE_DIR)/results.json > $(DONE_DIR)/done | ||
fi | ||
ls -lh $(DONE_DIR)/ | ||
end=$(date +%s) | ||
echo "Scan has finished in $(($end-$start)) seconds with exit code $exitcode" | ||
exit $exitcode | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2023 Undistro Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: zora.undistro.io/v1alpha1 | ||
kind: Plugin | ||
metadata: | ||
name: marvin | ||
spec: | ||
image: ghcr.io/undistro/marvin:v0.1.4 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 100Mi | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
start=$(date +%s) | ||
echo Scanning... | ||
/marvin scan --disable-annotation-skip -o json -v 2 --kubeconfig $(KUBECONFIG) > $(DONE_DIR)/results.json | ||
exitcode=$(echo $?) | ||
if [ $exitcode -ne 0 ]; then | ||
echo "ERROR" > $(DONE_DIR)/error | ||
else | ||
echo $(DONE_DIR)/results.json > $(DONE_DIR)/done | ||
fi | ||
ls -lh $(DONE_DIR)/ | ||
end=$(date +%s) | ||
echo "Scan has finished in $(($end-$start)) seconds with exit code $exitcode" | ||
exit $exitcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.