From 7f2a33b3071890c28b41d6565805b986ec642735 Mon Sep 17 00:00:00 2001 From: Bruno Wu Date: Tue, 17 Oct 2023 12:02:29 +0100 Subject: [PATCH] PDT: Add deployment patch (#225) --- products/pdt/cd/base/deployment.yaml | 1 + products/pdt/cd/overlays/staging/kustomization.yaml | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/products/pdt/cd/base/deployment.yaml b/products/pdt/cd/base/deployment.yaml index b6f92e670..0b1168890 100644 --- a/products/pdt/cd/base/deployment.yaml +++ b/products/pdt/cd/base/deployment.yaml @@ -17,6 +17,7 @@ spec: labels: "app.kubernetes.io/name": "pdt" spec: + serviceAccountName: default containers: - image: pdt name: pdt diff --git a/products/pdt/cd/overlays/staging/kustomization.yaml b/products/pdt/cd/overlays/staging/kustomization.yaml index ffbb04cf9..e217a4544 100644 --- a/products/pdt/cd/overlays/staging/kustomization.yaml +++ b/products/pdt/cd/overlays/staging/kustomization.yaml @@ -12,7 +12,6 @@ patches: kind: Deployment name: pdt patch: |- - - op: add - path: /spec/template/spec - value: - serviceAccountName: pdt + - op: replace + path: /spec/template/spec/serviceAccountName + value: pdt