Skip to content

Commit

Permalink
Merge pull request #724 from fluxcd/gitrepo-rec-fixes-2
Browse files Browse the repository at this point in the history
GitRepositoryReconciler no-op clone improvements
  • Loading branch information
darkowlzz authored May 24, 2022
2 parents 841ed7a + 581695b commit a901233
Show file tree
Hide file tree
Showing 18 changed files with 1,320 additions and 454 deletions.
12 changes: 12 additions & 0 deletions api/v1beta2/gitrepository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,18 @@ type GitRepositoryStatus struct {
// +optional
IncludedArtifacts []*Artifact `json:"includedArtifacts,omitempty"`

// ContentConfigChecksum is a checksum of all the configurations related to
// the content of the source artifact:
// - .spec.ignore
// - .spec.recurseSubmodules
// - .spec.included and the checksum of the included artifacts
// observed in .status.observedGeneration version of the object. This can
// be used to determine if the content of the included repository has
// changed.
// It has the format of `<algo>:<checksum>`, for example: `sha256:<checksum>`.
// +optional
ContentConfigChecksum string `json:"contentConfigChecksum,omitempty"`

meta.ReconcileRequestStatus `json:",inline"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,15 @@ spec:
- type
type: object
type: array
contentConfigChecksum:
description: 'ContentConfigChecksum is a checksum of all the configurations
related to the content of the source artifact: - .spec.ignore -
.spec.recurseSubmodules - .spec.included and the checksum of the
included artifacts observed in .status.observedGeneration version
of the object. This can be used to determine if the content of the
included repository has changed. It has the format of `<algo>:<checksum>`,
for example: `sha256:<checksum>`.'
type: string
includedArtifacts:
description: IncludedArtifacts contains a list of the last successfully
included Artifacts as instructed by GitRepositorySpec.Include.
Expand Down
447 changes: 307 additions & 140 deletions controllers/gitrepository_controller.go

Large diffs are not rendered by default.

Loading

0 comments on commit a901233

Please sign in to comment.