-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for OCIRepository sources
- allow `OCIRepository` to be specified in `sourceRef.kind` - react to `OCIRepository` artifacts events - add end-to-end test for OCI repositories Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
- Loading branch information
1 parent
57a0a1f
commit 644ece9
Showing
11 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: kustomize-system | ||
# TODO: remove the hardcoded branch | ||
resources: | ||
- https://github.com/fluxcd/source-controller/releases/download/v0.25.5/source-controller.crds.yaml | ||
- https://github.com/fluxcd/source-controller/config/crd?ref=oci | ||
- https://github.com/fluxcd/source-controller/releases/download/v0.25.5/source-controller.deployment.yaml | ||
- ../crd | ||
- ../rbac | ||
- ../manager | ||
- namespace.yaml | ||
# TODO: remove the hardcoded image | ||
images: | ||
- name: fluxcd/source-controller | ||
newTag: oci-778f6d5d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: OCIRepository | ||
metadata: | ||
name: oci | ||
namespace: oci | ||
spec: | ||
interval: 10m | ||
url: ghcr.io/stefanprodan/manifests/podinfo | ||
ref: | ||
tag: "6.1.6" | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 | ||
kind: Kustomization | ||
metadata: | ||
name: oci | ||
namespace: oci | ||
spec: | ||
targetNamespace: oci | ||
interval: 10m | ||
path: "./kustomize" | ||
prune: true | ||
sourceRef: | ||
kind: OCIRepository | ||
name: oci | ||
wait: true | ||
timeout: 2m | ||
patches: | ||
- patch: |- | ||
apiVersion: autoscaling/v2beta2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: podinfo | ||
spec: | ||
minReplicas: 1 | ||
target: | ||
name: podinfo | ||
kind: HorizontalPodAutoscaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters