Skip to content

Commit 253d155

Browse files
authored
chore: Upgrade helm and fix helm unit tests (#790)
1 parent 08ac280 commit 253d155

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v5
3636
- uses: azure/setup-helm@v4
37-
with:
38-
version: v3.17.3
3937
- name: Install helm-unittest plugin
4038
run: helm plugin install https://github.com/helm-unittest/helm-unittest
4139
- name: Build helm dependencies

deploy/twingate-operator/tests/__snapshot__/kubernetes-access-gateway_test.yaml.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ should enable Kubernetes Access Gateway:
4545
app.kubernetes.io/name: kubernetes-access-gateway
4646
template:
4747
metadata:
48-
annotations:
49-
checksum/tlsAlternativeNames: eee78e4712e57977935ceb9ebfdb354aa33c85ca4dbb490001827f64259b6b8d
5048
labels:
5149
app.kubernetes.io/instance: RELEASE-NAME
5250
app.kubernetes.io/managed-by: Helm

deploy/twingate-operator/tests/deployment_api_key_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tests:
99
- it: should require `apiKey`
1010
asserts:
1111
- failedTemplate:
12-
errorPattern: apiKey is required
12+
errorPattern: missing property 'apiKey'
1313
- it: should use `existingAPIKeySecret`
1414
set:
1515
twingateOperator:

deploy/twingate-operator/tests/deployment_network_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ tests:
99
- it: should require `network`
1010
asserts:
1111
- failedTemplate:
12-
errorPattern: network is required
12+
errorPattern: missing property 'network'

deploy/twingate-operator/tests/deployment_remote_network_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tests:
99
- it: should require Remote Network
1010
asserts:
1111
- failedTemplate:
12-
errorPattern: remoteNetworkId is required
12+
errorPattern: missing property 'remoteNetworkId'
1313
- it: should use `existingRemoteNetworkIdSecret`
1414
set:
1515
twingateOperator:
@@ -44,4 +44,4 @@ tests:
4444
key: MY_TWINGATE_REMOTE_NETWORK_ID
4545
asserts:
4646
- failedTemplate:
47-
errorPattern: "twingateOperator: Must validate one and only one schema (oneOf)"
47+
errorPattern: "'oneOf' failed, subschemas 0, 2 matched"

0 commit comments

Comments
 (0)