refactor: move general resources to separte top-level folder

This commit is contained in:
Jonas Juselius
2024-02-08 15:22:48 +01:00
parent a41aba8615
commit 54a95e486d
9 changed files with 38 additions and 5 deletions
+1 -1
View File
@@ -11,5 +11,5 @@ spec:
source: source:
repoURL: https://gitlab.com/oceanbox/manifests.git repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD targetRevision: HEAD
path: charts/atlantis-resources/host-manifests path: resources/atlantis/host-manifests
+1 -1
View File
@@ -22,4 +22,4 @@ spec:
sources: sources:
- repoURL: https://gitlab.com/oceanbox/manifests.git - repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD targetRevision: HEAD
path: charts/atlantis-resources/manifests path: resources/atlantis/manifests
+2 -2
View File
@@ -1,5 +1,5 @@
- op: add - op: add
path: /metadata/annotations path: /metadata/annotations
value: value:
secret-syncer.cloudarmin.me/enabled: "true" secret-syncer.vcluster-plugin.sh/enabled: "true"
secret-syncer.cloudarmin.me/destination-namespace: "atlantis" secret-syncer.vcluster-plugin.sh/destination-namespace: "atlantis"
@@ -24,6 +24,7 @@ spec:
- Namespace - Namespace
names: names:
- atlantis - atlantis
- '*-vcluster'
- name: sync-rabbitmq-secrets - name: sync-rabbitmq-secrets
generate: generate:
apiVersion: v1 apiVersion: v1
@@ -42,5 +43,37 @@ spec:
- Namespace - Namespace
names: names:
- atlantis - atlantis
- '*-vcluster'
- name: sync-archmeister-replication-ca
generate:
apiVersion: v1
kind: Secret
name: prod-archmeister-ca
namespace: '{{request.object.metadata.name}}'
synchronize: true
clone:
namespace: atlantis
name: prod-archmeister-ca
match:
resources:
kinds:
- Namespace
names:
- '*-vcluster'
- name: sync-archmeister-replication-replication
generate:
apiVersion: v1
kind: Secret
name: prod-archmeister-replication
namespace: '{{request.object.metadata.name}}'
synchronize: true
clone:
namespace: atlantis
name: prod-archmeister-replication
match:
resources:
kinds:
- Namespace
names:
- '*-vcluster'
validationFailureAction: audit validationFailureAction: audit