Skip to content

Commit

Permalink
chore: Add lightmare (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi authored Dec 5, 2024
1 parent 294e7cd commit 8cbc8e9
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
terraform state rm \
module.spectrum.helm_release.flux-sync \
module.spectrum.helm_release.flux \
module.spectrum.helm_release.cilium
module.spectrum.helm_release.cilium || true
terraform destroy -auto-approve
terraform workspace delete ${{ steps.sanitize.outputs.workspace }}
;;
Expand Down
4 changes: 2 additions & 2 deletions flux/components/kubevirt/ks.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: kube-virt
name: kubevirt
namespace: flux-system
spec:
interval: 1m0s
path: ./flux/components/kube-virt/app
path: ./flux/components/kubevirt/app
prune: true
sourceRef:
kind: GitRepository
Expand Down
6 changes: 6 additions & 0 deletions flux/core/lightmare/app/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yml
- repository.yml
- release.yml
4 changes: 4 additions & 0 deletions flux/core/lightmare/app/namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: lightmare
16 changes: 16 additions & 0 deletions flux/core/lightmare/app/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: lightmare
namespace: lightmare
spec:
interval: 5m
chartRef:
kind: OCIRepository
name: lightmare
namespace: flux-system
values:
image:
repository: fluencelabs/lightmare
tag: main
pullPolicy: Always
10 changes: 10 additions & 0 deletions flux/core/lightmare/app/repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: lightmare
namespace: flux-system
spec:
interval: 5m0s
url: oci://registry-1.docker.io/fluencelabs/lightmare-chart
ref:
tag: 0.1.0
13 changes: 13 additions & 0 deletions flux/core/lightmare/ks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: lightmare
namespace: flux-system
spec:
interval: 1m0s
path: ./flux/core/lightmare/app
prune: true
sourceRef:
kind: GitRepository
name: spectrum
namespace: flux-system
4 changes: 4 additions & 0 deletions flux/core/lightmare/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ks.yaml
2 changes: 1 addition & 1 deletion terraform-modules/spectrum/templates/flux-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ kustomization:
kustomizationlist:
- spec:
interval: 1m0s
path: "./flux/components/lightmare/app"
path: "./flux/core/lightmare/app"
prune: true

0 comments on commit 8cbc8e9

Please sign in to comment.