flux v2.0.1

GitRepository.spec

GitRepositorySpec defines the desired state of a Git repository.

12 fields
GitRepository.spec fields and descriptions
Field / TypeDescription
object

AccessFrom defines an Access Control List for allowing cross-namespace references to this object.

gitImplementation
string

Determines which git client library to use. Defaults to go-git, valid values are ('go-git', 'libgit2').

  • enum: ["go-git","libgit2"]
  • default: "go-git"
ignore
string

Ignore overrides the set of excluded patterns in the .sourceignore format (which is the same as .gitignore). If not provided, a default will be used, consult the documentation for your version to find out what those are.

object[]

Extra git repositories to map into the repository

interval
string required

The interval at which to check for repository updates.

recurseSubmodules
boolean

When enabled, after the clone is created, initializes all submodules within, using their default settings. This option is available only when using the 'go-git' GitImplementation.

object

The Git reference to checkout and monitor for changes, defaults to master branch.

object

The secret name containing the Git credentials. For HTTPS repositories the secret must contain username and password fields. For SSH repositories the secret must contain identity and known_hosts fields.

suspend
boolean

This flag tells the controller to suspend the reconciliation of this source.

timeout
string

The timeout for remote Git operations like cloning, defaults to 60s.

  • default: "60s"
url
string required

The repository URL, can be a HTTP/S or SSH address.

  • pattern: ^(http|https|ssh)://.*$
object

Verify OpenPGP signature for the Git commit HEAD points to.