fix(kustomize): Use k8s recommended name label (#3261)

See https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels.
This commit is contained in:
Shouichi Kamiya
2023-03-30 11:46:47 +09:00
committed by GitHub
parent 617714034f
commit f8d6aac067
2 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -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
```
</details>
@@ -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
```
</details>