Skip to content

Commit

Permalink
refactor: simplify the registry structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Nov 10, 2024
1 parent a9dddd9 commit 861a21d
Show file tree
Hide file tree
Showing 31 changed files with 76 additions and 204 deletions.
6 changes: 4 additions & 2 deletions registry/clusters/dev/cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/cert-manager
targetRevision: HEAD
path: registry/components/cert-manager
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: cert-manager
Expand Down

This file was deleted.

6 changes: 4 additions & 2 deletions registry/clusters/dev/external-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/external-dns
targetRevision: HEAD
path: registry/components/external-dns
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: external-dns
Expand Down
15 changes: 13 additions & 2 deletions registry/clusters/dev/external-secret-stores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/external-secret-stores
targetRevision: HEAD
path: registry/components/external-secret-stores
targetRevision: main
kustomize:
patches:
- target:
group: external-secrets.io
version: v1beta1
kind: ClusterSecretStore
name: infisical
patch: |-
- op: replace
path: /spec/provider/infisical/secretsScope/environmentSlug
value: dev
destination:
server: https://kubernetes.default.svc
namespace: external-secrets
Expand Down
6 changes: 4 additions & 2 deletions registry/clusters/dev/external-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/external-secrets
targetRevision: HEAD
path: registry/components/external-secrets
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: external-secrets
Expand Down
4 changes: 3 additions & 1 deletion registry/clusters/dev/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ spec:
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev
targetRevision: HEAD
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: argocd
Expand Down
6 changes: 4 additions & 2 deletions registry/clusters/dev/reloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/dev/components/reloader
targetRevision: HEAD
path: registry/components/reloader
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: reloader
Expand Down
6 changes: 4 additions & 2 deletions registry/clusters/prod/cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/cert-manager
targetRevision: HEAD
path: registry/components/cert-manager
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: cert-manager
Expand Down
25 changes: 0 additions & 25 deletions registry/clusters/prod/components/cert-manager/application.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions registry/clusters/prod/components/cert-manager/clusterissuers.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions registry/clusters/prod/components/external-dns/application.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions registry/clusters/prod/components/external-dns/secret.yaml

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions registry/clusters/prod/components/reloader/application.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions registry/clusters/prod/external-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/external-dns
targetRevision: HEAD
path: registry/components/external-dns
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: external-dns
Expand Down
5 changes: 3 additions & 2 deletions registry/clusters/prod/external-secret-stores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/external-secret-stores
targetRevision: HEAD
path: registry/components
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: external-secrets
Expand Down
6 changes: 4 additions & 2 deletions registry/clusters/prod/external-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/external-secrets
targetRevision: HEAD
path: registry/components/external-secrets
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: external-secrets
Expand Down
4 changes: 3 additions & 1 deletion registry/clusters/prod/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ spec:
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod
targetRevision: HEAD
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: argocd
Expand Down
6 changes: 4 additions & 2 deletions registry/clusters/prod/reloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
project: default
source:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/clusters/prod/components/reloader
targetRevision: HEAD
path: registry/components/reloader
targetRevision: main
kustomize:
patches: []
destination:
server: https://kubernetes.default.svc
namespace: reloader
Expand Down
5 changes: 5 additions & 0 deletions registry/components/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- application.yaml
- clusterissuers.yaml
5 changes: 5 additions & 0 deletions registry/components/external-dns/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- application.yaml
- secret.yaml
4 changes: 4 additions & 0 deletions registry/components/external-secret-stores/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- infisical.yaml
4 changes: 4 additions & 0 deletions registry/components/external-secrets/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- application.yaml
4 changes: 4 additions & 0 deletions registry/components/reloader/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- reloader.yaml

0 comments on commit 861a21d

Please sign in to comment.