Skip to content

Commit

Permalink
Update default and kurl support bundles specs (#4824)
Browse files Browse the repository at this point in the history
* update default and kurl support bundles specs

* using spec from branch to see if it passes tests

* reverting branch change in spec and fixing indentation

* ensure all analyzers have ignoreIfNoFiles set to true
  • Loading branch information
diamonwiggins authored Aug 14, 2024
1 parent 3c2f936 commit e6c647d
Show file tree
Hide file tree
Showing 2 changed files with 351 additions and 55 deletions.
30 changes: 1 addition & 29 deletions pkg/supportbundle/staticspecs/defaultspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ spec:
name: kots/admin_console
selector:
- app=kotsadm
- logs:
collectorName: kurl-proxy-kotsadm
name: kots/admin_console
selector:
- app=kurl-proxy-kotsadm
- logs:
collectorName: kotsadm-dex
name: kots/admin_console
Expand All @@ -79,12 +74,6 @@ spec:
name: kotsadm-replicated-registry # NOTE: this will not live under the kots/ directory like other collectors
includeValue: false
key: .dockerconfigjson
- logs:
collectorName: kube-flannel
selector:
- app=flannel
namespace: kube-flannel
name: kots/kurl/flannel
- exec:
args:
- "http://goldpinger.kurl.svc.cluster.local:80/check_all"
Expand All @@ -97,7 +86,6 @@ spec:
- app=kotsadm
timeout: 10s
- nodeMetrics: {}

analyzers:
- clusterVersion:
outcomes:
Expand All @@ -122,18 +110,6 @@ spec:
- deploymentStatus: {}
- jobStatus: {}
- replicasetStatus: {}
- textAnalyze:
checkName: Inter-pod Networking
exclude: ""
ignoreIfNoFiles: true
fileName: kots/goldpinger/*/kotsadm-*/goldpinger-statistics-stdout.txt
outcomes:
- fail:
when: "OK = false"
message: Some nodes have pod communication issues
- pass:
message: Goldpinger can communicate properly
regexGroups: '"OK": ?(?P<OK>\w+)'
- nodeResources:
checkName: Node status check
outcomes:
Expand All @@ -145,10 +121,6 @@ spec:
message: "Not all nodes are online."
- pass:
message: "All nodes are online."
- clusterPodStatuses:
checkName: contour pods unhealthy
namespaces:
- projectcontour
outcomes:
- fail:
when: "!= Healthy" # Catch all unhealthy pods. A pod is considered healthy if it has a status of Completed, or Running and all of its containers are ready.
Expand All @@ -174,4 +146,4 @@ spec:
when: "pvcUsedPercentage >= 80%"
message: "kotsadm-minio PVC using more than 80% of storage"
- pass:
message: "kotsadm-minio PVC is using less than 80% of storage"
message: "kotsadm-minio PVC is using less than 80% of storage"
Loading

0 comments on commit e6c647d

Please sign in to comment.