Skip to content

Commit 7327edb

Browse files
xeniapesbernauer
andauthored
fix: Enable Demo/Stack installations in non-default namespaces (#374)
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.tech>
1 parent 68c51d2 commit 7327edb

91 files changed

Lines changed: 403 additions & 168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/reusable_build_image.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
on:
23
workflow_call:
34
inputs:

demos/airflow-scheduled-job/serviceaccount.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ apiVersion: v1
33
kind: ServiceAccount
44
metadata:
55
name: demo-serviceaccount
6-
namespace: default
76
---
87
apiVersion: rbac.authorization.k8s.io/v1
98
kind: ClusterRoleBinding
@@ -12,7 +11,7 @@ metadata:
1211
subjects:
1312
- kind: ServiceAccount
1413
name: demo-serviceaccount
15-
namespace: default
14+
namespace: {{ NAMESPACE }}
1615
roleRef:
1716
kind: ClusterRole
1817
name: demo-clusterrole

demos/argo-cd-git-ops/applications/airflow-postgres.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: argoproj.io/v1alpha1
33
kind: Application
44
metadata:
55
name: airflow-postgres
6+
# Finalizer needed so resources created by the Application are deleted when the Application gets removed
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
69
spec:
710
project: airflow
811
destination:

demos/argo-cd-git-ops/applications/airflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: argoproj.io/v1alpha1
33
kind: Application
44
metadata:
55
name: airflow
6+
# Finalizer needed so resources created by the Application are deleted when the Application gets removed
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
69
spec:
710
project: airflow
811
destination:

demos/argo-cd-git-ops/applications/minio.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: argoproj.io/v1alpha1
33
kind: Application
44
metadata:
55
name: minio
6+
# Finalizer needed so resources created by the Application are deleted when the Application gets removed
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
69
spec:
710
project: minio
811
destination:

demos/argo-cd-git-ops/manifests/airflow-postgres/sealed-airflow-postgres-credentials.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ spec:
1616
creationTimestamp: null
1717
name: postgresql-credentials
1818
namespace: stackable-airflow
19+
labels:
20+
stackable.tech/vendor: Stackable
21+
stackable.tech/demo: {{ DEMO }}
1922
type: Opaque

demos/argo-cd-git-ops/manifests/airflow/airflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ apiVersion: airflow.stackable.tech/v1alpha1
33
kind: AirflowCluster
44
metadata:
55
name: airflow
6+
labels:
7+
stackable.tech/vendor: Stackable
8+
stackable.tech/demo: {{ DEMO }}
69
spec:
710
image:
811
productVersion: 3.1.6

demos/argo-cd-git-ops/manifests/airflow/sealed-airflow-credentials.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ spec:
2121
creationTimestamp: null
2222
name: airflow-credentials
2323
namespace: stackable-airflow
24+
labels:
25+
stackable.tech/vendor: Stackable
26+
stackable.tech/demo: {{ DEMO }}
2427
type: Opaque

demos/argo-cd-git-ops/manifests/airflow/sealed-airflow-minio-connection.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ spec:
1313
creationTimestamp: null
1414
name: airflow-minio-connection
1515
namespace: stackable-airflow
16+
labels:
17+
stackable.tech/vendor: Stackable
18+
stackable.tech/demo: {{ DEMO }}
1619
type: Opaque

demos/argo-cd-git-ops/manifests/minio/minio.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ apiVersion: v1
44
kind: ServiceAccount
55
metadata:
66
name: "minio-sa"
7+
labels:
8+
stackable.tech/vendor: Stackable
9+
stackable.tech/demo: {{ DEMO }}
710
---
811
# Source: minio/templates/configmap.yaml
912
apiVersion: v1
@@ -15,6 +18,8 @@ metadata:
1518
chart: minio-5.4.0
1619
release: minio
1720
heritage: Helm
21+
stackable.tech/vendor: Stackable
22+
stackable.tech/demo: {{ DEMO }}
1823
data:
1924
initialize: |-
2025
#!/bin/sh
@@ -408,6 +413,8 @@ metadata:
408413
chart: minio-5.4.0
409414
release: minio
410415
heritage: Helm
416+
stackable.tech/vendor: Stackable
417+
stackable.tech/demo: {{ DEMO }}
411418
spec:
412419
accessModes:
413420
- "ReadWriteOnce"
@@ -425,6 +432,8 @@ metadata:
425432
chart: minio-5.4.0
426433
release: minio
427434
heritage: Helm
435+
stackable.tech/vendor: Stackable
436+
stackable.tech/demo: {{ DEMO }}
428437
spec:
429438
type: NodePort
430439
externalTrafficPolicy: "Cluster"
@@ -448,6 +457,8 @@ metadata:
448457
release: minio
449458
heritage: Helm
450459
monitoring: "true"
460+
stackable.tech/vendor: Stackable
461+
stackable.tech/demo: {{ DEMO }}
451462
spec:
452463
type: NodePort
453464
externalTrafficPolicy: "Cluster"
@@ -471,6 +482,7 @@ metadata:
471482
release: minio
472483
heritage: Helm
473484
stackable.tech/vendor: Stackable
485+
stackable.tech/demo: {{ DEMO }}
474486
spec:
475487
strategy:
476488
type: RollingUpdate
@@ -489,6 +501,7 @@ spec:
489501
app: minio
490502
release: minio
491503
stackable.tech/vendor: Stackable
504+
stackable.tech/demo: {{ DEMO }}
492505
annotations:
493506
checksum/secrets: fa63e34a92c817c84057e2d452fa683e66462a57b0529388fb96a57e05f38e57
494507
checksum/config: ebea49cc4c1bfbd1b156a58bf770a776ff87fe199f642d31c2816b5515112e72
@@ -583,6 +596,8 @@ metadata:
583596
chart: minio-5.4.0
584597
release: minio
585598
heritage: Helm
599+
stackable.tech/vendor: Stackable
600+
stackable.tech/demo: {{ DEMO }}
586601
annotations:
587602
"helm.sh/hook": post-install,post-upgrade
588603
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation

0 commit comments

Comments
 (0)