Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/e2e/framework/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ func WithSecurityContext(sc *corev1.SecurityContext) MCPServerOption {
}
}

// WithReplicas sets the number of pod replicas.
func WithReplicas(n int32) MCPServerOption {
return func(s *mcpv1alpha1.MCPServer) {
s.Spec.Runtime.Replicas = &n
}
}

// NewMCPServer creates an MCPServer with sensible defaults for e2e tests.
// Defaults: image=quay.io/matzew/mcp-everything:latest, port=3001.
func NewMCPServer(name, namespace string, opts ...MCPServerOption) *mcpv1alpha1.MCPServer {
Expand Down
Loading