Skip to content

Commit

Permalink
[release-1.7] Enable PSA FG on Kubevirt (#2104)
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.

This is a manual cherry-pick of #2093

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>

Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
  • Loading branch information
tiraboschi committed Oct 7, 2022
1 parent b260c1e commit 4492325
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() {
"ExpandDisks",
"NUMA",
"WithHostPassthroughCPU",
"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 (

// Allow automatic numa mapping on VMs with dedicated CPUs, if requested
kvNUMA = "NUMA"

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

var (
Expand All @@ -107,6 +110,7 @@ var (
kvDownwardMetricsGate,
kvNUMA,
kvLiveMigrationGate,
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 4492325

Please sign in to comment.