Skip to content

Commit

Permalink
merge commit 389
Browse files Browse the repository at this point in the history
twingate-build-bot committed Jul 23, 2024
2 parents 41a78a4 + 8f90213 commit bbd7efc
Showing 8 changed files with 107 additions and 2 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-07-23T16:13:05.854478418Z"
description: Twingate Connector helm chart
digest: f5998a69c99879413d99e9d5a9470cad6907a897fffbfe9d58d40dd1c7d7dbb3
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.26.tgz
version: 0.1.26
- apiVersion: v1
appVersion: latest
created: "2024-06-11T15:53:12.408518685Z"
@@ -178,4 +189,4 @@ entries:
urls:
- https://twingate.github.io/helm-charts/packages/connector-0.1.9.tgz
version: 0.1.9
generated: "2024-06-11T15:53:12.407865292Z"
generated: "2024-07-23T16:13:05.853589721Z"
Binary file added packages/connector-0.1.26.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
@@ -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.25
version: 0.1.26
1 change: 1 addition & 0 deletions stable/connector/README.md
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ The following table lists the configurable parameters of the Twingate chart and
| `priorityClassName` | String to added priorityClass for pod assignment | `nil` |
| `nodeSelector` | node labels for pod assignment | `{}` (The value is evaluated as a template) |
| `tolerations` | Tolerations for pod assignment | `[]` (The value is evaluated as a template) |
| `topologySpreadConstraints` | Topology spread constraints for pod assignment | `[]` (The value is evaluated as a template) |
| `resources` | Resource requests and limits | `{}` (The value is evaluated as a template) |
| `additionalLabels` | Additional labels for the deployment | `{}` (The value is evaluated as a template) |
| `podAnnotations` | Map of annotations to add to pods | `{}` |
4 changes: 4 additions & 0 deletions stable/connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -96,6 +96,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
5 changes: 5 additions & 0 deletions stable/connector/values.yaml
Original file line number Diff line number Diff line change
@@ -41,6 +41,11 @@ nodeSelector: {}
##
tolerations: []

## topologySpreadConstraints Topology spread constraints for pod
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
##
topologySpreadConstraints: []

## affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
73 changes: 73 additions & 0 deletions test/golden/topology.golden.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
# 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
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
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: connector
maxSkew: 1
topologyKey: kubernetes.io/hostname
11 changes: 11 additions & 0 deletions test/golden/topology.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/name: connector
maxSkew: 1
topologyKey: kubernetes.io/hostname

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

0 comments on commit bbd7efc

Please # to comment.