2023-11-24 17:42:45 +00:00
|
|
|
---
|
|
|
|
apiVersion: shoebill.badhouseplants.net/v1alpha1
|
|
|
|
kind: ConfigSet
|
|
|
|
metadata:
|
|
|
|
name: test
|
|
|
|
spec:
|
|
|
|
targets:
|
|
|
|
- name: app-connection-string
|
|
|
|
target:
|
|
|
|
kind: Secret
|
|
|
|
name: app-connection-string
|
2024-01-08 00:52:30 +00:00
|
|
|
- name: existing-target
|
|
|
|
target:
|
|
|
|
kind: Secret
|
|
|
|
name: database-secret
|
2023-11-24 17:42:45 +00:00
|
|
|
inputs:
|
2023-12-26 10:15:38 +00:00
|
|
|
- name: PROTO
|
|
|
|
from:
|
|
|
|
kind: ConfigMap
|
|
|
|
name: database-configmap
|
|
|
|
key: PROTOCOL
|
2023-11-24 17:42:45 +00:00
|
|
|
- name: PASSWORD
|
|
|
|
from:
|
|
|
|
kind: Secret
|
|
|
|
name: database-secret
|
|
|
|
key: PASSWORD
|
|
|
|
- name: USERNAME
|
|
|
|
from:
|
|
|
|
kind: Secret
|
|
|
|
name: database-secret
|
|
|
|
key: USERNAME
|
|
|
|
- name: DATABASE
|
|
|
|
from:
|
|
|
|
kind: Secret
|
|
|
|
name: database-secret
|
|
|
|
key: DATABASE
|
|
|
|
templates:
|
|
|
|
- name: CONNECTION
|
|
|
|
template: "{{ PROTO }}:{{ USERNAME }}:{{ PASSWORD }}/{{ DATABASE }}"
|
|
|
|
target: app-connection-string
|
2024-01-08 00:52:30 +00:00
|
|
|
- name: EXISTING
|
|
|
|
template: TEST
|
|
|
|
target: existing-target
|
2023-11-24 17:42:45 +00:00
|
|
|
- name: IS_POSTGRES
|
|
|
|
template: |
|
|
|
|
{{#if (eq PROTO "postgresql") }}
|
|
|
|
true
|
|
|
|
{{ else }}
|
|
|
|
false
|
|
|
|
{{/if}}
|
|
|
|
target: app-connection-string
|