Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
actions:
- actionType: Refresh
```

:::note
Expand Down Expand Up @@ -126,9 +126,9 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
whenExpression: "request.header("X-Event-Type") == 'push'"
actions:
- actionType: Refresh
whenExpression: "request.header("X-Event-Type") == 'push'"
```

:::note
Expand Down Expand Up @@ -174,12 +174,12 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
name: my-warehouse
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
name: my-warehouse
```

The following example depicts `targetSelectionCriteria` that selects
Expand All @@ -198,12 +198,12 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
name: "${{ normalizeGit(request.body.repository.name) }}"
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
name: "${{ normalizeGit(request.body.repository.name) }}"
```

##### By Labels
Expand All @@ -223,14 +223,14 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
labelSelector:
matchLabels:
environment: prod
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
labelSelector:
matchLabels:
environment: prod
```

The following example depicts `targetSelectionCriteria` that selects
Expand All @@ -249,16 +249,16 @@ spec:
generic:
secretRef:
name: wh-secret
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
labelSelector:
matchExpressions:
- key: service
operator: In
values: ["ui", "api"]
actions:
- actionType: Refresh
whenExpression: "request.header('X-Event-Type') == 'push'"
targetSelectionCriteria:
- kind: Warehouse
labelSelector:
matchExpressions:
- key: service
operator: In
values: ["ui", "api"]
```

##### By Values in an Index
Expand Down