Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Jun 16, 2021
1 parent 63d961f commit bea9ff1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ To include the parameters from a Project named `Base` into all other projects, w
# Set the included_project in the root mapping
kubectl patch pm kubetruth-root --type json --patch '[{"op": "replace", "path": "/spec/included_projects", "value": ["Base"]}]'
# Either exclude the Base project from being matched in the root mapping:
kubectl patch pm kubetruth-root --type json --patch '[{"op": "replace", "path": "/spec/project_selector", "value": "^(?!Base)"}]'
# OR exclude the Base project by creating an override mapping that skips it:
# Exclude the Base project by creating an override mapping that skips it:
kubectl apply -f - <<EOF
apiVersion: kubetruth.cloudtruth.com/v1
kind: ProjectMapping
Expand All @@ -213,6 +210,7 @@ spec:
scope: override
project_selector: "^Base$"
skip: true
included_projects: []
EOF
```

Expand Down

0 comments on commit bea9ff1

Please sign in to comment.