Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Helm] Added support for setting controller value #391

Open
wants to merge 1 commit 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
4 changes: 3 additions & 1 deletion helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The following table lists configurable parameters of the CodeTogether chart and
| `ingress.annotations` | Specify ingress class | `kubernetes.io/ingress.class: nginx` |
| `ingress.enabled` | Enable ingress controller resource | `true` |
| `ingress.className` | IngressClass used for ingress configuration | `codetogether-nginx` |
| `ingress.controllerValue` | IngressClass Controller value used for ingress configuration | `k8s.io/ingress-nginx` |
| `ingress.tls` | Ingress TLS configuration | `[{secretName': codetogether-tls}]` |
| `license.licensee` | The license provided by Genuitec | `Example` |
| `license.maxConnections` | The maximum connection allowed by the license | `0` |
Expand All @@ -64,7 +65,8 @@ The following table lists configurable parameters of the CodeTogether chart and
| `locatorCentral.database.sslKey` | Sets database SSL client key (base64 encoded) | |
| `locatorCentral.database.sslCA` | Sets database SSL client certificate authority (base64 encoded) | |
| `locatorCentral.database.sslCert` | Sets database SSL client certificate (base64 encoded) | |
| `locatorEdge.locator` | Sets JSON string configuration for `locator` mode database | `[sample included in the values.yaml file]` || `locatorEdge.region` | Sets a region in `edge-with-locator` mode so sessions can be routed out | `default` |
| `locatorEdge.locator` | Sets JSON string configuration for `locator` mode database | `[sample included in the values.yaml file]` |
| `locatorEdge.region` | Sets a region in `edge-with-locator` mode so sessions can be routed out | `default` |
| `openshift.enabled` | Set this value to 'true' ONLY if you are deploying into OpenShift | `false` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | CodeTogether exposed service port | `443` |
Expand Down
6 changes: 4 additions & 2 deletions helm/templates/ingress-class.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
labels:
app.kubernetes.io/component: controller
name: codetogether-nginx
name: {{ .Values.ingress.className }}
spec:
controller: k8s.io/ingress-nginx
controller: {{ .Values.ingress.controllerValue }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ ingress:
kubernetes.io/ingress.class: nginx
# className is a value that will be used if Kubernetes version >= 1.18
className: codetogether-nginx
# Controller-value of the controller that is processing this ingressClass
controllerValue: k8s.io/ingress-nginx
tls:
- secretName: codetogether-tls

Expand Down