Skip to content

Commit

Permalink
fix: update to have application create namespace and removed explicit…
Browse files Browse the repository at this point in the history
… creation
  • Loading branch information
josmo committed Jan 11, 2024
1 parent 772421d commit c30a53d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 49 deletions.
9 changes: 4 additions & 5 deletions gitops/base-install/cert-manager/install.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: cert-manager
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand Down Expand Up @@ -59,6 +54,8 @@ spec:
namespace: cert-manager
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
---
apiVersion: argoproj.io/v1alpha1
Expand All @@ -83,4 +80,6 @@ spec:
namespace: cert-manager
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
7 changes: 2 additions & 5 deletions gitops/base-install/external-dns/install.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: external-dns
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand Down Expand Up @@ -41,4 +36,6 @@ spec:
namespace: external-dns
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
6 changes: 2 additions & 4 deletions gitops/base-install/ingress-controller/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
apiVersion: v1
kind: Namespace
metadata:
name: alb
---
apiVersion: argoproj.io/v1alpha1
kind: Application
Expand Down Expand Up @@ -46,4 +42,6 @@ spec:
namespace: alb
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
7 changes: 2 additions & 5 deletions gitops/base-install/reloader/install.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: reloader
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -17,6 +12,8 @@ spec:
namespace: reloader
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
repoURL: https://stakater.github.io/stakater-charts
Expand Down
7 changes: 2 additions & 5 deletions gitops/components/adot/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: adot
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -17,6 +12,8 @@ spec:
namespace: adot
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
chart: adot-exporter-for-eks-on-ec2
Expand Down
7 changes: 2 additions & 5 deletions gitops/components/fluent-bit/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: fluent-bit
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -17,6 +12,8 @@ spec:
namespace: fluent-bit
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
chart: fluent-bit
Expand Down
12 changes: 2 additions & 10 deletions gitops/components/goldilocks/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: kube-system
---
apiVersion: v1
kind: Namespace
metadata:
name: goldilocks
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand Down Expand Up @@ -47,4 +37,6 @@ spec:
namespace: goldilocks
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
7 changes: 2 additions & 5 deletions gitops/components/karpenter/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: karpenter
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -17,6 +12,8 @@ spec:
namespace: karpenter
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
chart: karpenter
Expand Down
2 changes: 2 additions & 0 deletions gitops/components/kubevirt/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
namespace: kubevirt
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
repoURL: 'https://github.com/pelotech/foundation'
Expand Down
7 changes: 2 additions & 5 deletions gitops/components/loki/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: loki
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
Expand All @@ -17,6 +12,8 @@ spec:
namespace: loki
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated: {}
source:
repoURL: https://grafana.github.io/helm-charts
Expand Down

0 comments on commit c30a53d

Please sign in to comment.