Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: Ram Cohen <[email protected]>
  • Loading branch information
RamCohen and tomkerkhove committed Feb 21, 2022
1 parent d2785df commit b43dea8
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions content/docs/2.7/scalers/gcp-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
credentialsFromEnv: GOOGLE_APPLICATION_CREDENTIALS_JSON
```

### Using TriggerAuthentication
#### Use TriggerAuthentication with Kubernetes secret

```yaml
apiVersion: keda.sh/v1alpha1
Expand Down Expand Up @@ -94,7 +94,7 @@ spec:
targetObjectCount: "5"
```

### Example using TriggerAuthentication with GCP Identity
#### Use TriggerAuthentication with GCP Identity

```yaml
apiVersion: keda.sh/v1alpha1
Expand All @@ -119,32 +119,4 @@ spec:
metadata:
bucketName: "Transactions"
targetObjectCount: "5"
```

## 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: gcp-storage-scaledobject
spec:
scaleTargetRef:
name: keda-gcp-storage-go
triggers:
- type: gcp-storage
authenticationRef:
name: keda-clustertrigger-auth-gcp-credentials
kind: ClusterTriggerAuthentication
metadata:
bucketName: "Transactions"
targetObjectCount: "5"
```

0 comments on commit b43dea8

Please sign in to comment.