You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/04/13 11:05:10 UTC

[apisix-helm-chart] branch master updated: feat: add namespace support for apisix-dashboard when using helm (#60)

This is an automated email from the ASF dual-hosted git repository.

tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new 3833c26  feat: add namespace support for apisix-dashboard when using helm (#60)
3833c26 is described below

commit 3833c2644fd46187cdbdbdaf3d8242b31ac325b2
Author: wonglend <gk...@qq.com>
AuthorDate: Tue Apr 13 19:05:02 2021 +0800

    feat: add namespace support for apisix-dashboard when using helm (#60)
---
 charts/apisix-dashboard/Chart.yaml                    | 2 +-
 charts/apisix-dashboard/templates/configmap.yaml      | 1 +
 charts/apisix-dashboard/templates/deployment.yaml     | 1 +
 charts/apisix-dashboard/templates/hpa.yaml            | 1 +
 charts/apisix-dashboard/templates/ingress.yaml        | 1 +
 charts/apisix-dashboard/templates/service.yaml        | 1 +
 charts/apisix-dashboard/templates/serviceaccount.yaml | 1 +
 7 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/charts/apisix-dashboard/Chart.yaml b/charts/apisix-dashboard/Chart.yaml
index 541baf7..832b620 100644
--- a/charts/apisix-dashboard/Chart.yaml
+++ b/charts/apisix-dashboard/Chart.yaml
@@ -31,7 +31,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.1.1
+version: 0.1.2
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/charts/apisix-dashboard/templates/configmap.yaml b/charts/apisix-dashboard/templates/configmap.yaml
index 484c127..3836e8b 100644
--- a/charts/apisix-dashboard/templates/configmap.yaml
+++ b/charts/apisix-dashboard/templates/configmap.yaml
@@ -18,6 +18,7 @@ apiVersion: v1
 kind: ConfigMap
 metadata:
   name: {{ include "apisix-dashboard.fullname" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
 data:
diff --git a/charts/apisix-dashboard/templates/deployment.yaml b/charts/apisix-dashboard/templates/deployment.yaml
index bf633ec..03bbc49 100644
--- a/charts/apisix-dashboard/templates/deployment.yaml
+++ b/charts/apisix-dashboard/templates/deployment.yaml
@@ -18,6 +18,7 @@ apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "apisix-dashboard.fullname" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
 spec:
diff --git a/charts/apisix-dashboard/templates/hpa.yaml b/charts/apisix-dashboard/templates/hpa.yaml
index cd8b931..9048605 100644
--- a/charts/apisix-dashboard/templates/hpa.yaml
+++ b/charts/apisix-dashboard/templates/hpa.yaml
@@ -19,6 +19,7 @@ apiVersion: autoscaling/v2beta1
 kind: HorizontalPodAutoscaler
 metadata:
   name: {{ include "apisix-dashboard.fullname" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
 spec:
diff --git a/charts/apisix-dashboard/templates/ingress.yaml b/charts/apisix-dashboard/templates/ingress.yaml
index 0058d94..01b0dd1 100644
--- a/charts/apisix-dashboard/templates/ingress.yaml
+++ b/charts/apisix-dashboard/templates/ingress.yaml
@@ -25,6 +25,7 @@ apiVersion: extensions/v1beta1
 kind: Ingress
 metadata:
   name: {{ $fullName }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
   {{- with .Values.ingress.annotations }}
diff --git a/charts/apisix-dashboard/templates/service.yaml b/charts/apisix-dashboard/templates/service.yaml
index 2007652..12a091d 100644
--- a/charts/apisix-dashboard/templates/service.yaml
+++ b/charts/apisix-dashboard/templates/service.yaml
@@ -18,6 +18,7 @@ apiVersion: v1
 kind: Service
 metadata:
   name: {{ include "apisix-dashboard.fullname" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
 spec:
diff --git a/charts/apisix-dashboard/templates/serviceaccount.yaml b/charts/apisix-dashboard/templates/serviceaccount.yaml
index 9b0b5b7..e87fcf7 100644
--- a/charts/apisix-dashboard/templates/serviceaccount.yaml
+++ b/charts/apisix-dashboard/templates/serviceaccount.yaml
@@ -19,6 +19,7 @@ apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: {{ include "apisix-dashboard.serviceAccountName" . }}
+  namespace: {{ .Release.Namespace }}
   labels:
     {{- include "apisix-dashboard.labels" . | nindent 4 }}
   {{- with .Values.serviceAccount.annotations }}