Skip to content

HCP validation on remote cluster#125

Merged
mjiao merged 12 commits into
redhat-sap:mainfrom
mjiao:dedicated-ossm-pipeline-test
May 27, 2026
Merged

HCP validation on remote cluster#125
mjiao merged 12 commits into
redhat-sap:mainfrom
mjiao:dedicated-ossm-pipeline-test

Conversation

@mjiao
Copy link
Copy Markdown
Contributor

@mjiao mjiao commented May 22, 2026

No description provided.

mjiao added 2 commits May 22, 2026 18:54
@mjiao
Copy link
Copy Markdown
Contributor Author

mjiao commented May 22, 2026

/retest

@mjiao mjiao changed the title chore: use eic-cluster-kubeconfig for HCP validation on remote cluster HCP validation on remote cluster May 22, 2026
@mjiao
Copy link
Copy Markdown
Contributor Author

mjiao commented May 22, 2026

/retest

2 similar comments
@mjiao
Copy link
Copy Markdown
Contributor Author

mjiao commented May 22, 2026

/retest

@mjiao
Copy link
Copy Markdown
Contributor Author

mjiao commented May 26, 2026

/retest

mjiao added 7 commits May 26, 2026 13:59
…cluster

When hubKubeconfigSecretName is set, endpoint-tests, endpoint-tests-expected-status,
and rate-limit-test tasks execute curl from a temporary pod on the remote cluster
using oc run, so MetalLB IPs that are only routable on the remote network can be
reached. Both pipelines now pass hubKubeconfigSecretName to all test task invocations.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
…ub access

When hubKubeconfigSecretName is set, the wait-cluster-ready task creates a
passthrough Route for the hosted cluster's kube-apiserver on the remote hub,
rewrites the kubeconfig to use the Route hostname, and patches the Secret
so all downstream tasks get the rewritten version automatically.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
…m tasks

The HyperShift operator reconciles the admin-kubeconfig Secret back to the
original API server LB IP, so patching the Secret does not persist. Instead,
wait-cluster-ready now writes a rewrite helper script to the shared workspace,
and all 17 downstream tasks source it after extracting the hosted kubeconfig.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
When using a remote hub, tasks that create ConfigMaps or Secrets for
downstream pipeline tasks must use the in-cluster SA (pipeline cluster),
not the hub kubeconfig. Fixes get-all-accesses, validate-and-create-configmap,
and create-eic-route tasks.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
Add enable-monitoring to get-all-accesses runAfter and
verify-monitoring to fix-endpointslice runAfter so the monitoring
branch merges back into the main pipeline graph.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
The remote exec path installs oc but never creates the kubectl
symlink, so kubeconfig extraction via kubectl fails.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
The oc run commands inherit the pipeline pod's namespace context
which does not exist on the remote hub cluster.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
@mjiao
Copy link
Copy Markdown
Contributor Author

mjiao commented May 27, 2026

/retest

mjiao added 3 commits May 27, 2026 17:23
With multiple istio-ingressgateway pods behind load balancing,
6 parallel requests may not trigger the rate limit on any single pod.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
curl --write-out outputs body + status code together, so the
HTTP_STATUS variable contains JSON body followed by 429, causing
the integer comparison to fail with a syntax error.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
grep -oE '[0-9]{3}' matches any 3-digit substring including parts
of pod names and timestamps. Use grep -xE to match only lines that
are exactly a 3-digit HTTP status code.

Signed-off-by: mjiao <manjun.jiao@gmail.com>
@mjiao mjiao merged commit 6ca1460 into redhat-sap:main May 27, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant