GCP
| Field | Description | Scheme | 
|---|---|---|
connection | The connection url to use, mutually exclusive with   | |
credentials | The credentials to use for authentication  | |
endpoint | Custom GCP Endpoint to use  | string  | 
skipTLSVerify | Skip TLS verification when connecting to GCP  | bool  | 
There are 3 options when connecting to GCP:
1GKE Workload IdentityGKE workload identity (the default if no connection or credentials is specified)
Example
This example demonstrates how to configure a GCP connection using a YAML file.
gcp-connection-example.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: example-gcp-connection
spec:
  interval: 60
  folder:
    - name: gcs auth test
      path: gcs://example-bucket
      gcpConnection:
        connection: connection://gcp/example
This example:
- Configures a GCP connection to a bucket named 
example-bucket. - Uses the 
connection://gcp/exampleconnection string. - Sets the interval to 60 seconds.
 
gcs-connection.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: /guide/canary-checker/reference/database-backup-check
spec:
  interval: 60
  folder:
    - name: gcs auth test
      path: gcs://somegcsbucket
      gcpConnection:
        connection: connection://gcp/internal
gcp-inline.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: /guide/canary-checker/reference/database-backup-check
spec:
  interval: 60
  folder:
    - name: gcs auth test
      path: gcs://somegcsbucket
      gcpConnection:
        credentials:
          valueFrom:
            secretKeyRef:
              name: gcp-credentials
              key: AUTH_ACCESS_TOKEN