Skip to main content

GCP

FieldDescriptionTypeRequired
connection Mutually exclusive with credentials4 Connections
endpointEndpointstring
credentialsCredentialsEnvVar to service account JSON

There are 3 options when connecting to GCP:

GKE Workload Identity

GKE workload identity (the default if no connection or credentials is specified)

Connection
gcs-connection.yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: database-backup-check
spec:
interval: 60
folder:
- name: gcs auth test
path: gcs://somegcsbucket
gcpConnection:
connection: connection://gcp/internal
Inline
gcp-inline.yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: 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