Skip to content

Commit

Permalink
Provide example with cluster trigger authentication for GCP (kedacore…
Browse files Browse the repository at this point in the history
…#603)

Co-authored-by: Daniel <[email protected]>
  • Loading branch information
dheras-lmes and Daniel authored Dec 1, 2021
1 parent c1fd0a6 commit 7068a28
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions content/docs/2.5/scalers/gcp-pub-sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,30 @@ spec:
metadata:
subscriptionName: "input" # Required
```

## Example using ClusterTriggerAuthentication with GCP Identity

```yaml
apiVersion: keda.sh/v1alpha1
kind: ClusterTriggerAuthentication
metadata:
name: keda-clustertrigger-auth-gcp-credentials
spec:
podIdentity:
provider: gcp
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: pubsub-scaledobject
spec:
scaleTargetRef:
name: keda-pubsub-go
triggers:
- type: gcp-pubsub
authenticationRef:
name: keda-clustertrigger-auth-gcp-credentials
kind: ClusterTriggerAuthentication
metadata:
subscriptionName: "input" # Required
```
27 changes: 27 additions & 0 deletions content/docs/2.6/scalers/gcp-pub-sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,30 @@ spec:
metadata:
subscriptionName: "input" # Required
```

## Example using ClusterTriggerAuthentication with GCP Identity

```yaml
apiVersion: keda.sh/v1alpha1
kind: ClusterTriggerAuthentication
metadata:
name: keda-clustertrigger-auth-gcp-credentials
spec:
podIdentity:
provider: gcp
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: pubsub-scaledobject
spec:
scaleTargetRef:
name: keda-pubsub-go
triggers:
- type: gcp-pubsub
authenticationRef:
name: keda-clustertrigger-auth-gcp-credentials
kind: ClusterTriggerAuthentication
metadata:
subscriptionName: "input" # Required
```

0 comments on commit 7068a28

Please sign in to comment.