From d194dd173fe636705c29668ded4f4e07e987199f Mon Sep 17 00:00:00 2001 From: dwertent Date: Thu, 21 Oct 2021 11:32:20 +0300 Subject: [PATCH] fixed image and entrypoint --- build/Dockerfile | 2 +- examples/cronjob/ks-cronjob.yaml | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 6385051f..f80803cb 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -24,4 +24,4 @@ COPY --from=builder /work/build/ubuntu-latest/kubescape /usr/bin/kubescape # # Download the frameworks. Use the "--use-default" flag when running kubescape # RUN kubescape download framework nsa && kubescape download framework mitre -CMD ["kubescape"] +ENTRYPOINT ["kubescape"] diff --git a/examples/cronjob/ks-cronjob.yaml b/examples/cronjob/ks-cronjob.yaml index 49f46efe..b00b2aff 100644 --- a/examples/cronjob/ks-cronjob.yaml +++ b/examples/cronjob/ks-cronjob.yaml @@ -72,10 +72,8 @@ metadata: data: config.json: | { - "adminMail": "", - "customerGUID": "", - "clusterName": "", - "invitationParam": "" + "customerGUID": , + "clusterName": } --- @@ -104,12 +102,11 @@ spec: spec: containers: - name: kubescape - image: quay.io/armosec/kubescape:latset + image: quay.io/armosec/kubescape:latest imagePullPolicy: IfNotPresent command: ["/bin/sh","-c"] args: - - kubescape scan framework nsa --exclude-namespaces kube-system,kube-public - #- kubescape scan framework nsa --use-default --exclude-namespaces kube-system,kube-public + - kubescape scan framework nsa --submit volumeMounts: - name: kubescape-config-volume mountPath: /root/.kubescape/config.json