Skip to content

Instantly share code, notes, and snippets.

@tnm
Created October 30, 2025 01:00
Show Gist options
  • Select an option

  • Save tnm/fdcf40f9a6a4c2a44cf642fa3c6c332b to your computer and use it in GitHub Desktop.

Select an option

Save tnm/fdcf40f9a6a4c2a44cf642fa3c6c332b to your computer and use it in GitHub Desktop.
Cased CD Enterprise - Namespace Fix for Josh Customer

Cased CD Enterprise - Fix for Josh Customer

Problem: Secret in wrong namespace

Your secret is in default namespace but needs to be in argocd namespace!

# You have this (wrong):
kubectl get secret cased-cd-registry -n default

# You need this (correct):
kubectl get secret cased-cd-registry -n argocd

Quick Fix

Step 1: Delete the secret from default namespace

kubectl delete secret cased-cd-registry -n default

Step 2: Create it in the argocd namespace

Try this kubectl command (all one line):

kubectl create secret docker-registry cased-cd-registry --docker-server=registry.cased.com --docker-username="Josh Customer" --docker-password="g8Nlw7kMhKTTTlbLsnUCrsWm3t8R4ZfFxWzXTLlVnC8" -n argocd

If that still fails with the "exactly one NAME is required" error, use the YAML approach:

Create registry-secret.yaml:

apiVersion: v1
kind: Secret
metadata:
  name: cased-cd-registry
  namespace: argocd
type: kubernetes.io/dockerconfigjson
data:
  .dockerconfigjson: eyJhdXRocyI6IHsicmVnaXN0cnkuY2FzZWQuY29tIjogeyJ1c2VybmFtZSI6ICJKb3NoIEN1c3RvbWVyIiwgInBhc3N3b3JkIjogImc4Tmx3N2tNaEtUVFRsYkxzblVDcnNXbTN0OFI0WmZGeFd6WFRMbFZuQzgiLCAiYXV0aCI6ICJTbTl6YUNCRGRYTjBiMjFsY2pwbk9FNXNkemRyVFdoTFZGUlViR0pNYzI1VlEzSnpWMjB6ZERoU05GcG1SbmhYZWxoVVRHeFdia000In19fQ==

Then apply:

kubectl apply -f registry-secret.yaml

Step 3: Verify it's in the right namespace now

kubectl get secret cased-cd-registry -n argocd

You should see:

NAME                TYPE                             DATA   AGE
cased-cd-registry   kubernetes.io/dockerconfigjson   1      5s

Step 4: Clean up any existing Cased CD installation

helm uninstall cased-cd -n argocd 2>/dev/null || echo "No existing installation found"

Step 5: Install Cased CD Enterprise

helm repo add cased https://cased.github.io/cased-cd
helm repo update
helm install cased-cd cased/cased-cd --namespace argocd --set enterprise.enabled=true --set enterprise.auditTrail.enabled=true --set enterprise.image.repository=registry.cased.com/cased/cased-cd-enterprise --set imagePullSecrets[0].name=cased-cd-registry

Step 6: Watch pods come up

kubectl get pods -n argocd -w

Wait for cased-cd-* pods to show Running and 1/1 ready. Press Ctrl+C when done.

Step 7: Access the UI

kubectl port-forward svc/cased-cd 8080:80 -n argocd

Then visit: http://localhost:8080


Key Point

Always use -n argocd for all commands! The secret, Helm install, and pods all need to be in the same namespace where ArgoCD is installed.


Token Details

  • Registry: registry.cased.com
  • Username: Josh Customer
  • Token: g8Nlw7kMhKTTTlbLsnUCrsWm3t8R4ZfFxWzXTLlVnC8
  • Expires: 2025-11-27

Support: support@cased.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment