Skip to main content

Targeting Specific Playbooks

This example demonstrates how to create a Scope that targets specific playbooks by name within a namespace.

echo-playbooks.yaml
---
apiVersion: mission-control.flanksource.com/v1
kind: Scope
metadata:
name: echo-playbooks
namespace: mc
spec:
description: Echo playbooks in guest1-ns namespace
targets:
- playbook:
name: echo-secret-parameter
- playbook:
name: loki-logs

This Scope includes only the two named playbooks (echo-secret-parameter and loki-logs) in the guest1-ns namespace. Multiple targets are combined with OR logic, so the Scope matches if the playbook name matches either of the specified names.