Skip to content

Commit

Permalink
Update kube-bench version (#157)
Browse files Browse the repository at this point in the history
* Update kube-bench version
  • Loading branch information
damejeras authored Sep 14, 2023
1 parent 97399c4 commit 7b63970
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions linters/kubebench/spec/aks.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func AKS(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "docker.io/aquasec/kube-bench:v0.6.9",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Command: []string{
"kube-bench", "run", "--targets", "node", "--benchmark", "aks-1.0", "--json",
"kube-bench", "run", "--targets", "node", "--benchmark", "aks-1.3", "--json",
},
VolumeMounts: []corev1.VolumeMount{
{
Expand Down
4 changes: 2 additions & 2 deletions linters/kubebench/spec/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ func EKS(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "docker.io/aquasec/kube-bench:v0.6.9",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Command: []string{
"kube-bench",
"run",
"--targets",
"node",
"--benchmark",
"eks-1.0.1",
"eks-1.3.0",
"--json",
},
VolumeMounts: []corev1.VolumeMount{
Expand Down
4 changes: 2 additions & 2 deletions linters/kubebench/spec/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ func GKE(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "docker.io/aquasec/kube-bench:v0.6.9",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Command: []string{
"kube-bench",
"run",
"--targets",
"node,policies,managedservices",
"--benchmark",
"gke-1.2.0",
"gke-1.4.0",
"--json",
},
VolumeMounts: []corev1.VolumeMount{
Expand Down
2 changes: 1 addition & 1 deletion linters/kubebench/spec/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Master(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "docker.io/aquasec/kube-bench:v0.6.9",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Command: []string{
"kube-bench", "run", "--targets", "master", "--json",
},
Expand Down
2 changes: 1 addition & 1 deletion linters/kubebench/spec/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Node(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "docker.io/aquasec/kube-bench:v0.6.9",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Command: []string{
"kube-bench", "run", "--targets", "node", "--json",
},
Expand Down

0 comments on commit 7b63970

Please sign in to comment.