Skip to content

Commit

Permalink
namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
eedorenko committed May 2, 2024
1 parent 7748a04 commit ebffcd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ .Values.app.name}}-deployment
annotations:
version: {{ .Values.version}}
{{ if .Values.namespace }}
namespace: {{ .Values.namespace}}
{{ end }}
spec:
strategy:
type: Recreate
Expand Down
3 changes: 3 additions & 0 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: Service
metadata:
name: {{ .Values.app.name}}-service
{{ if .Values.namespace }}
namespace: {{ .Values.namespace}}
{{ end }}
spec:
selector:
app: {{ .Values.app.name}}
Expand Down

0 comments on commit ebffcd0

Please sign in to comment.