Compare commits
4 Commits
f94807ebe0
...
5e6c350070
| Author | SHA1 | Date | |
|---|---|---|---|
|
5e6c350070
|
|||
|
94a091acf1
|
|||
|
be1842e0de
|
|||
|
e1f39299a3
|
16
artifacts.yaml
Normal file
16
artifacts.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: source.extensions.fluxcd.io/v1beta1
|
||||
kind: ArtifactGenerator
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
sources:
|
||||
- alias: foundation
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
artifacts:
|
||||
- name: cert-manager
|
||||
originRevision: "@monorepo"
|
||||
copy:
|
||||
- from: "@foundation/controllers/cert-manager/**"
|
||||
to: "@artifact/"
|
||||
@@ -117,3 +117,7 @@ cilium-cli status --wait
|
||||
|
||||
# echo "Running connectivity test..."
|
||||
# cilium-cli connectivity test --namespace-labels pod-security.kubernetes.io/enforce=privileged
|
||||
|
||||
echo "Bootstrapping flux..."
|
||||
flux bootstrap git --url ssh://git@huizinga.dev/infra/foundation --branch=main --path=clusters/${cluster_name} \
|
||||
--components-extra=source-watcher
|
||||
|
||||
1
clusters/testing/artifacts.yaml
Symbolic link
1
clusters/testing/artifacts.yaml
Symbolic link
@@ -0,0 +1 @@
|
||||
../../artifacts.yaml
|
||||
1
clusters/testing/controllers/cert-manager.yaml
Symbolic link
1
clusters/testing/controllers/cert-manager.yaml
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../controllers/cert-manager/cert-manager.yaml
|
||||
10626
clusters/testing/flux-system/gotk-components.yaml
Normal file
10626
clusters/testing/flux-system/gotk-components.yaml
Normal file
File diff suppressed because it is too large
Load Diff
27
clusters/testing/flux-system/gotk-sync.yaml
Normal file
27
clusters/testing/flux-system/gotk-sync.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
# This manifest was generated by flux. DO NOT EDIT.
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: main
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: ssh://git@huizinga.dev/infra/foundation
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
path: ./clusters/testing
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
5
clusters/testing/flux-system/kustomization.yaml
Normal file
5
clusters/testing/flux-system/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
||||
6
configurations/helm-release.yaml
Normal file
6
configurations/helm-release.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
nameReference:
|
||||
- kind: ConfigMap
|
||||
version: v1
|
||||
fieldSpecs:
|
||||
- path: spec/valuesFrom/name
|
||||
kind: HelmRelease
|
||||
15
controllers/cert-manager/cert-manager.yaml
Normal file
15
controllers/cert-manager/cert-manager.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h
|
||||
retryInterval: 2m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: ExternalArtifact
|
||||
name: cert-manager
|
||||
path: ./
|
||||
prune: true
|
||||
wait: true
|
||||
21
controllers/cert-manager/helm-repository.yaml
Normal file
21
controllers/cert-manager/helm-repository.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
interval: 12h
|
||||
install:
|
||||
strategy:
|
||||
name: RetryOnFailure
|
||||
retryInterval: 2m
|
||||
upgrade:
|
||||
strategy:
|
||||
name: RetryOnFailure
|
||||
retryInterval: 3m
|
||||
chartRef:
|
||||
kind: OCIRepository
|
||||
name: cert-manager
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: values
|
||||
15
controllers/cert-manager/kustomization.yaml
Normal file
15
controllers/cert-manager/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./oci-repository.yaml
|
||||
- ./helm-release.yaml
|
||||
|
||||
configurations:
|
||||
- ../../configurations/helm-release.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: values
|
||||
namespace: cert-manager
|
||||
files:
|
||||
- ./values.yaml
|
||||
4
controllers/cert-manager/namespace.yaml
Normal file
4
controllers/cert-manager/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: cert-manager
|
||||
13
controllers/cert-manager/oci-repository.yaml
Normal file
13
controllers/cert-manager/oci-repository.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
interval: 24h
|
||||
url: oci://quay.io/jetstack/charts/cert-manager
|
||||
layerSelector:
|
||||
mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
|
||||
operation: copy
|
||||
ref:
|
||||
semver: "1.x"
|
||||
3
controllers/cert-manager/values.yaml
Normal file
3
controllers/cert-manager/values.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
crds:
|
||||
enabled: true
|
||||
keep: false
|
||||
Reference in New Issue
Block a user