flux v0.31.2

GitRepository.spec.ref

Reference specifies the Git reference to resolve and monitor for changes, defaults to the 'master' branch.

4 fields
GitRepository.spec.ref fields and descriptions
Field / TypeDescription
branch
string

Branch to check out, defaults to 'master' if no other field is defined. When GitRepositorySpec.GitImplementation is set to 'go-git', a shallow clone of the specified branch is performed.

commit
string

Commit SHA to check out, takes precedence over all reference fields. When GitRepositorySpec.GitImplementation is set to 'go-git', this can be combined with Branch to shallow clone the branch, in which the commit is expected to exist.

semver
string

SemVer tag expression to check out, takes precedence over Tag.

tag
string

Tag to check out, takes precedence over Branch.