Przeglądaj źródła

Remove ingress from minio chart

Waqar Ahmed 5 lat temu
rodzic
commit
7ee19dd170

+ 0 - 5
test/minio/8.0.5/README.md

@@ -140,11 +140,6 @@ The following table lists the configurable parameters of the MinIO chart and the
 | `mcImage.repository`                             | Client image repository                                                                                                                 | `minio/mc`                       |
 | `mcImage.tag`                                    | mc image tag. Possible values listed [here](https://hub.docker.com/r/minio/mc/tags/).                                                   | `RELEASE.2020-10-03T02-54-56Z`   |
 | `mcImage.pullPolicy`                             | mc Image pull policy                                                                                                                    | `IfNotPresent`                   |
-| `ingress.enabled`                                | Enables Ingress                                                                                                                         | `false`                          |
-| `ingress.labels     `                            | Ingress labels                                                                                                                          | `{}`                             |
-| `ingress.annotations`                            | Ingress annotations                                                                                                                     | `{}`                             |
-| `ingress.hosts`                                  | Ingress accepted hostnames                                                                                                              | `[]`                             |
-| `ingress.tls`                                    | Ingress TLS configuration                                                                                                               | `[]`                             |
 | `trustedCertsSecret`                             | Kubernetes secret with trusted certificates to be mounted on `{{ .Values.certsPath }}/CAs`                                              | `""`                             |
 | `mode`                                           | MinIO server mode (`standalone` or `distributed`)                                                                                       | `standalone`                     |
 | `extraArgs`                                      | Additional command line arguments to pass to the MinIO server                                                                           | `[]`                             |

+ 0 - 11
test/minio/8.0.5/templates/_helpers.tpl

@@ -64,17 +64,6 @@ Return the appropriate apiVersion for statefulset.
 {{- end -}}
 {{- end -}}
 
-{{/*
-Return the appropriate apiVersion for ingress.
-*/}}
-{{- define "minio.ingress.apiVersion" -}}
-{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
-{{- print "extensions/v1beta1" -}}
-{{- else -}}
-{{- print "networking.k8s.io/v1beta1" -}}
-{{- end -}}
-{{- end -}}
-
 {{/*
 Determine secret name.
 */}}

+ 0 - 45
test/minio/8.0.5/templates/ingress.yaml

@@ -1,45 +0,0 @@
-{{- if .Values.ingress.enabled -}}
-{{- $fullName := include "minio.fullname" . -}}
-{{- $servicePort := .Values.service.port -}}
-{{- $ingressPath := .Values.ingress.path -}}
-apiVersion: {{ template "minio.ingress.apiVersion" . }}
-kind: Ingress
-metadata:
-  name: {{ $fullName }}
-  labels:
-    app: {{ template "minio.name" . }}
-    chart: {{ template "minio.chart" . }}
-    release: {{ .Release.Name }}
-    heritage: {{ .Release.Service }}
-{{- with .Values.ingress.labels }}
-{{ toYaml . | indent 4 }}
-{{- end }}
-
-{{- with .Values.ingress.annotations }}
-  annotations:
-{{ toYaml . | indent 4 }}
-{{- end }}
-spec:
-{{- if .Values.ingress.tls }}
-  tls:
-  {{- range .Values.ingress.tls }}
-    - hosts:
-      {{- range .hosts }}
-        - {{ . | quote }}
-      {{- end }}
-      secretName: {{ .secretName }}
-  {{- end }}
-{{- end }}
-  rules:
-  {{- range .Values.ingress.hosts }}
-    - http:
-        paths:
-          - path: {{ $ingressPath }}
-            backend:
-              serviceName: {{ $fullName }}
-              servicePort: {{ $servicePort }}
-      {{- if . }}
-      host: {{ . | quote }}
-      {{- end }}
-  {{- end }}
-{{- end }}

+ 0 - 24
test/minio/8.0.5/values.yaml

@@ -162,33 +162,9 @@ service:
     # prometheus.io/path:   '/minio/prometheus/metrics'
     # prometheus.io/port:   '9000'
 
-## Configure Ingress based on the documentation here: https://kubernetes.io/docs/concepts/services-networking/ingress/
-##
-
 imagePullSecrets: []
 # - name: "image-pull-secret"
 
-ingress:
-  enabled: false
-  labels: {}
-    # node-role.kubernetes.io/ingress: platform
-
-  annotations: {}
-    # kubernetes.io/ingress.class: nginx
-    # kubernetes.io/tls-acme: "true"
-    # kubernetes.io/ingress.allow-http: "false"
-    # kubernetes.io/ingress.global-static-ip-name: ""
-    # nginx.ingress.kubernetes.io/secure-backends: "true"
-    # nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
-    # nginx.ingress.kubernetes.io/whitelist-source-range: 0.0.0.0/0
-  path: /
-  hosts:
-    - chart-example.local
-  tls: []
-  #  - secretName: chart-example-tls
-  #    hosts:
-  #      - chart-example.local
-
 ## Node labels for pod assignment
 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
 ##