Examples
These examples use realistic placeholders and avoid cluster-specific values.
Install and Verify
oc apply -k manifests/overlays/install
oc -n gitops-export-console rollout status deployment/gitops-export-console
oc wait --for=condition=complete job/gitops-export-console-install-patcher \
-n gitops-export-console --timeout=120s
Then refresh the console and open the GitOps Export tab from a Project or Namespace details page.
Export Workflow
Project or Namespace page
-> GitOps Export tab
-> Secret handling: redact
-> Resource kinds: defaults
-> Export
-> review include / cleanup / review / exclude classifications
-> Download ZIP
Expected archive shape:
gitops-export-my-app-20260506T140000Z.zip
├── README.md
├── WARNINGS.md
└── manifests/
├── include/
├── cleanup/
└── review/
Re-apply the Install Overlay
oc delete job/gitops-export-console-install-patcher -n gitops-export-console
oc apply -k manifests/overlays/install
oc -n gitops-export-console rollout status deployment/gitops-export-console
Use this when a recently completed patcher Job still exists and blocks a rapid re-apply.
Check Scan Permissions
- Common resources
- Sensitive / opt-in
oc auth can-i list deployments -n my-app
oc auth can-i list services -n my-app
oc auth can-i list configmaps -n my-app
oc auth can-i list routes.route.openshift.io -n my-app
oc auth can-i list secrets -n my-app
oc auth can-i list roles.rbac.authorization.k8s.io -n my-app
oc auth can-i list rolebindings.rbac.authorization.k8s.io -n my-app
oc auth can-i list serviceaccounts -n my-app
Connect Exported Manifests to Argo CD
For a private repository, create a repository secret:
oc create secret generic repo-my-app \
--from-literal=type=git \
--from-literal=url=https://github.com/example/my-app.git \
--from-literal=username=<token-username> \
--from-literal=password=<token> \
-n openshift-gitops
oc label secret repo-my-app \
argocd.argoproj.io/secret-type=repository \
-n openshift-gitops
After committing the exported manifests and generated Application YAML, apply the Application if your environment allows direct apply:
oc apply -f my-app-application.yaml
Example generated Application shape:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: openshift-gitops
spec:
project: default
source:
repoURL: https://github.com/example/my-app.git
targetRevision: main
path: manifests/overlays/install
destination:
server: https://kubernetes.default.svc
namespace: my-app
syncPolicy: {}