Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d5c812ab42 | |||
| 32d825e441 | |||
| c7920b5b8e | |||
| c99e235caa |
+2
-1
@@ -45,6 +45,7 @@
|
|||||||
"overrides": {
|
"overrides": {
|
||||||
"tar": "^7.5.11",
|
"tar": "^7.5.11",
|
||||||
"undici": "^7.24.3",
|
"undici": "^7.24.3",
|
||||||
"lodash": ">=4.18.0"
|
"lodash": ">=4.18.0",
|
||||||
|
"elliptic": ">=6.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
# Prerequisites:
|
# Prerequisites:
|
||||||
# - Plugin built (dist/ exists with plugin-main.js + package.json)
|
# - Plugin built (dist/ exists with plugin-main.js + package.json)
|
||||||
# - kubectl configured with cluster access
|
# - kubectl configured with cluster access
|
||||||
# - RBAC applied: kubectl apply -f deployment/e2e-ci-runner-rbac.yaml
|
# - RBAC applied: kubectl apply -f privilegedescalation/infra/base/rbac/e2e-ci-runner.yaml
|
||||||
#
|
#
|
||||||
# Environment:
|
# Environment:
|
||||||
# E2E_NAMESPACE — namespace for E2E Headlamp (default: headlamp-dev)
|
# E2E_NAMESPACE — namespace for E2E Headlamp (default: headlamp-dev)
|
||||||
@@ -35,7 +35,7 @@ fi
|
|||||||
echo "Checking RBAC permissions in namespace '${E2E_NAMESPACE}'..."
|
echo "Checking RBAC permissions in namespace '${E2E_NAMESPACE}'..."
|
||||||
if ! kubectl auth can-i delete configmaps -n "$E2E_NAMESPACE" --quiet 2>/dev/null; then
|
if ! kubectl auth can-i delete configmaps -n "$E2E_NAMESPACE" --quiet 2>/dev/null; then
|
||||||
echo "ERROR: Missing RBAC — cannot delete configmaps in namespace '${E2E_NAMESPACE}'." >&2
|
echo "ERROR: Missing RBAC — cannot delete configmaps in namespace '${E2E_NAMESPACE}'." >&2
|
||||||
echo " Apply RBAC first: kubectl apply -f deployment/e2e-ci-runner-rbac.yaml" >&2
|
echo " Apply RBAC first: kubectl apply -f privilegedescalation/infra/base/rbac/e2e-ci-runner.yaml" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -59,10 +59,15 @@ kubectl create configmap headlamp-intel-gpu-plugin \
|
|||||||
--from-file=package.json="$REPO_ROOT/package.json"
|
--from-file=package.json="$REPO_ROOT/package.json"
|
||||||
|
|
||||||
# --- Tear down any existing E2E deployment for a clean start ---
|
# --- Tear down any existing E2E deployment for a clean start ---
|
||||||
|
# Deleting the Deployment forces a fresh pod (new ReplicaSet) regardless of
|
||||||
|
# whether the pod spec changed. The ServiceAccount is also deleted for a clean
|
||||||
|
# token state. The Service is NOT deleted — leaving it in place avoids an
|
||||||
|
# Endpoints UID race (FailedToUpdateEndpoint) that causes DNS resolution
|
||||||
|
# failures. kubectl apply below upserts the Service in-place, and the new
|
||||||
|
# pod's IP is added to the existing Endpoints automatically.
|
||||||
echo ""
|
echo ""
|
||||||
echo "Removing any existing E2E deployment (clean-start)..."
|
echo "Removing any existing E2E deployment (clean-start)..."
|
||||||
kubectl delete deployment "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found --wait
|
kubectl delete deployment "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found --wait
|
||||||
kubectl delete service "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found --wait
|
|
||||||
kubectl delete serviceaccount "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found --wait
|
kubectl delete serviceaccount "${E2E_RELEASE}" -n "$E2E_NAMESPACE" --ignore-not-found --wait
|
||||||
|
|
||||||
# --- Deploy Headlamp via kubectl apply ---
|
# --- Deploy Headlamp via kubectl apply ---
|
||||||
|
|||||||
Reference in New Issue
Block a user