Skip to content

Commit 18b28d9

Browse files
committed
deploy: remove the unused sam-hub-secret step
Nothing in the repository reads sam-hub-secret or its sam-hub-key; the control plane takes its credentials from agentmesh-control-plane-secret-*. The step only recreated an orphan secret on every deploy.
1 parent 3a4bc50 commit 18b28d9

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎.github/workflows/deploy.yaml‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -325,23 +325,6 @@ jobs:
325325
exit 1
326326
}
327327
328-
- name: Provision Hub Secrets
329-
env:
330-
VAR_ENV_NAME: ${{ vars.ENV_NAME }}
331-
run: |
332-
export ENV_NAME="${VAR_ENV_NAME}"
333-
export NAMESPACE="sam-${ENV_NAME}"
334-
# Idempotently provision the sam-hub-secret if it doesn't already exist
335-
if ! kubectl get secret sam-hub-secret -n ${NAMESPACE} >/dev/null 2>&1; then
336-
echo "Generating a new random 32-byte hex key for AGENTMESH_HUB_KEY..."
337-
HUB_KEY=$(openssl rand -hex 32)
338-
kubectl create secret generic sam-hub-secret \
339-
--namespace=${NAMESPACE} \
340-
--from-literal=sam-hub-key="${HUB_KEY}"
341-
else
342-
echo "sam-hub-secret already exists in namespace ${NAMESPACE}. Skipping generation."
343-
fi
344-
345328
- name: Provision Control Plane Secrets
346329
env:
347330
VAR_ENV_NAME: ${{ vars.ENV_NAME }}

0 commit comments

Comments
 (0)