Skip to content

Commit

Permalink
add ability to disable ingress creation (#8046)
Browse files Browse the repository at this point in the history
* add option to disable ingress creation

* bump chart version
  • Loading branch information
enneitex authored Jul 21, 2023
1 parent 3092e7b commit 09fd3e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/helm-chart/kubernetes-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

apiVersion: v2
name: kubernetes-dashboard
version: 7.0.2
version: 7.0.3
appVersion: "v3.0.0-alpha0"
description: General-purpose web UI for Kubernetes clusters
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

{{- if .Values.app.ingress.enabled }}
{{- if not (or (eq .Values.app.ingress.issuer.scope "default") (eq .Values.app.ingress.issuer.scope "cluster")) }}
{{- fail "value of .Values.app.ingress.issuer.scope must be one of [default, cluster]"}}
{{- end }}
Expand Down Expand Up @@ -85,3 +86,4 @@ spec:
port:
name: {{ .Values.api.role }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if eq .Values.app.ingress.issuer.name "selfsigned" -}}
{{- if and (.Values.app.ingress.enabled) (eq .Values.app.ingress.issuer.name "selfsigned") -}}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
Expand Down
1 change: 1 addition & 0 deletions charts/helm-chart/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ app:
# # Is this CRD namespaced?
# namespaced: true
ingress:
enabled: true
hosts:
# Keep 'localhost' host only if you want to access Dashboard using 'kubectl port-forward ...' on:
# https://localhost:8443
Expand Down

0 comments on commit 09fd3e7

Please sign in to comment.