Git
Use a gitProtocol check to verify repository access with Git credentials.
git-protocol-check.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: git-pull-push
spec:
gitProtocol:
- name: git-pull-push
username:
valueFrom:
secretKeyRef:
key: username
name: gitea
password:
valueFrom:
secretKeyRef:
key: password
name: gitea
repository: http://gitea-http.gitea:3000/gitea_admin/test_repo.git
schedule: "@every 5m"
| Field | Description | Scheme |
|---|---|---|
name* | Name of the check, must be unique within the canary |
|
password* | Password or token for repository authentication | |
repository* | Git repository URL |
|
username* | Username for repository authentication | |
filename | Optional file name used by the check |
|
description | Description for the check |
|
display | Expression to change the formatting of the display | |
icon | Icon for overwriting default icon on the dashboard | |
labels | Labels for check |
|
markFailOnEmpty | If a transformation or datasource returns empty results, the check should fail |
|
metrics | Metrics to export from | |
test | Evaluate whether a check is healthy | |
transform | Transform data from a check into multiple individual checks |