Skip to content

Commit

Permalink
merge commit 401
Browse files Browse the repository at this point in the history
  • Loading branch information
twingate-build-bot committed Sep 5, 2024
2 parents c888c79 + 5d0cfa7 commit 0a35d50
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 5 deletions.
13 changes: 12 additions & 1 deletion index.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
apiVersion: v1
entries:
connector:
- apiVersion: v1
appVersion: latest
created: "2024-09-05T16:01:46.866022786Z"
description: Twingate Connector helm chart
digest: 206968f3351cd119c80150ed59cf370c7f8241571fc3cbc1deea6ecaf3df8387
home: https://www.twingate.com
icon: https://www.twingate.com/twingate.png
name: connector
urls:
- https://twingate.github.io/helm-charts/packages/connector-0.1.27.tgz
version: 0.1.27
- apiVersion: v1
appVersion: latest
created: "2024-09-05T15:35:16.795919302Z"
Expand Down Expand Up @@ -189,4 +200,4 @@ entries:
urls:
- https://twingate.github.io/helm-charts/packages/connector-0.1.9.tgz
version: 0.1.9
generated: "2024-09-05T15:35:16.795164Z"
generated: "2024-09-05T16:01:46.864896325Z"
Binary file added packages/connector-0.1.27.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion stable/connector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ home: https://www.twingate.com
description: Twingate Connector helm chart
icon: https://www.twingate.com/twingate.png
name: connector
version: 0.1.26
version: 0.1.27
2 changes: 1 addition & 1 deletion stable/connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The following table lists the configurable parameters of the Twingate chart and
| `image.repository` | Twingate image name | `twingate/connector` |
| `image.tag` | Twingate image tag | `latest` |
| `image.pullPolicy` | Twingate image pull policy | `Always` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `image.imagePullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `nameOverride` | String to partially override twingate.fullname template | `nil` |
| `fullnameOverride` | String to fully override twingate.fullname template | `nil` |
| `icmpSupport.enabled` | Enable the ICMP securityContext. See more in values file | `false` |
Expand Down
6 changes: 6 additions & 0 deletions stable/connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ spec:
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: true
{{- end }}
{{- if .Values.image.imagePullSecrets}}
imagePullSecrets:
{{- range .Values.image.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down
16 changes: 14 additions & 2 deletions stable/connector/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,22 @@
"IfNotPresent",
"Never"
]
},
"imagePullSecrets": {
"type": "array",
"default": [],
"title": "The imagePullSecrets Schema",
"items": {
"type": "string"
}
}
},
"examples": [{
"repository": "twingate/connector",
"tag": 1,
"pullPolicy": "Always"
"pullPolicy": "Always",
"imagePullSecrets":
["dockerhub-secret"]
}]
},
"hostNetwork": {
Expand Down Expand Up @@ -131,7 +141,9 @@
"image": {
"repository": "twingate/connector",
"tag": 1,
"pullPolicy": "Always"
"pullPolicy": "Always",
"imagePullSecrets":
["dockerhub-secret"]
},
"hostNetwork": false,
"resources": {
Expand Down
1 change: 1 addition & 0 deletions stable/connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ image:
repository: twingate/connector
tag: 1
pullPolicy: Always
imagePullSecrets: []

## Enable/Disable host network for the pod
##
Expand Down
1 change: 1 addition & 0 deletions test/golden/default-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ image:
repository: twingate/connector
tag: 1
pullPolicy: Always
imagePullSecrets: []

resources:
requests:
Expand Down
69 changes: 69 additions & 0 deletions test/golden/image-pull-secrets.golden.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
# 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:
imagePullSecrets:
- name: docker-hub-registry
containers:
- name: connector
image: "twingate/connector:1"
imagePullPolicy: Always
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
8 changes: 8 additions & 0 deletions test/golden/image-pull-secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
image:
imagePullSecrets:
- docker-hub-registry

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

0 comments on commit 0a35d50

Please sign in to comment.