Skip to content

spiro-redhat/gitops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

When ArgoCD is installed in OpenShift GitOps

oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller

When a namespace will not delete.

  1. Export the Namespace to an env var:
export NAMESPACE=problem-namespace 
  1. check to see if it is stuck on a finalizer to finish
(oc proxy &
oc get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
)

kill the proxy

jobs 
kill %N

Where N=background task number

About

A practice of gitops principles using app of apps pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published