|
1 | | -# gitops-must-gather |
2 | | -A client tool for gathering GitOps Operator information in a OpenShift cluster. |
| 1 | +# GitOps Operator Must-Gather |
| 2 | +================= |
| 3 | + |
| 4 | +`GitOps must-gather` is a tool to gather information about the gitop-operator. It is built on top of [OpenShift must-gather](https://github.com/openshift/must-gather). |
| 5 | + |
| 6 | +### Usage |
| 7 | +```sh |
| 8 | +oc adm must-gather --image=quay.io/redhat-developer/gitops-must-gather:latest |
| 9 | +``` |
| 10 | + |
| 11 | +The command above will create a local directory with a dump of the OpenShift GitOps state. Note that this command will only get data related to the GitOps Operator in your OpenShift cluster. |
| 12 | + |
| 13 | +You will get a dump of: |
| 14 | +- Information for the subscription of the gitops-operator |
| 15 | +- The GitOps Operator namespace (and its children objects) |
| 16 | +- All namespaces where ArgoCD objects exist in, plus all objects in those namespaces, such as ArgoCD, Applications, ApplicationSets, and AppProjects, and configmaps |
| 17 | + - No secrets will be collected |
| 18 | +- A list of list of the namespaces that are managed by gitops-operator identified namespaces and resources from those namespaces. |
| 19 | +- All GitOps CRD's objects and definitions |
| 20 | +- Operator logs |
| 21 | +- Logs of Argo CD |
| 22 | +- Warning and error-level Events |
| 23 | + |
| 24 | +In order to get data about other parts of the cluster (not specific to gitops-operator) you should run just `oc adm must-gather` (without passing a custom image). Run `oc adm must-gather -h` to see more options. |
| 25 | + |
| 26 | +An example of the GitOps must-gather output would be something like the following, where there are two argocd instances in namespaces `openshift-gitops` and `foo` and an additional namespace called `foo-managed` which is managed by namespace `foo`: |
| 27 | +``` |
| 28 | +cluster-gitops |
| 29 | + └── gitops |
| 30 | + ├── appprojects.yaml |
| 31 | + ├── crds.yaml |
| 32 | + ├── namespace_openshift-gitops_resources |
| 33 | + │ ├── application_controller_logs.txt |
| 34 | + │ ├── applications |
| 35 | + │ ├── applicationsets |
| 36 | + │ ├── argocd.yaml |
| 37 | + │ ├── deployments |
| 38 | + │ │ ├── cluster.yaml |
| 39 | + │ │ └── kam.yaml |
| 40 | + │ ├── dex-server_logs.txt |
| 41 | + │ ├── error-events.txt |
| 42 | + │ ├── pods |
| 43 | + │ │ ├── cluster-5db4b95547-rdz2m.yaml |
| 44 | + │ │ └── kam-fff7f474f-d27c8.yaml |
| 45 | + │ ├── redis_logs.txt |
| 46 | + │ ├── replicasets |
| 47 | + │ │ ├── cluster-5db4b95547.yaml |
| 48 | + │ │ └── kam-fff7f474f.yaml |
| 49 | + │ ├── repo-server_logs.txt |
| 50 | + │ ├── routes |
| 51 | + │ │ └── kam.yaml |
| 52 | + │ ├── server_logs.txt |
| 53 | + │ ├── services |
| 54 | + │ │ ├── cluster.yaml |
| 55 | + │ │ └── kam.yaml |
| 56 | + │ ├── statefulsets |
| 57 | + │ └── warning-events.txt |
| 58 | + ├── namespace_foo_resources |
| 59 | + │ ├── application_controller_logs.txt |
| 60 | + │ ├── applications |
| 61 | + │ │ └── guestbook.yaml |
| 62 | + │ ├── applicationsets |
| 63 | + │ │ └── guestbook.yaml |
| 64 | + │ ├── argocd.yaml |
| 65 | + │ ├── deployments |
| 66 | + │ ├── dex-server_logs.txt |
| 67 | + │ ├── error-events.txt |
| 68 | + │ ├── managedNamespace_foo-managed |
| 69 | + │ │ ├── deployments |
| 70 | + │ │ ├── pods |
| 71 | + │ │ ├── replicasets |
| 72 | + │ │ ├── routes |
| 73 | + │ │ ├── services |
| 74 | + │ │ └── statefulsets |
| 75 | + │ ├── pods |
| 76 | + │ ├── redis_logs.txt |
| 77 | + │ ├── replicasets |
| 78 | + │ ├── repo-server_logs.txt |
| 79 | + │ ├── routes |
| 80 | + │ ├── server_logs.txt |
| 81 | + │ ├── services |
| 82 | + │ ├── statefulsets |
| 83 | + │ └── warning-events.txt |
| 84 | + ├── oc-version.txt |
| 85 | + └── subscription.yaml |
| 86 | +``` |
0 commit comments