Skip to content
Snippets Groups Projects
Verified Commit c1826312 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

first commit to move everything to its own kustomization, also removes...

first commit to move everything to its own kustomization, also removes deprecated value from kustomizations
parent 96404c12
No related branches found
No related tags found
No related merge requests found
Showing
with 277 additions and 69 deletions
...@@ -82,9 +82,9 @@ include: ...@@ -82,9 +82,9 @@ include:
- changes: - changes:
- flux2/apps/monitoring/*.yaml - flux2/apps/monitoring/*.yaml
- flux2/cluster/optional/monitoring/*.yaml - flux2/cluster/optional/monitoring/*.yaml
- flux2/infrastructure/sources/grafana.yaml - flux2/core/base/sources/grafana.yaml
- flux2/infrastructure/sources/wikimedia.yaml - flux2/core/base/sources/wikimedia.yaml
- flux2/infrastructure/sources/prometheus-community.yaml - flux2/core/base/sources/prometheus-community.yaml
- flux2/config/monitoring/*.yaml - flux2/config/monitoring/*.yaml
- install/install-app.sh - install/install-app.sh
- install/flux-version-check.sh - install/flux-version-check.sh
...@@ -114,7 +114,7 @@ include: ...@@ -114,7 +114,7 @@ include:
- changes: - changes:
- flux2/apps/$RESOURCE/*.yaml - flux2/apps/$RESOURCE/*.yaml
- flux2/cluster/optional/$RESOURCE/*.yaml - flux2/cluster/optional/$RESOURCE/*.yaml
- flux2/infrastructure/sources/nextcloud.yaml - flux2/core/base/sources/nextcloud.yaml
- install/install-app.sh - install/install-app.sh
- install/flux-version-check.sh - install/flux-version-check.sh
- test/taiko/* - test/taiko/*
...@@ -146,7 +146,7 @@ include: ...@@ -146,7 +146,7 @@ include:
- changes: - changes:
- flux2/apps/$RESOURCE/*.yaml - flux2/apps/$RESOURCE/*.yaml
- flux2/cluster/optional/$RESOURCE/*.yaml - flux2/cluster/optional/$RESOURCE/*.yaml
- flux2/infrastructure/sources/wekan.yaml - flux2/core/base/sources/wekan.yaml
- install/install-app.sh - install/install-app.sh
- install/flux-version-check.sh - install/flux-version-check.sh
- test/taiko/* - test/taiko/*
...@@ -159,7 +159,7 @@ include: ...@@ -159,7 +159,7 @@ include:
- changes: - changes:
- flux2/apps/$RESOURCE/*.yaml - flux2/apps/$RESOURCE/*.yaml
- flux2/cluster/optional/$RESOURCE/*.yaml - flux2/cluster/optional/$RESOURCE/*.yaml
- flux2/infrastructure/sources/wordpress.yaml - flux2/core/base/sources/wordpress.yaml
- install/install-app.sh - install/install-app.sh
- install/flux-version-check.sh - install/flux-version-check.sh
- test/taiko/* - test/taiko/*
...@@ -172,7 +172,7 @@ include: ...@@ -172,7 +172,7 @@ include:
- changes: - changes:
- flux2/apps/$RESOURCE/*.yaml - flux2/apps/$RESOURCE/*.yaml
- flux2/cluster/optional/$RESOURCE/*.yaml - flux2/cluster/optional/$RESOURCE/*.yaml
- flux2/infrastructure/sources/zulip.yaml - flux2/core/base/sources/zulip.yaml
- install/install-app.sh - install/install-app.sh
- install/flux-version-check.sh - install/flux-version-check.sh
- test/taiko/* - test/taiko/*
...@@ -379,15 +379,57 @@ setup-stackspin: ...@@ -379,15 +379,57 @@ setup-stackspin:
- .general_rules - .general_rules
interruptible: true interruptible: true
core-kustomizations-ready: cert-manager-kustomizations-ready:
variables: variables:
RESOURCE: "core" RESOURCE: "cert-manager"
extends: extends:
- .kustomization-ready - .kustomization-ready
infrastructure-kustomizations-ready: dashboard-kustomizations-ready:
variables: variables:
RESOURCE: "infrastructure" RESOURCE: "dashboard"
extends:
- .kustomization-ready
letsencrypt-issuer-kustomizations-ready:
variables:
RESOURCE: "letsencrypt-issuer"
extends:
- .kustomization-ready
local-path-provisioner-kustomizations-ready:
variables:
RESOURCE: "local-path-provisioner"
extends:
- .kustomization-ready
metallb-kustomizations-ready:
variables:
RESOURCE: "metallb"
extends:
- .kustomization-ready
namespaces-kustomizations-ready:
variables:
RESOURCE: "namespaces"
extends:
- .kustomization-ready
nginx-kustomizations-ready:
variables:
RESOURCE: "nginx"
extends:
- .kustomization-ready
single-sign-on-kustomizations-ready:
variables:
RESOURCE: "single-sign-on"
extends:
- .kustomization-ready
sources-kustomizations-ready:
variables:
RESOURCE: "sources"
extends: extends:
- .kustomization-ready - .kustomization-ready
...@@ -547,7 +589,7 @@ single-sign-on-cert: ...@@ -547,7 +589,7 @@ single-sign-on-cert:
variables: variables:
RESOURCE: "single-sign-on" RESOURCE: "single-sign-on"
needs: needs:
- job: core-kustomizations-ready - job: single-sign-on-kustomizations-ready
- job: setup-stackspin - job: setup-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -557,7 +599,7 @@ dashboard-cert: ...@@ -557,7 +599,7 @@ dashboard-cert:
variables: variables:
RESOURCE: "dashboard" RESOURCE: "dashboard"
needs: needs:
- job: core-kustomizations-ready - job: dashboard-kustomizations-ready
- job: setup-stackspin - job: setup-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -654,7 +696,7 @@ dashboard-taiko: ...@@ -654,7 +696,7 @@ dashboard-taiko:
RESOURCE: "dashboard" RESOURCE: "dashboard"
needs: needs:
- job: setup-stackspin - job: setup-stackspin
- job: core-kustomizations-ready - job: dashboard-kustomizations-ready
extends: extends:
- .taiko - .taiko
- .general_rules - .general_rules
......
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: cert-manager
namespace: flux-system
spec:
interval: 1h
dependsOn:
- namespaces
- metallb
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/cert-manager
prune: true
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: cert-manager
namespace: cert-manager
- apiVersion: apps/v1
kind: Deployment
name: cert-manager
namespace: cert-manager
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: dashboard
namespace: flux-system
spec:
dependsOn:
- name: single-sign-on
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/dashboard
prune: true
wait: true
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-dashboard-variables
- kind: Secret
name: stackspin-oauth-variables
- kind: Secret
name: stackspin-cluster-variables
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: dashboard
namespace: stackspin
- apiVersion: apps/v1
kind: Deployment
name: dashboard
namespace: stackspin
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: letsencrypt-issuer
namespace: flux-system
spec:
dependsOn:
- name: cert-manager
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/letsencrypt-issuer
prune: true
wait: true
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-cluster-variables
...@@ -2,29 +2,21 @@ ...@@ -2,29 +2,21 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: infrastructure name: local-path-provisioner
namespace: flux-system namespace: flux-system
spec: spec:
interval: 1h interval: 1h
timeout: 20m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/infrastructure path: ./flux2/core/base/local-path-provisioner
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: cert-manager
namespace: cert-manager
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
name: local-path-provisioner name: local-path-provisioner
namespace: kube-system namespace: kube-system
- apiVersion: apps/v1
kind: Deployment
name: cert-manager
namespace: cert-manager
- apiVersion: apps/v1 - apiVersion: apps/v1
kind: Deployment kind: Deployment
name: local-path-provisioner name: local-path-provisioner
......
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: metallb
namespace: flux-system
spec:
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/metallb
prune: true
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: namespaces
namespace: flux-system
spec:
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/namespaces
prune: true
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: nginx
namespace: flux-system
spec:
dependsOn:
- name: metallb
- name: sources
- name: namespaces
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/nginx
prune: true
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-cluster-variables
wait: true
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: core name: single-sign-on
namespace: flux-system namespace: flux-system
spec: spec:
dependsOn: dependsOn:
- name: infrastructure - name: nginx
- name: letsencrypt-issuer
- name: local-path-provisioner
interval: 1h interval: 1h
timeout: 20m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/core path: ./flux2/core/base/single-sign-on
prune: true prune: true
validation: client
postBuild: postBuild:
substituteFrom: substituteFrom:
- kind: Secret
name: stackspin-dashboard-variables
- kind: Secret - kind: Secret
name: stackspin-single-sign-on-variables name: stackspin-single-sign-on-variables
- kind: Secret - kind: Secret
...@@ -25,22 +25,10 @@ spec: ...@@ -25,22 +25,10 @@ spec:
- kind: Secret - kind: Secret
name: stackspin-cluster-variables name: stackspin-cluster-variables
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: metallb
namespace: kube-system
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: nginx
namespace: stackspin
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
name: single-sign-on name: single-sign-on
namespace: stackspin namespace: stackspin
- apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease
name: dashboard
namespace: stackspin
- apiVersion: apps/v1 - apiVersion: apps/v1
kind: Deployment kind: Deployment
name: single-sign-on-userbackend name: single-sign-on-userbackend
...@@ -53,7 +41,3 @@ spec: ...@@ -53,7 +41,3 @@ spec:
kind: Deployment kind: Deployment
name: single-sign-on-login name: single-sign-on-login
namespace: stackspin namespace: stackspin
- apiVersion: apps/v1
kind: Deployment
name: dashboard
namespace: stackspin
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: sources
namespace: flux-system
spec:
interval: 1h
timeout: 20m
sourceRef:
kind: GitRepository
name: stackspin
path: ./flux2/core/base/sources
prune: true
wait: true
...@@ -13,4 +13,3 @@ spec: ...@@ -13,4 +13,3 @@ spec:
name: stackspin name: stackspin
path: ./flux2/config/monitoring path: ./flux2/config/monitoring
prune: true prune: true
validation: client
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/monitoring path: ./flux2/apps/monitoring
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/nextcloud path: ./flux2/apps/nextcloud
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/rocketchat path: ./flux2/apps/rocketchat
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/velero path: ./flux2/apps/velero
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/wekan path: ./flux2/apps/wekan
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/wordpress path: ./flux2/apps/wordpress
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
...@@ -7,14 +7,20 @@ metadata: ...@@ -7,14 +7,20 @@ metadata:
spec: spec:
interval: 1h interval: 1h
dependsOn: dependsOn:
- name: core - cert-manager
- name: infrastructure - dashboard
- letsencrypt-issuer
- local-path-provisioner
- metallb
- namespaces
- nginx
- single-sign-on
- sources
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin name: stackspin
path: ./flux2/apps/zulip path: ./flux2/apps/zulip
prune: true prune: true
validation: client
healthChecks: healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v1beta1 - apiVersion: helm.toolkit.fluxcd.io/v1beta1
kind: HelmRelease kind: HelmRelease
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment