-
Notifications
You must be signed in to change notification settings - Fork 4.8k
NE-2292: Add origin test for the NO-OLM testing #30883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
rhamini3
wants to merge
4
commits into
openshift:main
Choose a base branch
from
rhamini3:ne-2292
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -114,7 +114,6 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| // skip non clould platforms since gateway needs LB service | ||||||||||||||||||||||||||||||||||||||||||
| skipGatewayIfNonCloudPlatform(oc) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| // GatewayAPIController relies on OSSM OLM operator. | ||||||||||||||||||||||||||||||||||||||||||
| // Skipping on clusters which don't have capabilities required | ||||||||||||||||||||||||||||||||||||||||||
| // to install an OLM operator. | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -194,6 +193,7 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| g.It("Ensure OSSM and OLM related resources are created after creating GatewayClass", func() { | ||||||||||||||||||||||||||||||||||||||||||
| skipIfNoOLMFeatureGateEnabled(oc) | ||||||||||||||||||||||||||||||||||||||||||
| defer markTestDone(oc, ossmAndOLMResourcesCreated) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| //check the catalogSource | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -237,7 +237,6 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
| return true, nil | ||||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||
| o.Expect(waitCSVErr).NotTo(o.HaveOccurred(), "Cluster Service Version %s never reached succeeded status", csvName) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| // get OSSM Operator deployment | ||||||||||||||||||||||||||||||||||||||||||
| waitErr := wait.PollUntilContextTimeout(context.Background(), 1*time.Second, 20*time.Minute, false, func(context context.Context) (bool, error) { | ||||||||||||||||||||||||||||||||||||||||||
| deployOSSM, err := oc.AdminKubeClient().AppsV1().Deployments(expectedSubscriptionNamespace).Get(context, "servicemesh-operator3", metav1.GetOptions{}) | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -267,6 +266,7 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| g.It("Ensure custom gatewayclass can be accepted", func() { | ||||||||||||||||||||||||||||||||||||||||||
| skipIfNoOLMFeatureGateEnabled(oc) | ||||||||||||||||||||||||||||||||||||||||||
| defer markTestDone(oc, customGatewayclassAccepted) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| customGatewayClassName := "custom-gatewayclass" | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -353,6 +353,7 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| g.It("Ensure GIE is enabled after creating an inferencePool CRD", func() { | ||||||||||||||||||||||||||||||||||||||||||
| skipIfNoOLMFeatureGateEnabled(oc) | ||||||||||||||||||||||||||||||||||||||||||
| defer markTestDone(oc, gieEnabled) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| errCheck := checkGatewayClass(oc, gatewayClassName) | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -399,6 +400,7 @@ var _ = g.Describe("[sig-network-edge][OCPFeatureGate:GatewayAPIController][Feat | |||||||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| g.It("Ensure istiod deployment and the istio could be deleted and then get recreated [Serial]", func() { | ||||||||||||||||||||||||||||||||||||||||||
| skipIfNoOLMFeatureGateEnabled(oc) | ||||||||||||||||||||||||||||||||||||||||||
| // delete the istiod deployment and then checked if it is restored | ||||||||||||||||||||||||||||||||||||||||||
| g.By(fmt.Sprintf("Try to delete the istiod deployment in %s namespace", ingressNamespace)) | ||||||||||||||||||||||||||||||||||||||||||
| pollWaitDeploymentReady(oc, ingressNamespace, istiodDeployment) | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -483,6 +485,14 @@ func skipGatewayIfNonCloudPlatform(oc *exutil.CLI) { | |||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| func skipIfNoOLMFeatureGateEnabled(oc *exutil.CLI) { | ||||||||||||||||||||||||||||||||||||||||||
| featuregate, err := oc.AsAdmin().Run("get").Args("featuregate", "cluster", "-o=jsonpath='{.status.featureGates[*].enabled[*].name}'").Output() | ||||||||||||||||||||||||||||||||||||||||||
| o.Expect(err).NotTo(o.HaveOccurred()) | ||||||||||||||||||||||||||||||||||||||||||
| if strings.Contains(featuregate, "GatewayAPIWithoutOLM") { | ||||||||||||||||||||||||||||||||||||||||||
| g.Skip("Skip test since it requires OLM resources") | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+488
to
+494
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit better to use structured API client rather than raw OC command:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| func waitForIstioHealthy(oc *exutil.CLI) { | ||||||||||||||||||||||||||||||||||||||||||
| timeout := 20 * time.Minute | ||||||||||||||||||||||||||||||||||||||||||
| err := wait.PollUntilContextTimeout(context.Background(), 10*time.Second, timeout, false, func(context context.Context) (bool, error) { | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should skip everything right? If don't skip everything, we run the non-skipped tests here and in
gatewayapiwitholm.gofor tech preview jobs.