Skip to content

Commit fadd6f2

Browse files
committedAug 18, 2024·
rails-application: add component label/selector
1 parent fe47a16 commit fadd6f2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
 

‎charts/rails-application/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: rails-application
33
description: Base chart for my rails applications
44
type: application
5-
version: "0.1.0-alpha2"
5+
version: "0.1.0-alpha3"

‎charts/rails-application/templates/deployment.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spec:
1111
{{- end }}
1212
selector:
1313
matchLabels:
14+
app.kubernetes.io/component: {{ $deploymentName }}
1415
{{- include "rails-application.selectorLabels" $ | nindent 6 }}
1516
template:
1617
metadata:
@@ -19,7 +20,7 @@ spec:
1920
{{- toYaml . | nindent 8 }}
2021
{{- end }}
2122
labels:
22-
"k8s.klaus-meyer.net/deployment-type": {{ $deploymentName }}
23+
app.kubernetes.io/component: {{ $deploymentName }}
2324
{{- include "rails-application.labels" $ | nindent 8 }}
2425
{{- with $.Values.podLabels }}
2526
{{- toYaml . | nindent 8 }}

‎charts/rails-application/templates/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ spec:
1212
protocol: TCP
1313
name: http
1414
selector:
15-
k8s.klaus-meyer.net/deployment-type: web
15+
app.kubernetes.io/component: web
1616
{{- include "rails-application.selectorLabels" . | nindent 4 }}

0 commit comments

Comments
 (0)
Please sign in to comment.