You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"[3/5] Extracting Kubernetes events sorted by creation timestamp..."
56
+
kubectl get events --sort-by='.metadata.creationTimestamp' -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_events.log"
57
+
58
+
echo"[4/5] Extracting Custom Resources..."
59
+
kubectl get mariadb -o yaml -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_mariadbs.yaml"2>/dev/null ||echo" -> No MariaDB custom resources found."
60
+
kubectl get maxscale -o yaml -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_maxscales.yaml"2>/dev/null ||echo" -> No MaxScale custom resources found."
61
+
kubectl get backup -o yaml -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_backups.yaml"2>/dev/null ||echo" -> No Backup custom resources found."
62
+
kubectl get physicalbackup -o yaml -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_physicalbackups.yaml"2>/dev/null ||echo" -> No PhysicalBackup custom resources found."
63
+
kubectl get pitr -o yaml -n "$MARIADB_NAMESPACE">"${SUPPORT_DIR}/${MARIADB_NAMESPACE}_pitrs.yaml"2>/dev/null ||echo" -> No PointInTimeRecovery custom resources found."
64
+
65
+
echo"[5/5] Extracting Operator logs from '$OPERATOR_NAMESPACE'..."
66
+
kubectl get deployments -n "$OPERATOR_NAMESPACE"
67
+
read -p "Please enter the Deployment name for the MariaDB Enterprise Operator from the list above [mariadb-enterprise-operator]: " OPERATOR_DEPLOY_NAME
kubectl logs deployment/${OPERATOR_DEPLOY_NAME} -n "$OPERATOR_NAMESPACE">"${SUPPORT_DIR}/${OPERATOR_NAMESPACE}_operator.log"2>/dev/null ||echo" -> Operator deployment logs not found in $OPERATOR_NAMESPACE."
0 commit comments