Skip to content

Commit

Permalink
Merge pull request #14 from shuaibiyy/ingress-runtime-paths
Browse files Browse the repository at this point in the history
Support specifying accessible runtime ingress paths
  • Loading branch information
anestos authored Apr 21, 2021
2 parents db5c860 + 4ed9180 commit 81f1a81
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions idsvr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Parameter | Description | Default
`ingress.enabled`| Flag to enable/disable an Ingress resource |`false`
`ingress.annotations`| Extra annotations for the Ingress resource |`{}`
`ingress.runtime.host`| Hostname of the runtime servers (used by the Ingress resource) |`curity.local`
`ingress.runtime.paths`| Paths of the runtime servers that can be accessed externally |`{/}`<sup>[2](#f2)</sup>
`ingress.runtime.secretName`| Secret which contains the tls cert and key for the runtime TLS connection. If not set, the Ingress will be configured for HTTP |`null`
`ingress.admin.host`| Hostname for the admin server (used by the Ingress resource) |`curity-admin.local`
`ingress.admin.secretName`| Secret which contains the tls cert and key for the runtime TLS connection. If not set, the Ingress resource will be configured for HTTP |`null`
Expand All @@ -109,6 +110,13 @@ Parameter | Description | Default

<b id="f1">1</b> The network policy within the cluster will not have any affect unless there is a network policy provider that can enforce network policies. Check out kubernetes official documentation for more guidance on how to install network providers: [Install Network Policy Provider - Kubernetes](https://kubernetes.io/docs/tasks/administer-cluster/network-policy-provider/)

<b id="f2">2</b> When using Helm's `--set` option, lists can be expressed by enclosing values in `{` and `}`. For example, `--set ingress.runtime.paths="{/foo, /bar}"` translates to:
```
paths:
- /foo
- /bar
```

## Examples
### Quickstart
To get started and test this helm chart run the following commands:
Expand Down
6 changes: 4 additions & 2 deletions idsvr/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ spec:
- host: {{ .Values.ingress.runtime.host }}
http:
paths:
- path: /
{{- range .Values.ingress.runtime.paths }}
- path: {{ . }}
backend:
serviceName: {{ include "curity.fullname" . }}-runtime-svc
serviceName: {{ include "curity.fullname" $ }}-runtime-svc
servicePort: http-port
{{- end }}
{{- if .Values.curity.config.uiEnabled }}
- host: {{ .Values.ingress.admin.host }}
http:
Expand Down
2 changes: 2 additions & 0 deletions idsvr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ ingress:
runtime:
host: curity.local
secretName:
paths:
- /
admin:
host: curity-admin.local
secretName:
Expand Down

0 comments on commit 81f1a81

Please sign in to comment.