Skip to content

Commit f9e0af3

Browse files
swghoshclaude
andcommitted
boilerplate: Add plan_mustgather evals
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent abc6e42 commit f9e0af3

7 files changed

Lines changed: 147 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-audit-logs
6+
difficulty: easy
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "gather_audit_logs"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with the gather_command set to "/usr/bin/gather_audit_logs" to plan collecting audit logs from my OpenShift cluster.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-custom-images
6+
difficulty: medium
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "ose-must-gather"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with images set to "registry.redhat.io/openshift4/ose-must-gather:v4.15,registry.redhat.io/openshift-logging/cluster-logging-rhel9-operator:latest" to plan a must-gather using custom images for both the platform and logging operator.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-custom-namespace
6+
difficulty: easy
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "my-debug-namespace"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with the namespace set to "my-debug-namespace" to plan a must-gather collection.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-default
6+
difficulty: easy
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "must-gather"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with default parameters to generate a must-gather collection plan for my OpenShift cluster.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-host-network
6+
difficulty: easy
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "hostNetwork"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with host_network set to "true" and keep_resources set to "true" to plan a must-gather that uses host networking and keeps pod resources after collection.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-node-selector
6+
difficulty: medium
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "node-role.kubernetes.io/worker"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with a node_selector of "node-role.kubernetes.io/worker=true" to plan a must-gather that runs only on worker nodes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: Task
2+
metadata:
3+
labels:
4+
suite: openshift
5+
name: plan-mustgather-timeout-since
6+
difficulty: medium
7+
steps:
8+
setup:
9+
inline: |-
10+
#!/usr/bin/env bash
11+
set -euo pipefail
12+
# No setup needed - plan_mustgather is a prompt that generates a plan
13+
verify:
14+
contains: "timeout"
15+
cleanup:
16+
inline: |-
17+
#!/usr/bin/env bash
18+
set -euo pipefail
19+
# No cleanup needed - plan_mustgather only generates a plan without applying
20+
prompt:
21+
inline: Use the plan_mustgather prompt with a timeout of "30m" and since set to "2h" to plan a must-gather that only collects data from the last 2 hours and times out after 30 minutes.

0 commit comments

Comments
 (0)