Skip to content

Commit

Permalink
Merge pull request #19 from benjdlambert/blam/add-labels-to-chart
Browse files Browse the repository at this point in the history
Add labels to `service` and `deployment` types
  • Loading branch information
kflynn authored Jun 7, 2024
2 parents ffe8524 + eb9dea9 commit d571027
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions faces-chart/templates/color.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: color
namespace: {{ .Release.Namespace }}
labels:
service: color
spec:
type: ClusterIP
selector:
Expand All @@ -17,6 +19,8 @@ kind: Deployment
metadata:
name: color
namespace: {{ .Release.Namespace }}
labels:
service: color
spec:
replicas: 1
selector:
Expand Down
4 changes: 4 additions & 0 deletions faces-chart/templates/color2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ kind: Service
metadata:
name: color2
namespace: {{ .Release.Namespace }}
labels:
service: color2
spec:
type: ClusterIP
selector:
Expand All @@ -18,6 +20,8 @@ kind: Deployment
metadata:
name: color2
namespace: {{ .Release.Namespace }}
labels:
service: color2
spec:
replicas: 1
selector:
Expand Down
4 changes: 4 additions & 0 deletions faces-chart/templates/face.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: face
namespace: {{ .Release.Namespace }}
labels:
service: face
spec:
type: ClusterIP
selector:
Expand All @@ -17,6 +19,8 @@ kind: Deployment
metadata:
name: face
namespace: {{ .Release.Namespace }}
labels:
service: face
spec:
replicas: 1
selector:
Expand Down
4 changes: 4 additions & 0 deletions faces-chart/templates/faces-gui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: faces-gui
namespace: {{ .Release.Namespace }}
labels:
service: faces-gui
spec:
type: {{ .Values.gui.serviceType }}
selector:
Expand All @@ -17,6 +19,8 @@ kind: Deployment
metadata:
name: faces-gui
namespace: {{ .Release.Namespace }}
labels:
service: faces-gui
spec:
replicas: 1
selector:
Expand Down
4 changes: 4 additions & 0 deletions faces-chart/templates/smiley.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: smiley
namespace: {{ .Release.Namespace }}
labels:
service: smiley
spec:
type: ClusterIP
selector:
Expand All @@ -17,6 +19,8 @@ kind: Deployment
metadata:
name: smiley
namespace: {{ .Release.Namespace }}
labels:
service: smiley
spec:
replicas: 1
selector:
Expand Down
6 changes: 5 additions & 1 deletion faces-chart/templates/smiley2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ kind: Service
metadata:
name: smiley2
namespace: {{ .Release.Namespace }}
labels:
service: smiley2
spec:
type: ClusterIP
selector:
Expand All @@ -18,6 +20,8 @@ kind: Deployment
metadata:
name: smiley2
namespace: {{ .Release.Namespace }}
labels:
service: smiley2
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -53,4 +57,4 @@ spec:
limits:
cpu: 250m
memory: 128Mi
{{ end }}
{{ end }}

0 comments on commit d571027

Please sign in to comment.