Skip to content

Commit

Permalink
Update kube-bench version (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao authored Nov 16, 2023
1 parent 6224592 commit 494bb65
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/castai-kvisor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ imageScanSecret: ""

# Controls `deployment.spec.strategy` field
updateStrategy:
type: Recreate
type: RollingUpdate

policyEnforcement:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion linters/kubebench/spec/aks.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func AKS(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Image: kubeBenchImage,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: lo.ToPtr(true),
AllowPrivilegeEscalation: lo.ToPtr(false),
Expand Down
3 changes: 3 additions & 0 deletions linters/kubebench/spec/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package spec

const kubeBenchImage = "ghcr.io/castai/kvisor/kube-bench:v0.8.0"
2 changes: 1 addition & 1 deletion linters/kubebench/spec/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func EKS(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Image: kubeBenchImage,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: lo.ToPtr(true),
AllowPrivilegeEscalation: lo.ToPtr(false),
Expand Down
2 changes: 1 addition & 1 deletion linters/kubebench/spec/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func GKE(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Image: kubeBenchImage,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: lo.ToPtr(true),
AllowPrivilegeEscalation: lo.ToPtr(false),
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 @@ -44,7 +44,7 @@ func Master(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Image: kubeBenchImage,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: lo.ToPtr(true),
AllowPrivilegeEscalation: lo.ToPtr(false),
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 @@ -29,7 +29,7 @@ func Node(nodeName, jobName string) *batchv1.Job {
Containers: []corev1.Container{
{
Name: "kube-bench",
Image: "ghcr.io/castai/kvisor/kube-bench:v0.7.0",
Image: kubeBenchImage,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: lo.ToPtr(true),
AllowPrivilegeEscalation: lo.ToPtr(false),
Expand Down

0 comments on commit 494bb65

Please sign in to comment.