Skip to content

Commit

Permalink
merge commit 410
Browse files Browse the repository at this point in the history
  • Loading branch information
twingate-build-bot committed Nov 21, 2024
2 parents 0a35d50 + 9a077f6 commit fcc7f9a
Show file tree
Hide file tree
Showing 24 changed files with 415 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ entries:
connector:
- apiVersion: v1
appVersion: latest
created: "2024-09-05T16:01:46.866022786Z"
created: "2024-11-21T21:02:27.909235019Z"
description: Twingate Connector helm chart
digest: 206968f3351cd119c80150ed59cf370c7f8241571fc3cbc1deea6ecaf3df8387
digest: c83c331380ff0ffe1916a5dbd2a2972cc57afba16bfcb9ffeb724f8fe2c1bcfd
home: https://www.twingate.com
icon: https://www.twingate.com/twingate.png
name: connector
Expand Down Expand Up @@ -200,4 +200,4 @@ entries:
urls:
- https://twingate.github.io/helm-charts/packages/connector-0.1.9.tgz
version: 0.1.9
generated: "2024-09-05T16:01:46.864896325Z"
generated: "2024-11-21T21:02:27.907582087Z"
Binary file modified packages/connector-0.1.27.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions stable/connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ The following table lists the configurable parameters of the Twingate chart and
| `podDnsConfig` | Optional pod [DNS configurations](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pods-dns-config) | |
| `env` | Additional environment variables for the deployment | `{}` (The value is evaluated as a template) |
| `hostNetwork` | Enable/Disable host network for the pod | `false` (Disabled by default) |
| `readinessProbe` | Pod's readiness probe | default healthcheck - `connectorctl health` |
| `livenessProbe` | Pod's liveness probe | default healthcheck - `connectorctl health` |
8 changes: 8 additions & 0 deletions stable/connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.readinessProbe }}
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 12 }}
{{- end }}
{{- if .Values.livenessProbe }}
livenessProbe:
{{ toYaml .Values.livenessProbe | indent 12 }}
{{- end }}
envFrom:
- secretRef:
{{- if .Values.connector.existingSecret }}
Expand Down
17 changes: 17 additions & 0 deletions stable/connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,20 @@ connector: {}
# refreshToken: "<refresh token>"
# existingSecret: "secret name"
# dnsServer: "some.dnsserver.com"

readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds:
periodSeconds: 5


livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
14 changes: 14 additions & 0 deletions test/golden/affinity.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/connector-url.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/default-values.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/env-vars.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/extraPodDefinitions.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/image-pull-secrets.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/logAnalytics.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/loglevel-debug.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/loglevel-error.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/loglevel-info.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
14 changes: 14 additions & 0 deletions test/golden/loglevel-warning.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ spec:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: null
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
Expand Down
81 changes: 81 additions & 0 deletions test/golden/override-readiness-liveness-probes-check.golden.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
# Source: connector/templates/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: test-connector
labels:
app.kubernetes.io/name: connector
helm.sh/chart: connector-major.minor.patch-test
app.kubernetes.io/instance: test
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
type: Opaque
data:
TWINGATE_ACCESS_TOKEN: "QUNDRVNTX1RPS0VO"
TWINGATE_REFRESH_TOKEN: "UkVGUkVTSF9UT0tFTg=="
---
# Source: connector/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-connector
labels:
app.kubernetes.io/name: connector
helm.sh/chart: connector-major.minor.patch-test
app.kubernetes.io/instance: test
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: connector
app.kubernetes.io/instance: test
template:
metadata:
labels:
app.kubernetes.io/name: connector
app.kubernetes.io/instance: test
spec:
containers:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 20
periodSeconds: 5
livenessProbe:
exec:
command:
- /connectorctl
- health
initialDelaySeconds: 5
periodSeconds: 5
envFrom:
- secretRef:
name: test-connector
optional: false
env:
- name: TWINGATE_LABEL_DEPLOYED_BY
value: helm
- name: TWINGATE_LABEL_HELM_CHART
value: connector-major.minor.patch-test
- name: TWINGATE_URL
value: "https://test-tenant.twingate.com"
- name: TWINGATE_LOG_LEVEL
value: "3"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: true
runAsUser: 65532
resources:
requests:
cpu: 50m
memory: 200Mi
14 changes: 14 additions & 0 deletions test/golden/override-readiness-liveness-probes-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
image:
repository: twingate/connector
tag: 1
pullPolicy: Always

connector:
network: "test-tenant"
accessToken: "ACCESS_TOKEN"
refreshToken: "REFRESH_TOKEN"


readinessProbe:
initialDelaySeconds: 20

Loading

0 comments on commit fcc7f9a

Please sign in to comment.