Add cleanup and better error handling

This commit is contained in:
2024-01-08 01:52:30 +01:00
parent 439e735203
commit b3cd4037ab
2 changed files with 202 additions and 35 deletions

View File

@ -9,6 +9,10 @@ spec:
target:
kind: Secret
name: app-connection-string
- name: existing-target
target:
kind: Secret
name: database-secret
inputs:
- name: PROTO
from:
@ -34,6 +38,9 @@ spec:
- name: CONNECTION
template: "{{ PROTO }}:{{ USERNAME }}:{{ PASSWORD }}/{{ DATABASE }}"
target: app-connection-string
- name: EXISTING
template: TEST
target: existing-target
- name: IS_POSTGRES
template: |
{{#if (eq PROTO "postgresql") }}