From 61cb18985ec40352b31e6938691af2fe5f97de3a Mon Sep 17 00:00:00 2001 From: hayk96 Date: Sun, 25 Jun 2023 02:08:14 +0400 Subject: [PATCH 1/2] manifests: Update K8s depracated serviceAccount key Signed-off-by: hayk96 --- examples/manifests/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/manifests/deployment.yaml b/examples/manifests/deployment.yaml index 672b77c..e37d698 100644 --- a/examples/manifests/deployment.yaml +++ b/examples/manifests/deployment.yaml @@ -44,4 +44,4 @@ spec: securityContext: fsGroup: 65534 runAsUser: 65534 - serviceAccount: thanos-receive-controller + serviceAccountName: thanos-receive-controller From 049cee96a884fa01b43ea8f366771e888dec1aa7 Mon Sep 17 00:00:00 2001 From: hayk96 Date: Sun, 25 Jun 2023 18:44:29 +0400 Subject: [PATCH 2/2] update thanos-receive-controller.libsonnet Signed-off-by: hayk96 --- jsonnet/lib/thanos-receive-controller.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/lib/thanos-receive-controller.libsonnet b/jsonnet/lib/thanos-receive-controller.libsonnet index 47e3ff5..8f78b5b 100644 --- a/jsonnet/lib/thanos-receive-controller.libsonnet +++ b/jsonnet/lib/thanos-receive-controller.libsonnet @@ -202,7 +202,7 @@ function(params) { spec: { containers: [c], securityContext: trc.config.securityContext, - serviceAccount: trc.serviceAccount.metadata.name, + serviceAccountName: trc.serviceAccount.metadata.name, }, }, },