From 284e150a3c960ec6809a1022e76e867669a0ce67 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Tue, 8 Jul 2025 13:10:52 +0100 Subject: [PATCH] forgejo: create the oadp secret from file Signed-off-by: David Kirwan --- ...ate-oadp-dataprotectionapplication-config.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/roles/openshift-apps/forgejo/tasks/create-oadp-dataprotectionapplication-config.yml b/roles/openshift-apps/forgejo/tasks/create-oadp-dataprotectionapplication-config.yml index 7b0cb3a7ba..858fcd5245 100644 --- a/roles/openshift-apps/forgejo/tasks/create-oadp-dataprotectionapplication-config.yml +++ b/roles/openshift-apps/forgejo/tasks/create-oadp-dataprotectionapplication-config.yml @@ -28,10 +28,18 @@ state: present src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-dataprotectionapplication.yaml" -# - name: Deploy the forgejo-oadp-secret.yaml secret -# kubernetes.core.k8s: -# state: present -# src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-secret.yaml" +- name: Create the OADP secret + kubernetes.core.k8s: + state: present + definition: + apiVersion: v1 + kind: Secret + type: Opaque + metadata: + name: "cloud-credentials" + namespace: "forgejo" + data: + cloud: "{{ lookup('template', '/root/ocp4/openshift-apps/forgejo/forgejo-oadp-secret' ) | b64encode }}" - name: Deploy the forgejo-oadp-backup.yaml secret kubernetes.core.k8s: