Skip to content

Commit 37a7bc5

Browse files
committed
Implement OCIRepository controller for public repos
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 4ddf13f commit 37a7bc5

File tree

9 files changed

+1159
-17
lines changed

9 files changed

+1159
-17
lines changed

api/v1beta2/ocirepository_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ func (in *OCIRepository) SetConditions(conditions []metav1.Condition) {
158158
in.Status.Conditions = conditions
159159
}
160160

161-
// GetRequeueAfter returns the duration after which the GitRepository must be
161+
// GetRequeueAfter returns the duration after which the OCIRepository must be
162162
// reconciled again.
163163
func (in OCIRepository) GetRequeueAfter() time.Duration {
164164
return in.Spec.Interval.Duration
165165
}
166166

167-
// GetArtifact returns the latest Artifact from the GitRepository if present in
167+
// GetArtifact returns the latest Artifact from the OCIRepository if present in
168168
// the status sub-resource.
169169
func (in *OCIRepository) GetArtifact() *Artifact {
170170
return in.Status.Artifact
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1beta2
2+
kind: OCIRepository
3+
metadata:
4+
name: ocirepository-sample
5+
spec:
6+
interval: 1m
7+
url: ghcr.io/stefanprodan/manifests/podinfo
8+
ref:
9+
tag: 6.1.6

0 commit comments

Comments
 (0)