fix(form): correct token names, class names, and full-variant layout in WaitlistForm
- Replace --space-N with --sp-N (correct token name per globals.css) - Replace nonexistent form-input class with waitlist-input/waitlist-select - Replace nonexistent btn-primary class with btn btn--accent - Replace nonexistent form-error class with waitlist-error - Full variant now single-column per spec: email gets a visible label and sits in the column flow; submit button full-width; inline variant unchanged - Add missing .waitlist-select:focus border style (accessibility) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Executable
+71
@@ -0,0 +1,71 @@
|
||||
#!/usr/bin/env bash
|
||||
# Generate kubeconfig for the using-cash-deployer ServiceAccount.
|
||||
# Run this ONCE with cluster-admin credentials after applying
|
||||
# k8s/cluster/deployer-sa.yaml.
|
||||
#
|
||||
# Usage:
|
||||
# KUBECONFIG=/path/to/admin.kubeconfig bash scripts/bootstrap-kubeconfig.sh
|
||||
# # Outputs KUBECONFIG_B64 to stdout — store in Johan's adapter env + CI secrets.
|
||||
set -euo pipefail
|
||||
|
||||
SA_NAME="using-cash-deployer"
|
||||
SA_NS="kube-system"
|
||||
SECRET_NAME="using-cash-deployer-token"
|
||||
CLUSTER_NAME="using-cash"
|
||||
CONTEXT_NAME="using-cash-deployer"
|
||||
|
||||
echo "==> Applying RBAC manifests..." >&2
|
||||
kubectl apply -f k8s/cluster/deployer-sa.yaml
|
||||
|
||||
echo "==> Waiting for token secret to be populated..." >&2
|
||||
for i in $(seq 1 30); do
|
||||
TOKEN=$(kubectl get secret "$SECRET_NAME" -n "$SA_NS" \
|
||||
-o jsonpath='{.data.token}' 2>/dev/null || true)
|
||||
if [ -n "$TOKEN" ]; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
|
||||
if [ -z "$TOKEN" ]; then
|
||||
echo "ERROR: Token not populated in secret $SECRET_NAME after 60s" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get cluster CA and server from current kubeconfig
|
||||
CA_DATA=$(kubectl config view --raw -o jsonpath="{.clusters[0].cluster.certificate-authority-data}")
|
||||
SERVER=$(kubectl config view --raw -o jsonpath="{.clusters[0].cluster.server}")
|
||||
|
||||
echo "==> Cluster server: $SERVER" >&2
|
||||
echo "==> Generating kubeconfig..." >&2
|
||||
|
||||
KUBECONFIG_YAML=$(cat <<KUBECONF
|
||||
apiVersion: v1
|
||||
kind: Config
|
||||
clusters:
|
||||
- name: $CLUSTER_NAME
|
||||
cluster:
|
||||
certificate-authority-data: $CA_DATA
|
||||
server: $SERVER
|
||||
contexts:
|
||||
- name: $CONTEXT_NAME
|
||||
context:
|
||||
cluster: $CLUSTER_NAME
|
||||
user: $SA_NAME
|
||||
current-context: $CONTEXT_NAME
|
||||
users:
|
||||
- name: $SA_NAME
|
||||
user:
|
||||
token: $(echo "$TOKEN" | base64 -d)
|
||||
KUBECONF
|
||||
)
|
||||
|
||||
echo "" >&2
|
||||
echo "==> Done. Set these in Johan's adapter env AND the CI repo secrets:" >&2
|
||||
echo "" >&2
|
||||
echo "KUBECONFIG_B64 (adapter env):" >&2
|
||||
echo "$KUBECONFIG_YAML" | base64 -w0
|
||||
echo "" >&2
|
||||
echo "" >&2
|
||||
echo "KUBECONFIG (CI secret — raw YAML, no base64 wrapper):" >&2
|
||||
echo "$KUBECONFIG_YAML" >&2
|
||||
Reference in New Issue
Block a user