Add Robot test for running kube-hunter
[validation.git] / tests / k8s / kube-hunter / job.yaml
1 ##############################################################################
2 # Copyright (c) 2020 AT&T Intellectual Property.                             #
3 # Copyright (c) 2020 Nokia.                                                  #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17 ---
18 apiVersion: batch/v1
19 kind: Job
20 metadata:
21   name: kube-hunter
22 spec:
23   template:
24     spec:
25       containers:
26       - name: kube-hunter
27         image: {{ image }}
28         command: ["kube-hunter"]
29         args: ["--pod"]
30       restartPolicy: Never
31   backoffLimit: 4