Skip to content

Commit

Permalink
Merge pull request #1572 from amolkharche13/patch-7
Browse files Browse the repository at this point in the history
Added PV and PVC output
  • Loading branch information
deontaljaard authored Feb 24, 2025
2 parents 333dd6d + 9e0df5a commit 6ce3d15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/suse-observability_logs_collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ collect_yaml_configs() {
kubectl -n "$NAMESPACE" get configmaps -o yaml > "$OUTPUT_DIR/yaml/configmaps.yaml"
# Cronjob YAMLs
kubectl -n "$NAMESPACE" get cronjob -o yaml > "$OUTPUT_DIR/yaml/cronjob.yaml"

# PV,PVC YAML
kubectl -n "$NAMESPACE" get pv,pvc -o yaml > "$OUTPUT_DIR/yaml/pv-pvc.yaml"
}

# Function to collect pod logs
Expand Down Expand Up @@ -100,6 +101,9 @@ kubectl -n "$NAMESPACE" get secrets -o wide > "$OUTPUT_DIR/secrets"
techo "Collecting cronjob information..."
kubectl -n "$NAMESPACE" get cronjob -o wide > "$OUTPUT_DIR/cronjob"

techo "Collecting PV and PVC information"
kubectl -n "$NAMESPACE" get pv,pvc -o wide > "$OUTPUT_DIR/pv-pvc"

techo "Collecting events in $NAMESPACE ..."
kubectl -n "$NAMESPACE" get events --sort-by='.metadata.creationTimestamp' > "$OUTPUT_DIR/events"

Expand Down

0 comments on commit 6ce3d15

Please sign in to comment.