From f8d6aac0675ca5132b4a6200fc44fb82192c30a0 Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Thu, 30 Mar 2023 11:46:47 +0900 Subject: [PATCH] fix(kustomize): Use k8s recommended name label (#3261) See https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels. --- kustomize/bundle.yaml | 6 +++--- runatlantis.io/docs/deployment.md | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/kustomize/bundle.yaml b/kustomize/bundle.yaml index ac9fadc7e..0fd1cf602 100644 --- a/kustomize/bundle.yaml +++ b/kustomize/bundle.yaml @@ -12,11 +12,11 @@ spec: partition: 0 selector: matchLabels: - app: atlantis + app.kubernetes.io/name: atlantis template: metadata: labels: - app: atlantis + app.kubernetes.io/name: atlantis spec: securityContext: fsGroup: 1000 # Atlantis group (1000) read/write access to volumes. @@ -79,4 +79,4 @@ spec: port: 80 targetPort: 4141 selector: - app: atlantis + app.kubernetes.io/name: atlantis diff --git a/runatlantis.io/docs/deployment.md b/runatlantis.io/docs/deployment.md index 16103942d..4df0dea3a 100644 --- a/runatlantis.io/docs/deployment.md +++ b/runatlantis.io/docs/deployment.md @@ -140,11 +140,11 @@ spec: partition: 0 selector: matchLabels: - app: atlantis + app.kubernetes.io/name: atlantis template: metadata: labels: - app: atlantis + app.kubernetes.io/name: atlantis spec: securityContext: fsGroup: 1000 # Atlantis group (1000) read/write access to volumes. @@ -270,7 +270,7 @@ spec: port: 80 targetPort: 4141 selector: - app: atlantis + app.kubernetes.io/name: atlantis ``` @@ -285,16 +285,16 @@ kind: Deployment metadata: name: atlantis labels: - app: atlantis + app.kubernetes.io/name: atlantis spec: replicas: 1 selector: matchLabels: - app: atlantis + app.kubernetes.io/name: atlantis template: metadata: labels: - app: atlantis + app.kubernetes.io/name: atlantis spec: containers: - name: atlantis @@ -403,7 +403,7 @@ spec: port: 80 targetPort: 4141 selector: - app: atlantis + app.kubernetes.io/name: atlantis ```