Skip to content

Commit

Permalink
refactor(staging): Add flux ocirepositories
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Mar 4, 2025
1 parent 79ac35d commit cc4cfba
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 19 deletions.
17 changes: 17 additions & 0 deletions kubernetes/repositories/oci/flux-instance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: flux-instance
namespace: flux-system
spec:
interval: 1h
layerSelector:
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
operation: copy
ref:
tag: 0.17.0
url: oci://ghcr.io/controlplaneio-fluxcd/charts/flux-instance
verify:
provider: cosign
17 changes: 17 additions & 0 deletions kubernetes/repositories/oci/flux-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: flux-operator
namespace: flux-system
spec:
interval: 1h
layerSelector:
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
operation: copy
ref:
tag: 0.17.0
url: oci://ghcr.io/controlplaneio-fluxcd/charts/flux-operator
verify:
provider: cosign
2 changes: 2 additions & 0 deletions kubernetes/repositories/oci/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app-template.yaml
- flux-instance.yaml
- flux-operator.yaml
- k8s-ycl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/staging/apps/flux-system/flux-operator/app
path: ./kubernetes/staging/apps/flux-system/flux-operator/operator
sourceRef:
kind: GitRepository
name: flux-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ kind: HelmRelease
metadata:
name: flux-instance
spec:
interval: 30m
chart:
spec:
chart: flux-instance
version: 0.17.0
sourceRef:
kind: HelmRepository
name: controlplaneio-charts
namespace: flux-system
interval: 1h
chartRef:
kind: OCIRepository
name: flux-instance
namespace: flux-system
install:
remediation:
retries: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ kind: HelmRelease
metadata:
name: flux-operator
spec:
interval: 30m
chart:
spec:
chart: flux-operator
version: 0.17.0
sourceRef:
kind: HelmRepository
name: controlplaneio-charts
namespace: flux-system
interval: 1h
chartRef:
kind: OCIRepository
name: flux-operator
namespace: flux-system
install:
remediation:
retries: 3
Expand Down

0 comments on commit cc4cfba

Please sign in to comment.