Skip to content

Commit

Permalink
Enable PSA FG on Kubevirt
Browse files Browse the repository at this point in the history
Enable PSA FG on Kubevirt to be compatible with
k8s >= 1.24 and derivates with PSA in enforcing mode.

Once available also in older versions of Kubevirt,
we will have also to backport it to release-1.6
and release-1.7.

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
  • Loading branch information
tiraboschi committed Sep 22, 2022
1 parent 3278399 commit 4296006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ var _ = Describe("HyperconvergedController", func() {
"NUMA",
"WithHostPassthroughCPU",
"VMExport",
"PSA",
}
// Get the KV
kvList := &kubevirtcorev1.KubeVirtList{}
Expand Down
4 changes: 4 additions & 0 deletions controllers/operands/kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const (

// Export VMs to outside of the cluster
kvVMExportGate = "VMExport"

// enable Pod Security Admission handling
kvPSA = "PSA"
)

var (
Expand All @@ -107,6 +110,7 @@ var (
kvDownwardMetricsGate,
kvNUMA,
kvVMExportGate,
kvPSA,
}

// holds a list of mandatory KubeVirt feature gates. Some of them are the hard coded feature gates and some of
Expand Down

0 comments on commit 4296006

Please sign in to comment.