From 0f3db0b6caa4ac277d567b3c22d37e6b49416425 Mon Sep 17 00:00:00 2001 From: ena <37400297+enarha@users.noreply.github.com> Date: Thu, 7 Sep 2023 20:15:04 +0300 Subject: [PATCH] Remove PaC ConfigMap Prod (#2372) We now deploy PaC through the OSP operator, so the configuration is read from the TektonConfig CR. The change has been validated in Staging. CLEANUP: pipelines-as-code-secret-path.yaml was a leftover from a previous change and it was not used. --- .../production/base/kustomization.yaml | 11 +++++------ .../base/pipelines-as-code-secret-path.yaml | 4 ---- .../production/base/update-tekton-config-pac.yaml | 9 +++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 components/pipeline-service/production/base/pipelines-as-code-secret-path.yaml create mode 100644 components/pipeline-service/production/base/update-tekton-config-pac.yaml diff --git a/components/pipeline-service/production/base/kustomization.yaml b/components/pipeline-service/production/base/kustomization.yaml index 869a409c229..304a103a212 100644 --- a/components/pipeline-service/production/base/kustomization.yaml +++ b/components/pipeline-service/production/base/kustomization.yaml @@ -8,7 +8,7 @@ commonAnnotations: argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true resources: - - git::https://github.com/openshift-pipelines/pipeline-service.git/operator/gitops/argocd/pipeline-service?ref=153ce437712b2da250c5d9b168ac0fed5e0ffd85 + - git::https://github.com/openshift-pipelines/pipeline-service.git/operator/gitops/argocd/pipeline-service?ref=a806b150697f03f47395a8c998d4fc82dbc25f95 - pipelines-as-code-secret.yaml # create external secret in openshift-pipelines namespace - ../../base/external-secrets - ../../base/testing @@ -16,16 +16,15 @@ resources: - team-support-rbac.yaml patches: - - path: pac-config.yaml - target: - kind: ConfigMap - name: pipelines-as-code - namespace: openshift-pipelines # - path: scale-down-exporter.yaml # target: # kind: Deployment # name: pipeline-metrics-exporter # namespace: openshift-pipelines + - path: update-tekton-config-pac.yaml + target: + kind: TektonConfig + name: config - path: update-tekton-config-performance.yaml target: kind: TektonConfig diff --git a/components/pipeline-service/production/base/pipelines-as-code-secret-path.yaml b/components/pipeline-service/production/base/pipelines-as-code-secret-path.yaml deleted file mode 100644 index 7af9ce535c0..00000000000 --- a/components/pipeline-service/production/base/pipelines-as-code-secret-path.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- op: add - path: /spec/dataFrom/0/extract/key - value: production/pipeline-service/github-app diff --git a/components/pipeline-service/production/base/update-tekton-config-pac.yaml b/components/pipeline-service/production/base/update-tekton-config-pac.yaml new file mode 100644 index 00000000000..b207bf90c5b --- /dev/null +++ b/components/pipeline-service/production/base/update-tekton-config-pac.yaml @@ -0,0 +1,9 @@ +--- +- op: add + path: /spec/platforms/openshift/pipelinesAsCode/settings + value: + application-name: Red Hat Trusted App Pipeline + custom-console-name: Red Hat Trusted App Pipeline + custom-console-url: https://console.redhat.com/preview/application-pipeline + custom-console-url-pr-details: https://console.redhat.com/preview/application-pipeline + custom-console-url-pr-tasklog: https://console.redhat.com/preview/application-pipeline