Skip to content

Commit

Permalink
update namespace only when unset
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed May 17, 2024
1 parent ebeceee commit 82c43ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .k8s/base/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: louper-deployment
namespace: louper
labels:
app: louper
spec:
Expand Down Expand Up @@ -30,7 +29,6 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: louper
name: louper-db
spec:
accessModes:
Expand Down
1 change: 0 additions & 1 deletion .k8s/base/service.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: v1
kind: Service
metadata:
namespace: louper
name: louper-service
spec:
type: NodePort
Expand Down
1 change: 0 additions & 1 deletion .k8s/staging/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
targetRevision: dev
destination:
server: 'https://kubernetes.default.svc'
namespace: louper-staging
syncPolicy:
automated:
prune: true
Expand Down
10 changes: 8 additions & 2 deletions .k8s/staging/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ patches:
kind: Service
name: louper-service
path: service-patch.yml

namespace: louper-staging
transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: nsTransform
namespace: louper-staging
unsetOnly: true
nameSuffix: -staging
commonLabels:
app: louper-staging

0 comments on commit 82c43ec

Please # to comment.