Skip to content

fix(ci): repair OLM on the shared GKE cluster and keep it installed - #5982

Merged
openshift-merge-bot[bot] merged 3 commits into
redhat-developer:mainfrom
zdrapela:rhdh-gke-cluster-lock
Dec 4, 2026
Merged

openshift-merge-bot[bot] merged 3 commits into
redhat-developer:mainfrom
zdrapela:rhdh-gke-cluster-lock

Conversation

@zdrapela

@zdrapela zdrapela commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Fixes the GKE nightly OLM failures (RHDHBUGS-4181).

All GKE jobs run on a single long-lived cluster and share the showcase-k8s-ci-nightly, showcase-rbac-k8s-ci-nightly and rhdh-keycloak namespaces, the ingress hostname and the cluster-scoped OLM installation. A cleanup that failed after a partial operator-sdk olm uninstall left OLM unusable, and every Operator job then failed on detected existing OLM resources until the cluster was repaired by hand.

OLM (.ci/pipelines/lib/operators.sh, cleanup_gke)

  • Detect OLM from the olm-operator, catalog-operator and packageserver deployments instead of operator-sdk olm status, which downloads the release manifests and fails on a partial installation.
  • Remove OLM's resources by name, clearing the CSV finalizer that olm-operator can no longer remove once it is stopped, and retry the install, so a partial installation repairs itself instead of failing the job forever.
  • Keep OLM installed on the long-lived cluster; cleanup removes the RHDH CatalogSource and the OLM-owned RBAC of the deleted operator namespace, and logs warnings instead of aborting the rest of the trap, which previously left Keycloak behind.
  • The version is not pinned in code: the operator-sdk pinned in .ci/images/Dockerfile already installs OLM 0.28.0.

Test fixes

  • Restore techdocs.cache.ttl: TechDocs only creates its cache when that key is set, so since chore(e2e): remove migrated wrapper plugin tests and CI infrastructure #4795 removed it no techdocs keys were written to Redis and the cache test could not pass (RHDHBUGS-3762).
  • Log the Redis DBSIZE and techdocs keys in that test so the next failure shows whether Redis is empty or holds the wrong keys.
  • exec the port-forward in the Redis cache test so stopping the session also stops kubectl; Playwright retries no longer fail with address already in use on port 16379.

Concurrency between GKE jobs is handled by a Prow job queue (rhdh-gke, capacity 1), which also covers PR /test and Gangway runs.

Related PRs: openshift/release#89921 (Prow job queue) and openshift/release#89917 (nightly time grid).

Jira: https://redhat.atlassian.net/browse/RHDHBUGS-4181

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci
openshift-ci Bot requested review from jrichter1 and teknaS47 December 4, 2026 13:43
@rhdh-qodo-merge

rhdh-qodo-merge Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Serialise GKE CI jobs with a cluster lease and harden OLM handling

🐞 Bug fix ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Adds a Kubernetes Lease lock so GKE jobs stop deleting each other's resources on the shared
 cluster.
• Makes OLM detection, install, and cleanup idempotent, pinned to 0.28.0, and non-fatal on failure.
• Fixes flaky Redis cache and Playwright port-forward tests by restoring TTL and killing the process
 group.
Merge Risk 🔴 High

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed OLM lifecycle is invoked by the shared cluster_setup_k8s_operator entry point used by AKS, EKS, and GKE operator jobs.
  • OLM setup, retained OLM state, and RHDH-specific GKE cleanup all determine whether this bounded operator-deployment integration can be reused safely.
  • The CSV metadata and cluster-scoped resource mutations occur inside the OLM teardown used to make the same bounded operator-deployment integration reusable.
  • They are persistent lifecycle effects of that integration, not separate end-user capabilities.
Sources

.ci/pipelines/lib/operators.sh[59-66]

  kubectl get csv --all-namespaces \
    -o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{"\n"}{end}' 2> /dev/null \
    | while read -r ns name; do
      kubectl patch csv "${name}" --namespace="${ns}" --type=merge -p '{"metadata":{"finalizers":null}}'
    done
  # The cluster-scoped resources that finalizer deletes for its CSV.
  kubectl delete clusterrole,clusterrolebinding,mutatingwebhookconfiguration,validatingwebhookconfiguration \
    -l olm.owner.kind=ClusterServiceVersion --ignore-not-found || return 1

.ci/pipelines/lib/operators.sh[74-87]

# `operator-sdk olm install` refuses to run over resources left by a failed attempt.
operator::reinstall_olm() {
  operator::uninstall_olm \
    && operator-sdk olm install --timeout=5m
}

operator::install_olm() {
  if operator::olm_healthy; then
    log::info "OLM is already installed."
    return 0
  fi

  log::info "Installing OLM..."
  common::retry 3 30 operator::reinstall_olm

.ci/pipelines/lib/operators.sh[53-57]

  log::info "Removing OLM resources"
  # Stop the operators first, otherwise they recreate the APIService after it is deleted.
  kubectl delete deployment olm-operator catalog-operator packageserver \
    --namespace=olm --ignore-not-found --cascade=foreground --timeout=120s || return 1
  kubectl delete apiservice v1.packages.operators.coreos.com --ignore-not-found || return 1
Behavioral complexity 🔴 High 🧩 State transitions, Compatibility cases

  • Before, OLM status selected either no-op or one install/uninstall operation, and GKE cleanup removed the shared OLM installation.
  • After, healthy, partial, absent, retrying, failed, OpenShift-managed, retained-state, and RHDH-specific cleanup cases interact across shared CI environments.
  • Before: teardown did not separately coordinate operator dependents, APIService, CRDs, RBAC, namespaces, and CSV-owned cluster resources.
  • After: cleanup retains OLM but removes the RHDH operator and selected dependent resources, while reinstall stops OLM deployments, waits for foreground cascading deletion, removes API, CRD, RBAC, CSV finalizers, CSV-owned cluster-scoped resources, and namespace resources, then reinstalls.
  • New correctness conditions are that readiness reflects all required deployments and APIs, foreground deletion completes without deadlock or timeout, teardown ordering prevents resource recreation, cleanup does not damage unrelated state, retries converge, and later consumers tolerate retained installation.
  • The follow-up adds deletion of resources selected through ClusterServiceVersion ownership labels, preserving the prior compatibility and state-transition complexity while adding another coordinated cleanup invariant.
Sources

.ci/pipelines/lib/operators.sh[53-57]

  log::info "Removing OLM resources"
  # Stop the operators first, otherwise they recreate the APIService after it is deleted.
  kubectl delete deployment olm-operator catalog-operator packageserver \
    --namespace=olm --ignore-not-found --cascade=foreground --timeout=120s || return 1
  kubectl delete apiservice v1.packages.operators.coreos.com --ignore-not-found || return 1

.ci/pipelines/lib/operators.sh[74-87]

# `operator-sdk olm install` refuses to run over resources left by a failed attempt.
operator::reinstall_olm() {
  operator::uninstall_olm \
    && operator-sdk olm install --timeout=5m
}

operator::install_olm() {
  if operator::olm_healthy; then
    log::info "OLM is already installed."
    return 0
  fi

  log::info "Installing OLM..."
  common::retry 3 30 operator::reinstall_olm
Potential damage 🔴 High 🩹 Integrity

  • The cleanup changes persistent lifecycle metadata for every visible CSV and deletes matching cluster-scoped resources across the cluster, not only resources explicitly scoped to the OLM namespace.
  • If unrelated CSVs or resources share the selected scope, normal deletion protection or required operator-owned infrastructure can be removed.
  • Exact downstream harm depends on the cluster population, labels, and later deletion or workload behavior.
  • Reverting prevents future unscoped mutations and deletions, but it does not restore removed finalizers or deleted cluster-scoped resources.
  • Recovery requires identifying affected objects, restoring metadata, and recreating or reconstructing deleted resources; external or workload effects may require separate repair.
Sources

.ci/pipelines/lib/operators.sh[59-66]

  kubectl get csv --all-namespaces \
    -o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{"\n"}{end}' 2> /dev/null \
    | while read -r ns name; do
      kubectl patch csv "${name}" --namespace="${ns}" --type=merge -p '{"metadata":{"finalizers":null}}'
    done
  # The cluster-scoped resources that finalizer deletes for its CSV.
  kubectl delete clusterrole,clusterrolebinding,mutatingwebhookconfiguration,validatingwebhookconfiguration \
    -l olm.owner.kind=ClusterServiceVersion --ignore-not-found || return 1
Assessed commit ef8a73f
Diagram

graph TD
  A["GKE job script"] --> B[("Lease rhdh-ci-gke-lock")] --> C["Shared GKE cluster"]
  A --> D["OLM 0.28.0 install"] --> C
  A --> E["Cleanup trap"] --> F["Delete Keycloak and RHDH operator"]
  E --> B
  C --> G["Playwright PortForwardSession"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Prow/Boskos resource leasing in openshift/release
  • ➕ Enforced by the CI orchestrator, so jobs cannot skip the lock
  • ➕ Central visibility of resource holders and queue
  • ➖ Requires changes outside this repo and a pool of resources
  • ➖ Slower to ship for the current nightly failures
2. Ephemeral per-job GKE clusters
  • ➕ Removes contention and stale-state issues entirely
  • ➕ No lock or OLM reuse logic needed
  • ➖ Much higher cost and provisioning time per run
  • ➖ Large change to the GKE pipeline

Recommendation: Serialising on a Kubernetes Lease is a reasonable fit for a single shared cluster and needs no new infrastructure. Prow or Boskos-style resource leasing at the openshift/release level would centralise the same guarantee for all jobs, and per-job ephemeral clusters would remove the contention entirely. The Lease approach is pragmatic and is what this PR uses, but it depends on every job honouring the lock, so the companion cron change is needed for scheduled runs.

Files changed (6) +268 / -17

Enhancement (3) +129 / -3
gcloud.shAdd Lease-based cluster lock and non-fatal cleanup +123/-3

Add Lease-based cluster lock and non-fatal cleanup

• Adds gke::acquire_lock, which creates a Lease in default, waits up to 60 minutes, and takes over a lock older than 2.5 hours. gke::release_lock frees the lease if the job holds it. cleanup_gke no longer uninstalls OLM and logs warnings instead of aborting.

.ci/pipelines/cluster/gke/gcloud.sh

gke-helm.shAcquire cluster lock before Helm GKE deployment +3/-0

Acquire cluster lock before Helm GKE deployment

• Calls gke::acquire_lock after kubectl login and returns early if the lock cannot be obtained, so the job does not touch the shared cluster unguarded.

.ci/pipelines/jobs/gke-helm.sh

gke-operator.shAcquire cluster lock before operator GKE deployment +3/-0

Acquire cluster lock before operator GKE deployment

• Adds the same gke::acquire_lock call after kubectl login as the Helm job, guarding the operator deployment path.

.ci/pipelines/jobs/gke-operator.sh

Bug fix (2) +136 / -14
operators.shMake OLM install and uninstall resilient to partial state +110/-12

Make OLM install and uninstall resilient to partial state

• Detects OLM through the packageserver CSV instead of operator-sdk status. Pins OLM 0.28.0, retries install and uninstall, and force-removes partial OLM resources by name before reinstalling. Force removal relies on hard-coded namespace, role, and CRD names that must stay in sync with the OLM manifest.

.ci/pipelines/lib/operators.sh

port-forward.tsKill port-forward process group on session stop +26/-2

Kill port-forward process group on session stop

• Spawns the shell as a detached process group on non-Windows platforms and signals the whole group with SIGTERM and SIGKILL. This stops the kubectl port-forward child so retries no longer hit address already in use on port 16379.

e2e-tests/playwright/utils/port-forward.ts

Other (1) +3 / -0
app-config-rhdh.yamlRestore techdocs cache TTL in CI app config +3/-0

Restore techdocs cache TTL in CI app config

• Sets techdocs.cache.ttl to 3600000 ms (1 hour) so the Redis cache test no longer races the 5 second CachedEntityLoader entry expiry.

.ci/pipelines/resources/config_map/app-config-rhdh.yaml

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test ?

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.41%. Comparing base (dcfe9cb) to head (2a4c8f6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5982      +/-   ##
==========================================
- Coverage   82.04%   78.41%   -3.64%     
==========================================
  Files          71       64       -7     
  Lines         908      755     -153     
  Branches      139      122      -17     
==========================================
- Hits          745      592     -153     
  Misses        162      162              
  Partials        1        1              
Flag Coverage Δ *Carryforward flag
rhdh 75.57% <ø> (-4.20%) ⬇️
rhdh-e2e-frontend 69.33% <ø> (ø) Carriedforward from dcfe9cb

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
Backend plugins ∅ <ø> (∅)
Backend app 88.03% <ø> (ø)
Frontend app 66.46% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcfe9cb...2a4c8f6. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gke-helm-nightly

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gke-operator-nightly

@rhdh-qodo-merge

rhdh-qodo-merge Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Code Review by Qodo


Action required

1. Other operators lose cluster permissions 🐞 Bug ⭐ New
Description
operator::uninstall_olm deletes cluster roles, bindings, and webhook configurations using only
olm.owner.kind=ClusterServiceVersion, which matches resources belonging to any OLM-managed
operator. If OLM needs repair while another operator remains installed on the long-lived cluster,
the automatic reinstall path removes that operator’s permissions and webhooks as well as the
intended cleanup targets.
Code

.ci/pipelines/lib/operators.sh[R65-66]

+  kubectl delete clusterrole,clusterrolebinding,mutatingwebhookconfiguration,validatingwebhookconfiguration \
+    -l olm.owner.kind=ClusterServiceVersion --ignore-not-found || return 1
Relevance

●● Moderate

No close precedent for OLM or broad kubectl label-selector deletes; the scoping fix is plausible but
semantic, so uncertain.

PR-#4542

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new selector checks owner kind but not the olm.owner name or olm.owner.namespace labels that
identify a particular CSV. Any failed health check enters this deletion through
operator::install_olm and operator::reinstall_olm; the GKE cleanup already uses the narrower
owner-namespace label for RHDH RBAC on this long-lived cluster.

.ci/pipelines/lib/operators.sh[64-87]
.ci/pipelines/cluster/gke/gcloud.sh[40-49]
🌐 OLM's owner labels separately record the CSV's kind, name, and namespace; checking only kind does not identify a particular operator.

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The OLM repair path deletes CSV-owned cluster resources across the entire shared cluster, including resources of operators unrelated to the CI installation.

## Fix Focus Areas
- .ci/pipelines/lib/operators.sh[64-66]

## Recommended Fix
Restrict deletion to resources owned by the intended operator CSVs, using their owner name and namespace labels. If a full OLM reset cannot preserve other installed operators, detect them and stop the repair with an explicit error rather than deleting their cluster permissions and webhooks.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (1)
Remediation recommended
2. A forwarded port can survive teardown 🐞 Bug
Description
stop() directs its new signals at the process group but decides whether to send SIGKILL solely
from the tracked shell's exit state. If the shell exits after SIGTERM while a forwarding
descendant remains alive, the method clears its timer and returns without force-killing that
descendant.
Code

e2e-tests/playwright/utils/port-forward.ts[R156-157]

      if (child.exitCode === null && child.signalCode === null) {
-        child.kill("SIGKILL");
+        this.signal(child, "SIGKILL");
Relevance

●● Moderate

Valid process-group teardown gap, but no historical precedent for port-forward or Playwright process
handling.

PR-#5641

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Shell-based callers launch port-forward commands, but escalation and completion are both keyed to
the shell's state rather than the process group's state.

e2e-tests/playwright/utils/port-forward.ts[125-163]
e2e-tests/playwright/e2e/verify-redis-cache.spec.ts[19-35]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The group-kill timeout is cancelled when the shell exits even if a port-forward descendant survives its termination signal.
## Fix Focus Areas
- e2e-tests/playwright/utils/port-forward.ts[125-163]
## Recommended Fix
Keep the process-group escalation independent of the shell leader's exit, check whether the group still exists after the grace period, and force-kill surviving members before reporting teardown complete.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@zdrapela
zdrapela force-pushed the rhdh-gke-cluster-lock branch from 2a4c8f6 to 80b1c58 Compare December 4, 2026 14:13
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

@zdrapela zdrapela changed the title fix(ci): serialise GKE jobs and stop OLM from wedging the shared cluster fix(ci): repair OLM on the shared GKE cluster and keep it installed Dec 4, 2026
@zdrapela
zdrapela force-pushed the rhdh-gke-cluster-lock branch from 80b1c58 to c51a859 Compare December 4, 2026 14:27
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gke-operator-nightly

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

The GKE nightlies share one long-lived cluster and its cluster-scoped OLM
installation. A cleanup that failed after a partial uninstall left OLM
unusable, and every Operator job then failed on "detected existing OLM
resources" until the cluster was repaired by hand.

- Detect OLM from its deployments instead of `operator-sdk olm status`,
  which fetches the release manifests and fails on a partial installation.
- Remove OLM by name in OLM's documented uninstall order before installing,
  and retry, so a partial installation repairs itself instead of failing
  the job forever.
- Keep OLM installed on the long-lived cluster; cleanup now removes the
  RHDH CatalogSource and the OLM-owned RBAC of the deleted operator
  namespace and logs failures instead of aborting the rest of the trap.
- Restore `techdocs.cache.ttl`: TechDocs only creates its cache when that
  key is set, so without it no `techdocs` keys reach Redis and the cache
  test cannot pass (RHDHBUGS-3762).
- Log the Redis DBSIZE and techdocs keys in that test, and `exec` its
  port-forward so stopping the session also stops `kubectl`; Playwright
  retries used to fail with "address already in use".

Jira: https://redhat.atlassian.net/browse/RHDHBUGS-4181
Assisted-by: OpenCode
@zdrapela
zdrapela force-pushed the rhdh-gke-cluster-lock branch from 0534e4c to 65b3a9a Compare December 4, 2026 14:34
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gke-operator-nightly

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/agentic_review

Comment thread .ci/pipelines/lib/operators.sh Resolved
OLM 0.28 puts the operators.coreos.com/csv-cleanup finalizer on every
CSV and only olm-operator removes it. The repair stops olm-operator
first, so deleting the CSV CRD left it Terminating, the delete timed out
and every retry failed on the same stuck CRD.

Also drop the claim that the removal follows OLM's documented order:
upstream deletes the CSVs while olm-operator is still running.

Assisted-by: OpenCode
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

`operator-sdk olm uninstall`, which the release branches still run on the
shared GKE cluster, deletes the CRDs before the deployments. An
interrupted uninstall left the deployments Available without the APIs,
so the health check skipped the repair. It now also requires the core
OLM CRDs and the packages APIService.

Stripping the csv-cleanup finalizer skipped what it does: delete the
ClusterRoles, ClusterRoleBindings and webhook configurations OLM created
for the CSV. Delete them by their owner label instead of orphaning them.

Assisted-by: OpenCode
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build and publish workflows were skipped (either due to [skip-build] tag or no relevant changes with existing image).

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gke-operator-nightly

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-ocp-helm

@openshift-ci

openshift-ci Bot commented Dec 4, 2026

Copy link
Copy Markdown

@zdrapela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gke-operator-nightly ef8a73f link false /test e2e-gke-operator-nightly

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

try to comment to unstuck tide

@zdrapela

zdrapela commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

tide

@openshift-merge-bot
openshift-merge-bot Bot merged commit a7ed6a4 into redhat-developer:main Dec 4, 2026
17 of 18 checks passed
zdrapela added a commit to zdrapela/rhdh that referenced this pull request Dec 4, 2026
All GKE jobs share the fixed IP `rhdh-static-ip`, and GCE hands it to one
Ingress at a time. An interrupted job leaves its Ingress behind, which keeps
serving gke-ci.janus-idp.io, so the next job's first test suite runs against a
stale instance. That is what happened when the GKE operator presubmit of
redhat-developer#5982 tested `showcase`, not `showcase-rbac`.

The Helm job already deletes the RBAC namespace before its first deployment;
do the same in the operator job. A namespace delete waits for the old load
balancer to release the IP, so the new Ingress can take it.

Add `wait_for_gke_ingress_ip` after the four places that create an Ingress
and fail the job with the addresses it found if its own Ingress never gets
the IP, so this class of stale state no longer hides behind unrelated test
failures. A failed `kubectl get` during the wait is retried instead of ending
the job under `errexit`.

Assisted-by: OpenCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants