flux-iac / tofu-controller

A GitOps OpenTofu and Terraform controller for Flux
https://flux-iac.github.io/tofu-controller/
Apache License 2.0
1.31k stars 137 forks source link

Support OCI Repository #283

Closed chanwit closed 2 years ago

chanwit commented 2 years ago

Flux's Source controller v0.26.0+ introduces a new kind of source, called OCIRepository. It would be great for us to support this source.

---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
  name: helloworld-oci
spec:
  interval: 1m
  url: oci://ghcr.io/tf-controller/helloworld
  ref:
    tag: main
---
apiVersion: infra.contrib.fluxcd.io/v1alpha1
kind: Terraform
metadata:
  name: helloworld-oci-auto-approve
spec:
  interval: 10s
  approvePlan: "auto"
  path: ./
  sourceRef:
    kind: OCIRepository
    name: helloworld-oci
chanwit commented 2 years ago

ping @kingdonb for visibility :-)