Skip to content

Commit

Permalink
e2e:rtemanifests: make withSELinuxPolicy dynamic
Browse files Browse the repository at this point in the history
In hypershift case if withSELinuxPolicy set to `true`
then the manifests will contain a `MachineConfig` object
which NROP while running on HyperShift doesn't install.

Signed-off-by: Talor Itzhak <[email protected]>
  • Loading branch information
Tal-or committed Nov 20, 2024
1 parent ea239e1 commit 7de8e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/install/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ var _ = Describe("[Install] durability", Serial, func() {
By("checking there are no leftovers")
// by taking the ns from the ds we're avoiding the need to figure out in advanced
// at which ns we should look for the resources
mf, err := rte.GetManifests(configuration.Plat, configuration.PlatVersion, ds.Namespace, true, true)
mf, err := rte.GetManifests(configuration.Plat, configuration.PlatVersion, ds.Namespace, true, annotations.IsCustomPolicyEnabled(nroObj.Annotations))
Expect(err).ToNot(HaveOccurred())

Eventually(func() bool {
Expand Down

0 comments on commit 7de8e4b

Please sign in to comment.