wip: fixing rabbitmq bindings (kuk)
This commit is contained in:
@@ -6,7 +6,7 @@ secretGenerator:
|
||||
- appsettings.json
|
||||
- name: staging-archmeister-env
|
||||
envs:
|
||||
- auxiliary.env
|
||||
- default.env
|
||||
patches:
|
||||
- path: deployment_patch.yaml
|
||||
target:
|
||||
|
||||
@@ -11,11 +11,9 @@ spec:
|
||||
version: v1
|
||||
metadata:
|
||||
- name: host
|
||||
value: "amqp://user:${{ env.AMQP_PASSWORD }}@prod-rabbitmq.rabbitmq.svc"
|
||||
- name: password
|
||||
secretKeyRef:
|
||||
name: prod-rabbitmq
|
||||
key: rabbitmq-password
|
||||
key: connString
|
||||
- name: queueName
|
||||
value: prod-hipster-slurm-job-events
|
||||
- name: durable
|
||||
|
||||
@@ -6,25 +6,6 @@ spec:
|
||||
background: true
|
||||
generateExistingOnPolicyUpdate: true
|
||||
rules:
|
||||
- name: sync-redis-secrets
|
||||
generate:
|
||||
apiVersion: v1
|
||||
namespace: atlantis
|
||||
synchronize: true
|
||||
cloneList:
|
||||
namespace: redis
|
||||
kinds:
|
||||
- Secret
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: redis
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
- Namespace
|
||||
names:
|
||||
- atlantis
|
||||
- '*-vcluster'
|
||||
- name: sync-rabbitmq-secrets
|
||||
generate:
|
||||
apiVersion: v1
|
||||
@@ -44,6 +25,48 @@ spec:
|
||||
names:
|
||||
- atlantis
|
||||
- '*-vcluster'
|
||||
- name: add-rabbitmq-connstring
|
||||
mutate:
|
||||
targets:
|
||||
- apiVersion: v1
|
||||
kind: Secret
|
||||
namespace: atlantis
|
||||
name: '{{request.object.metadata.name}}'
|
||||
patchStrategicMerge:
|
||||
data:
|
||||
connString: "connString: {{base64_encode(join('amqp://user:', '{{request.object.data.rabbitmq-password}}')) }}"
|
||||
# connString: "connString: aHVubnktYnVubnk="
|
||||
match:
|
||||
all:
|
||||
- resources:
|
||||
kinds:
|
||||
- Secret
|
||||
names:
|
||||
- staging-rabbitmq
|
||||
- resources:
|
||||
kinds:
|
||||
- Namespace
|
||||
names:
|
||||
- rabbitmq
|
||||
- name: sync-redis-secrets
|
||||
generate:
|
||||
apiVersion: v1
|
||||
namespace: atlantis
|
||||
synchronize: true
|
||||
cloneList:
|
||||
namespace: redis
|
||||
kinds:
|
||||
- Secret
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: redis
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
- Namespace
|
||||
names:
|
||||
- atlantis
|
||||
- '*-vcluster'
|
||||
- name: sync-archmeister-replication-ca
|
||||
generate:
|
||||
apiVersion: v1
|
||||
|
||||
Reference in New Issue
Block a user