Skip to content

Commit 8ece645

Browse files
committed
Add new Helm chart templates for orders and products services; update namespaces and remove outdated YAML files
1 parent 9950565 commit 8ece645

12 files changed

+22
-10
lines changed

src/apps/k8s/helm/gnxchart/templates/_helpers.tpl

Whitespace-only changes.

src/apps/k8s/helm/gnxchart/templates/apigateway-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
namespace: gnx-apps-ns
65
name: apigateway
6+
namespace: {{ .Release.Namespace }}
77
spec:
88
replicas: 1 # Number of pods to run
99
selector:

src/apps/k8s/helm/gnxchart/templates/apigateway-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
namespace: gnx-apps-ns
65
name: apigateway-svc
6+
namespace: {{ .Release.Namespace }}
77
spec:
88
selector:
99
app: apigateway # Select pods with this label
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ .Release.Name }}-configmap
5+
namespace: {{ .Release.Namespace }}
6+
data:
7+
placeholdervalue: "Hello World"

src/apps/k8s/helm/gnxchart/templates/identities-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
namespace: gnx-apps-ns
65
name: identities
6+
namespace: {{ .Release.Namespace }}
77
spec:
88
replicas: 1 # Number of pods to run
99
selector:

src/apps/k8s/helm/gnxchart/templates/identities-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
namespace: gnx-apps-ns
65
name: identities-svc
6+
namespace: {{ .Release.Namespace }}
77
spec:
88
selector:
99
app: identities # Select pods with this label

src/apps/k8s/helm/gnxchart/templates/notifications-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
namespace: gnx-apps-ns
65
name: notifications
6+
namespace: {{ .Release.Namespace }}
77
spec:
88
replicas: 1 # Number of pods to run
99
selector:

src/apps/k8s/helm/gnxchart/templates/notifications-service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
namespace: gnx-apps-ns
65
name: notifications-svc
6+
namespace: {{ .Release.Namespace }}
7+
78
spec:
89
selector:
910
app: notifications # Select pods with this label

src/apps/k8s/helm/gnxchart/templates/orders-deployment.yml renamed to src/apps/k8s/helm/gnxchart/templates/orders-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
5-
namespace: gnx-apps-ns
65
name: orders
6+
namespace: {{ .Release.Namespace }}
7+
78
spec:
89
replicas: 1 # Number of pods to run
910
selector:

src/apps/k8s/helm/gnxchart/templates/orders-service.yml renamed to src/apps/k8s/helm/gnxchart/templates/orders-service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
namespace: gnx-apps-ns
65
name: orders-svc
6+
namespace: {{ .Release.Namespace }}
7+
78
spec:
89
selector:
910
app: orders # Select pods with this label

0 commit comments

Comments
 (0)