From a5d4d04dd1c25ba0f8cc8c820cdda4c0276e3903 Mon Sep 17 00:00:00 2001 From: Alex Corvin Date: Tue, 3 Oct 2023 08:18:16 -0400 Subject: [PATCH] Remove tower analytics sync pipelines These have been migrated to the new process --- .../prod/secrets/secret-generator.yaml | 2 - ...tower-analytics-stage-sync-secret.enc.yaml | 31 ---------------- .../tower-analytics-sync-secret.enc.yaml | 31 ---------------- .../prod/sync-instances/kustomization.yaml | 2 - .../sync-instances/tower-analytics-stage.yaml | 37 ------------------- .../prod/sync-instances/tower-analytics.yaml | 37 ------------------- 6 files changed, 140 deletions(-) delete mode 100644 s3-sync-pipelines/overlays/prod/secrets/tower-analytics-stage-sync-secret.enc.yaml delete mode 100644 s3-sync-pipelines/overlays/prod/secrets/tower-analytics-sync-secret.enc.yaml delete mode 100644 s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics-stage.yaml delete mode 100644 s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics.yaml diff --git a/s3-sync-pipelines/overlays/prod/secrets/secret-generator.yaml b/s3-sync-pipelines/overlays/prod/secrets/secret-generator.yaml index 1085deb2..afa16015 100644 --- a/s3-sync-pipelines/overlays/prod/secrets/secret-generator.yaml +++ b/s3-sync-pipelines/overlays/prod/secrets/secret-generator.yaml @@ -3,8 +3,6 @@ kind: ksops metadata: name: secret-generator files: - - ./secrets/tower-analytics-sync-secret.enc.yaml - - ./secrets/tower-analytics-stage-sync-secret.enc.yaml - ./secrets/floorist-sync-secret.enc.yaml - ./secrets/usir-stage-sync-secret.enc.yaml - ./secrets/usir-prod-sync-secret.enc.yaml diff --git a/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-stage-sync-secret.enc.yaml b/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-stage-sync-secret.enc.yaml deleted file mode 100644 index f3384c3a..00000000 --- a/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-stage-sync-secret.enc.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: tower-analytics-stage-sync -stringData: - rclone.conf: ENC[AES256_GCM,data:Ad3HHzmGPrKfFiwi5p7kVvqEXIiqoaUI2qfNkcuUWQZnV5gAHZmMCftrXNLczL5NTGBFBeZQdLQsRFPWaZh2QtMJkTVY2hi8kLo3Pm4WBLIGY5vJf/4xKHcwXU2CNAJQtKEbEG3PmLCJ+d+YthcxtbLeB8JjMp736xYMgSvu+ctufPzB1+FxFKRdW7xvQnWGLA35TE+593aODWA22BVAc8CcRqYAkJhMcYlGp2/1j7dgu5+GT1ClXRknCKZ9aWEby7Ks6n1Jvi6TSAlYpynfkdSZ5D/0LC3vIavPZ9BVOJzGm2h6FVjqlLIvnF+GCHgvkg2uBGQUtHBxkGGq3y8YubnYViaDCFEI5oJNh2r3974MFrC4es5UJC/wJBpRIwS7bBZcUEkRWJdPSb5TlIHs8Jdh6zh2B4HU2L/Y+TrwcUZ6rpBElBqZCr8lCuLtBpt1dZvh3cc8NPp39wme1Tl2uskWN9AlQPF5NSdu5JVN7bkAOHw/X9tx,iv:biCOhxzDmi3ouQNDhwMECQqZLNSKI3DerwflaxIFQyY=,tag:7WFrMdI6CGfJ5A7eEDa2JQ==,type:str] -sops: - kms: [] - gcp_kms: [] - azure_kv: [] - hc_vault: [] - lastmodified: '2022-05-06T14:02:47Z' - mac: ENC[AES256_GCM,data:68dRsTcxlvQ8pNiOeOwzt/T9c/MoD32NyYhK/0SrT+mD3qCQ7Eud2ybJhVq9LkFUo6q+fH1GFM7pwVXoQhj7xhTaLQm/CEAffE7Gz0qwG5RuC0DYlKxdt2ZHfSIpF4qri20JTLfJ1fTqwL0ABc5MpCGlcOJUdOXJ0l7svdOn9+U=,iv:KIZsLn9P+P7oxr3Wj5+fO6jTVyiInA47iIbKY9uQyh4=,tag:BLYT7njIYpHIHWMxBVHqUw==,type:str] - pgp: - - created_at: '2022-05-06T14:02:46Z' - enc: | - -----BEGIN PGP MESSAGE----- - - hQEMA/irrHa183bxAQf+NKXwJF2oe5ehMWkxGtit7gvihEIDYk0U5gCgY+pGVuB+ - Mu2oJnDHmx+UnihJyGePM9oxsoQJmv21rqqQEe9P3cqk3qx36XAh2CPFbp3vRGE5 - BNqkkg+hYr7KNa/p2r1PXIBLRTP9Ho1I60xR96yvW/oFOVw/VaH1Yb+k7hRtQoPl - sEiHX0hNDiymy3l0XPR6ZMlxK8fgnut4QDUOYjMK1aEvwb1tA0rum1cDlpADzW3u - ja9vqvi/7WFM2wVn9Tl+FydOKLAgNNgXmtxIx8JpJaJdEACzRyL95FamgAXIH/ue - 624BZiglmT67Ep2QNZs/bRtlzDnnW3FQNNzICJ0EPdJeASJkHbDftcuh+sdi6pXz - PvfHR04RKowBAGrF9xJa4XVtWg22F18JWb/czCFAFivVd43yJX8oIkU7ICwvBCmD - v3DguQ+Wygmc7TozDU4+LuRmYD0p3iw3XLi/5Tsa/g== - =PLkw - -----END PGP MESSAGE----- - fp: EFDB9AFBD18936D9AB6B2EECBD2C73FF891FBC7E - encrypted_regex: ^(data|stringData|tls)$ - version: 3.6.1 diff --git a/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-sync-secret.enc.yaml b/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-sync-secret.enc.yaml deleted file mode 100644 index c276744d..00000000 --- a/s3-sync-pipelines/overlays/prod/secrets/tower-analytics-sync-secret.enc.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: tower-analytics-sync -stringData: - rclone.conf: ENC[AES256_GCM,data:2bJZGxNW7yKTomA61yOQ6254vjnjJnYIi4NSekbofU7azePm2KkUvTMTomIAbyjxCNMliUM2V9AQaOaa1LGUL4fDKEoLGDVru+9kZ8uvxeRhZ66YgODvmvSc0lgLsAn82mIDX66DDan72fQruYCnBXdFv9Ro5PfZNwae6n7cxB5gxsWcB73Yr0g4z6wGOXo1wcH/Npt9Eat8/i+YH+uwhpxeOd/y2xgHSkrIFN160gqR0OdamoXJAChMP+oqInjq6v/V/aFjXhH8jHwXRlLtwnXtdEvhvm1g6pHmTMW2FIhLCrel2sQKWxeUTR1fMNnV9xbGAOBv2U34sEhOWLvjs2w5K/R9MUAfdYtC5PbCFD7zNrb8F/Pgpp3hFWpil9mGucmBsYkOL6N7iZXAfdpROM7pm/IKgHQHbWjmEOsCOnmncyrywLUWnO/fUQp61zlzQ5bl5xHkJyJMCBpIwncX+ubNFjZUWGEN0RyBjCeLTAG4sx5zmcDC,iv:j7GpLPOi7qQXimulHpulx2o04E+Q923SwffIz1d6cCY=,tag:6v4fvRZ9sKm7qh0yRon2Yw==,type:str] -sops: - kms: [] - gcp_kms: [] - azure_kv: [] - hc_vault: [] - lastmodified: '2022-05-06T14:00:26Z' - mac: ENC[AES256_GCM,data:tOjD0W+E+utT9T+qpzbHo1MI0zwgDmqQR016rGridShPMtlizb3fX0t2trL+QnnsVPvhSYgnwsbn922lFnI4sY0E26cw6iHbnyiKn9ZQEDgf+EeTBG9EOmbT6mE8Ava0FST/IbOVWwKdI/jZGTCGTvHhgJ7ISwjagdQwCZfU+p0=,iv:Wy2bI+OLvsZmHIh6SH34XUUTeb48ByQhOHAX6vtlY+k=,tag:ushie3696Kt1dcl3RKBeGA==,type:str] - pgp: - - created_at: '2022-05-05T14:13:25Z' - enc: | - -----BEGIN PGP MESSAGE----- - - hQEMA/irrHa183bxAQf+OEsmpTnmTxLA3gDZ7WRWaSCioNJHIagdccHvuyFMTkqU - K3jBQrG08+aSwdechHOKO0h6/UwpKHeUR1a8v/m9PMepJfhxJy92jXC+R/uywq1L - TQ24n2Fx56cGuxWIRLvCzMcTXvMzjM4vd7BJa6LCI4ezJCNv8kEkrn+YHtQCT+2h - InBQ5o2HHeK+pFqQH1EugbWEumfpSGK7eJ7inHC9adfNs6l0REwStb1XKW26VZ3j - 3ejcq4G912XBAI4gTjURMIbjjK93ugAKZGU5ya+MzmxpN2aN0nHv1uEC0fAjfxVP - 0hk+1BUzuIwBmXoikDiEFmncXQYHrqH3FilXp7Dxy9JcAThmeBEVRMkODt4RAeMu - I0yl0+FjBO9lbDPGz1Nm912n8RCECIq8xI5NhzvwZod0ogsPbHYam5Nyr+R++S1F - 0iQeBzZ1IwYyQY7pM0vmchC9iGqZS/+5wCzs1ZU= - =f/fp - -----END PGP MESSAGE----- - fp: EFDB9AFBD18936D9AB6B2EECBD2C73FF891FBC7E - encrypted_regex: ^(data|stringData|tls)$ - version: 3.6.1 diff --git a/s3-sync-pipelines/overlays/prod/sync-instances/kustomization.yaml b/s3-sync-pipelines/overlays/prod/sync-instances/kustomization.yaml index 322aa867..6e7b12d7 100644 --- a/s3-sync-pipelines/overlays/prod/sync-instances/kustomization.yaml +++ b/s3-sync-pipelines/overlays/prod/sync-instances/kustomization.yaml @@ -4,6 +4,4 @@ kind: Kustomization resources: - usir-prod.yaml - usir-stage.yaml - - tower-analytics.yaml - - tower-analytics-stage.yaml - floorist.yaml diff --git a/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics-stage.yaml b/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics-stage.yaml deleted file mode 100644 index 192dcee6..00000000 --- a/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics-stage.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: tower-analytics-stage-sync -spec: - schedule: "0 6 * * *" - jobTemplate: - spec: - template: - spec: - containers: - - name: trigger - image: quay.io/rhn_support_sreber/curl - args: ["curl", "-X", "POST", "--data", "{}", "el-tower-analytics-stage-sync-listener:8080"] - restartPolicy: Never - ---- -apiVersion: triggers.tekton.dev/v1beta1 -kind: EventListener -metadata: - name: tower-analytics-stage-sync-listener -spec: - serviceAccountName: s3-sync - triggers: - - name: s3-sync - bindings: - - name: src_bucket - value: tower-analytics-dbdumps-stage-s3 - - name: dest_bucket - value: DH-DEV-TOWER-ANALYTICS - - name: rclone_params - value: "" - - name: sync_config_secret_name - value: tower-analytics-stage-sync - template: - ref: s3-sync diff --git a/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics.yaml b/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics.yaml deleted file mode 100644 index a1c15237..00000000 --- a/s3-sync-pipelines/overlays/prod/sync-instances/tower-analytics.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: tower-analytics-sync -spec: - schedule: "0 6 * * *" - jobTemplate: - spec: - template: - spec: - containers: - - name: trigger - image: quay.io/rhn_support_sreber/curl - args: ["curl", "-X", "POST", "--data", "{}", "el-tower-analytics-sync-listener:8080"] - restartPolicy: Never - ---- -apiVersion: triggers.tekton.dev/v1beta1 -kind: EventListener -metadata: - name: tower-analytics-sync-listener -spec: - serviceAccountName: s3-sync - triggers: - - name: s3-sync - bindings: - - name: src_bucket - value: tower-analytics-dbdumps-prod - - name: dest_bucket - value: DH-SECURE-TOWER-ANALYTICS - - name: rclone_params - value: "" - - name: sync_config_secret_name - value: tower-analytics-sync - template: - ref: s3-sync