Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Add ingressClassName #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: swaggerui
version: 0.3.6
version: 0.3.7
appVersion: 3.24.3
description: Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services.
keywords:
Expand Down
63 changes: 32 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,46 +53,47 @@ helm delete my-release

The following table lists the configurable parameters of the swagger-ui chart and the default values.

| Parameter | Description | Default |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------| ------------------------------- |
| Parameter | Description | Default |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------|----------------------------------------------|
| **Image** |
| `image.repository` | swagger-ui Image name | `swaggerapi/swagger-ui` |
| `image.tag` | swagger-ui Image tag | `v3.24.3` |
| `image.pullPolicy` | swagger-ui Image pull policy | `IfNotPresent` |
| `imagePullSecrets` | list of names of secrets containing docker registry credentials | `[]` |
| `image.repository` | swagger-ui Image name | `swaggerapi/swagger-ui` |
| `image.tag` | swagger-ui Image tag | `v3.24.3` |
| `image.pullPolicy` | swagger-ui Image pull policy | `IfNotPresent` |
| `imagePullSecrets` | list of names of secrets containing docker registry credentials | `[]` |
| **Swagger-UI** |
| `swaggerui.jsonPath` | location of the configuration json file file | `""` |
| `swaggerui.jsonPath` | location of the configuration json file file | `""` |
| `swaggerui.jsonUrl` | location of the configuration json file file | `http://petstore.swagger.io/v2/swagger.json` |
| `swaggerui.server.url` | Url of a custom server | `"http://www.google.be"` |
| `swaggerui.server.description` | description of a custom server | `"helm-online"` |
| `swaggerui.server.url` | Url of a custom server | `"http://www.google.be"` |
| `swaggerui.server.description` | description of a custom server | `"helm-online"` |
| **Deployment** |
| `deployment.replicas` | Number of replicas | `1` |
| `deployment.extraEnv` | Additional environment variable | `` |
| `deployment.jsonNoCheckCertificate` | Enable/Disable certificate check | `false` |
| `deployment.replicas` | Number of replicas | `1` |
| `deployment.extraEnv` | Additional environment variable | `` |
| `deployment.jsonNoCheckCertificate` | Enable/Disable certificate check | `false` |
| **Service** |
| `service.type` | Type of service for swagger-ui frontend | `NodePort` |
| `service.port` | Port to expose service | `8080` |
| `service.nodePort` | Port where the service is reachable | `30245` |
| `service.clusterIP` | internal cluster service IP (set to "-" to pass an empty value) | `nil` |
| `service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `nil` |
| `service.loadBalancerSourceRanges` | Address that are allowed when svc is `LoadBalancer` | `[]` |
| `service.annotations` | Service annotations | `{}` |
| `service.type` | Type of service for swagger-ui frontend | `NodePort` |
| `service.port` | Port to expose service | `8080` |
| `service.nodePort` | Port where the service is reachable | `30245` |
| `service.clusterIP` | internal cluster service IP (set to "-" to pass an empty value) | `nil` |
| `service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `nil` |
| `service.loadBalancerSourceRanges` | Address that are allowed when svc is `LoadBalancer` | `[]` |
| `service.annotations` | Service annotations | `{}` |
| **Ingress** |
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.path` | Path to access frontend | `/` |
| `ingress.hosts` | Ingress hosts | `[]` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `ingress.className` | Sets ingressClassName | `false` |
| `ingress.enabled` | Enables Ingress | `' '` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.path` | Path to access frontend | `/` |
| `ingress.hosts` | Ingress hosts | `[]` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| **ReadinessProbe** |
| `readinessProbe` | Rediness Probe settings | `nil` |
| `readinessProbe` | Rediness Probe settings | `nil` |
| **LivenessProbe** |
| `livenessProbe.httpGet.path` | Liveness Probe settings | `/` |
| `livenessProbe.httpGet.port` | Liveness Probe settings | `http` |
| `livenessProbe.initialDelaySeconds` | Liveness Probe settings | `60` |
| `livenessProbe.periodSeconds` | Liveness Probe settings | `30` |
| `livenessProbe.timeoutSeconds` | Liveness Probe settings | `10` |
| `livenessProbe.httpGet.path` | Liveness Probe settings | `/` |
| `livenessProbe.httpGet.port` | Liveness Probe settings | `http` |
| `livenessProbe.initialDelaySeconds` | Liveness Probe settings | `60` |
| `livenessProbe.periodSeconds` | Liveness Probe settings | `30` |
| `livenessProbe.timeoutSeconds` | Liveness Probe settings | `10` |
| **Resources** |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |

## Contributing

Expand Down
5 changes: 4 additions & 1 deletion templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ service:
##
ingress:
enabled: false
className: ' '
annotations: {}
path: /
hosts: []
Expand Down