The manifest has namespace: default hardcoded, so your -n argocd flag was ignored. Let's find where it actually is:
# Find all cased-cd deployments across all namespaces
kubectl get deployments -A | grep cased-cdThis will show you which namespace it's in and the exact deployment name.
Then update the command with the correct namespace. For example, if it shows:
argocd cased-cd-enterprise 1/1 1 1 5m
Then use:
kubectl set env deployment/cased-cd-enterprise \
ARGOCD_SERVER=http://argocd-server.argocd.svc.cluster.local \
-n argocdOr if it shows:
default cased-cd-enterprise 1/1 1 1 5m
Then use:
kubectl set env deployment/cased-cd-enterprise \
ARGOCD_SERVER=http://argocd-server.argocd.svc.cluster.local \
-n default