commit d278ef80067bb809d9b0c80254dc6b19f8ae9aa1
parent 4f40fdf5114f7eabc2b6dfc720f63bd251e682a7
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 11 Dec 2023 19:51:11 +0100
Install zuul operator
Diffstat:
6 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/apps/base/zuul-operator/kustomization.yaml b/apps/base/zuul-operator/kustomization.yaml
@@ -0,0 +1,6 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: zuul-system
+resources:
+ - repository.yaml
+ - release.yaml
diff --git a/apps/base/zuul-operator/release.yaml b/apps/base/zuul-operator/release.yaml
@@ -0,0 +1,17 @@
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+ name: zuul
+ namespace: zuul-system
+spec:
+ interval: 60m0s # detect drift and undo kubectl edits every hour
+ wait: true # wait for all applied resources to become ready
+ timeout: 3m0s # give up waiting after three minutes
+ retryInterval: 2m0s # retry every two minutes on apply or waiting failures
+ prune: true # remove stale resources from cluster
+ force: false # enable this to recreate resources on immutable fields changes
+ targetNamespace: zuul-system
+ sourceRef:
+ kind: GitRepository
+ name: zuul
+ path: "./deploy"
diff --git a/apps/base/zuul-operator/repository.yaml b/apps/base/zuul-operator/repository.yaml
@@ -0,0 +1,19 @@
+apiVersion: source.toolkit.fluxcd.io/v1
+kind: GitRepository
+metadata:
+ name: zuul
+ namespace: zuul-system
+spec:
+ interval: 5m
+ url: https://opendev.org/zuul/zuul-operator.git
+ ref:
+ branch: master
+ ignore: |
+ # exclude all
+ /*
+ # include deploy dir
+ !/deploy
+ # exclude the rbac.yaml
+ /deploy/rbac.yaml
+ # exclude the zuul-ci_v1alpha2_zuul_cr.yaml
+ /deploy/crds/zuul-ci_v1alpha2_zuul_cr.yaml
diff --git a/apps/namespaces/kustomization.yaml b/apps/namespaces/kustomization.yaml
@@ -17,3 +17,4 @@ resources:
- tetragon.yaml
- vector.yaml
- parseable.yaml
+ - zuul-system.yaml
diff --git a/apps/namespaces/zuul-system.yaml b/apps/namespaces/zuul-system.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: zuul-system
diff --git a/apps/production/kustomization.yaml b/apps/production/kustomization.yaml
@@ -17,6 +17,7 @@ resources:
- ../base/tetragon
- ../base/vector
- ../base/parseable
+ - ../base/zuul-operator
- sliding-proxy-ingress.yaml
- pvcs-mjolnir.yaml
- nfs-server.yaml