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

Commit

Permalink
Merge changes from feature/sslcheckskip
Browse files Browse the repository at this point in the history
  • Loading branch information
digiserg committed Oct 20, 2021
1 parent 37e4b83 commit d205a59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following items can be set via `--set` flag during installation or configure

### Install the chart

Install the swagger-ui helm chart with a release name (`my-release`):
Install the swagger-ui helm chart with a release name `my-release`:

```bash
helm install --name my-release cetic/swaggerui
Expand Down Expand Up @@ -67,6 +67,7 @@ The following table lists the configurable parameters of the swagger-ui chart an
| **Deployment** |
| `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` |
Expand Down Expand Up @@ -100,4 +101,4 @@ Please read the official [Contribution Guide](https://github.com/helm/charts/blo

## License

[Apache License 2.0](/LICENSE.md)
[Apache License 2.0](/LICENSE.md)
9 changes: 7 additions & 2 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ spec:
name: swagger-config
{{ else }}
command: ["/bin/sh","-c"]
args : {{ (printf "[\"mkdir /api-doc && wget --no-check-certificate %s -O /api-doc/openapi.json && apk update && apk add jq && jq '.servers += [{\\\"url\\\":\\\"%s\\\",\\\"description\\\":\\\"%s\\\"}]' /api-doc/openapi.json > json.tmp && mv json.tmp /api-doc/openapi.json && /usr/share/nginx/run.sh\"]" .Values.swaggerui.jsonUrl .Values.swaggerui.server.url .Values.swaggerui.server.description ) }} {{ end }}
{{- if .Values.deployment.jsonNoCheckCertificate }}
args : {{ (printf "[\"mkdir /api-doc && wget --no-check-certificate %s -O /api-doc/openapi.json && apk update && apk add jq && jq '.servers += [{\\\"url\\\":\\\"%s\\\",\\\"description\\\":\\\"%s\\\"}]' /api-doc/openapi.json > json.tmp && mv json.tmp /api-doc/openapi.json && /usr/share/nginx/run.sh\"]" .Values.swaggerui.jsonUrl .Values.swaggerui.server.url .Values.swaggerui.server.description ) }}
{{- else }}
args : {{ (printf "[\"mkdir /api-doc && wget %s -O /api-doc/openapi.json && apk update && apk add jq && jq '.servers += [{\\\"url\\\":\\\"%s\\\",\\\"description\\\":\\\"%s\\\"}]' /api-doc/openapi.json > json.tmp && mv json.tmp /api-doc/openapi.json && /usr/share/nginx/run.sh\"]" .Values.swaggerui.jsonUrl .Values.swaggerui.server.url .Values.swaggerui.server.description ) }}
{{- end }}
{{- end }}
env:
{{- with .Values.deployment.extraEnv }}
{{- toYaml . | nindent 10 }}
Expand All @@ -58,4 +63,4 @@ spec:
items:
- key: conf.json
path: openapi.json
{{ end }}
{{ end }}
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ swaggerui :
##
deployment:
replicas: 1
jsonNoCheckCertificate: false
extraEnv:
# - name: BASE_URL
# value: /swagger
Expand Down

0 comments on commit d205a59

Please sign in to comment.