Add link to semver ranges

This commit is contained in:
stefanprodan 2020-04-12 14:27:36 +03:00
parent fee4c261c6
commit 44a5f21f3b
1 changed files with 16 additions and 3 deletions

View File

@ -82,7 +82,7 @@ const (
## Spec examples ## Spec examples
Pull the master of a public repository every minute: Pull the master branch of a public repository every minute:
```yaml ```yaml
apiVersion: source.fluxcd.io/v1alpha1 apiVersion: source.fluxcd.io/v1alpha1
@ -93,11 +93,24 @@ metadata:
annotations: annotations:
# on-demand sync trigger # on-demand sync trigger
source.fluxcd.io/syncAt: "2020-04-06T15:39:52+03:00" source.fluxcd.io/syncAt: "2020-04-06T15:39:52+03:00"
spec:
interval: 1m
url: https://github.com/stefanprodan/podinfo
```
Pull a specific branch:
```yaml
apiVersion: source.fluxcd.io/v1alpha1
kind: GitRepository
metadata:
name: podinfo
namespace: default
spec: spec:
interval: 1m interval: 1m
url: https://github.com/stefanprodan/podinfo url: https://github.com/stefanprodan/podinfo
ref: ref:
branch: master branch: v3.x
``` ```
Checkout a specific commit from a branch: Checkout a specific commit from a branch:
@ -131,7 +144,7 @@ spec:
tag: 3.2.0 tag: 3.2.0
``` ```
Pull tag based on semver expression: Pull tag based on a [semver range](https://github.com/blang/semver#ranges):
```yaml ```yaml
apiVersion: source.fluxcd.io/v1alpha1 apiVersion: source.fluxcd.io/v1alpha1