Skip to content

Commit 311de17

Browse files
committed
Fix test to new chart name
1 parent d06b36f commit 311de17

8 files changed

+157
-157
lines changed

deploy/test/golden/apikey.golden.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
2-
# Source: twingate-operator/templates/serviceaccount.yaml
2+
# Source: kubernetes-operator-chart/templates/serviceaccount.yaml
33
apiVersion: v1
44
kind: ServiceAccount
55
metadata:
6-
name: test-twingate-operator
6+
name: test-kubernetes-operator-chart
77
namespace: default
88
labels:
9-
helm.sh/chart: twingate-operator-major.minor.patch-test
10-
app.kubernetes.io/name: twingate-operator
9+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
10+
app.kubernetes.io/name: kubernetes-operator-chart
1111
app.kubernetes.io/instance: test
1212
app.kubernetes.io/managed-by: Helm
1313
---
14-
# Source: twingate-operator/templates/secrets.yaml
14+
# Source: kubernetes-operator-chart/templates/secrets.yaml
1515
apiVersion: v1
1616
kind: Secret
1717
metadata:
18-
name: test-twingate-operator
18+
name: test-kubernetes-operator-chart
1919
namespace: default
2020
labels:
21-
helm.sh/chart: twingate-operator-major.minor.patch-test
22-
app.kubernetes.io/name: twingate-operator
21+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
22+
app.kubernetes.io/name: kubernetes-operator-chart
2323
app.kubernetes.io/instance: test
2424
app.kubernetes.io/managed-by: Helm
2525
data:
2626
TWINGATE_API_KEY: PGFwaSBrZXk+
2727
---
28-
# Source: twingate-operator/templates/clusterrole.yaml
28+
# Source: kubernetes-operator-chart/templates/clusterrole.yaml
2929
apiVersion: rbac.authorization.k8s.io/v1
3030
kind: ClusterRole
3131
metadata:
32-
name: test-twingate-operator-role-cluster
32+
name: test-kubernetes-operator-chart-role-cluster
3333
rules:
3434
# Framework: runtime observation of namespaces & CRDs (addition/deletion).
3535
- apiGroups: [apiextensions.k8s.io]
@@ -56,29 +56,29 @@ rules:
5656
resources: [pods, services, secrets, services/status]
5757
verbs: [list, watch, patch, get, create, delete]
5858
---
59-
# Source: twingate-operator/templates/clusterrolebinding.yaml
59+
# Source: kubernetes-operator-chart/templates/clusterrolebinding.yaml
6060
apiVersion: rbac.authorization.k8s.io/v1
6161
kind: ClusterRoleBinding
6262
metadata:
63-
name: test-twingate-operator-rolebinding-cluster
63+
name: test-kubernetes-operator-chart-rolebinding-cluster
6464
roleRef:
6565
apiGroup: rbac.authorization.k8s.io
6666
kind: ClusterRole
67-
name: test-twingate-operator-role-cluster
67+
name: test-kubernetes-operator-chart-role-cluster
6868
subjects:
6969
- kind: ServiceAccount
70-
name: test-twingate-operator
70+
name: test-kubernetes-operator-chart
7171
namespace: default
7272
---
73-
# Source: twingate-operator/templates/deployment.yaml
73+
# Source: kubernetes-operator-chart/templates/deployment.yaml
7474
apiVersion: apps/v1
7575
kind: Deployment
7676
metadata:
77-
name: test-twingate-operator
77+
name: test-kubernetes-operator-chart
7878
namespace: default
7979
labels:
80-
helm.sh/chart: twingate-operator-major.minor.patch-test
81-
app.kubernetes.io/name: twingate-operator
80+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
81+
app.kubernetes.io/name: kubernetes-operator-chart
8282
app.kubernetes.io/instance: test
8383
app.kubernetes.io/managed-by: Helm
8484
spec:
@@ -87,20 +87,20 @@ spec:
8787
type: Recreate
8888
selector:
8989
matchLabels:
90-
app.kubernetes.io/name: twingate-operator
90+
app.kubernetes.io/name: kubernetes-operator-chart
9191
app.kubernetes.io/instance: test
9292
template:
9393
metadata:
9494
labels:
95-
app.kubernetes.io/name: twingate-operator
95+
app.kubernetes.io/name: kubernetes-operator-chart
9696
app.kubernetes.io/instance: test
9797
spec:
98-
serviceAccountName: test-twingate-operator
98+
serviceAccountName: test-kubernetes-operator-chart
9999
securityContext:
100100
seccompProfile:
101101
type: RuntimeDefault
102102
containers:
103-
- name: twingate-operator
103+
- name: kubernetes-operator-chart
104104
securityContext:
105105
allowPrivilegeEscalation: false
106106
capabilities:
@@ -123,7 +123,7 @@ spec:
123123
- name: TWINGATE_API_KEY
124124
valueFrom:
125125
secretKeyRef:
126-
name: test-twingate-operator
126+
name: test-kubernetes-operator-chart
127127
key: TWINGATE_API_KEY
128128
- name: TWINGATE_NETWORK
129129
value: <network slug>

deploy/test/golden/error-missingRemoteNetwork-name-or-id.golden.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error while running command: exit status 1; Error: values don't meet the specifications of the schema(s) in the following chart(s):
2-
twingate-operator:
2+
kubernetes-operator-chart:
33
- twingateOperator: Must validate at least one schema (anyOf)
44
- twingateOperator: remoteNetworkId is required
55
- twingateOperator: Must validate all the schemas (allOf)

deploy/test/golden/existingAPIKeySecret.golden.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
# Source: twingate-operator/templates/serviceaccount.yaml
2+
# Source: kubernetes-operator-chart/templates/serviceaccount.yaml
33
apiVersion: v1
44
kind: ServiceAccount
55
metadata:
6-
name: test-twingate-operator
6+
name: test-kubernetes-operator-chart
77
namespace: default
88
labels:
9-
helm.sh/chart: twingate-operator-major.minor.patch-test
10-
app.kubernetes.io/name: twingate-operator
9+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
10+
app.kubernetes.io/name: kubernetes-operator-chart
1111
app.kubernetes.io/instance: test
1212
app.kubernetes.io/managed-by: Helm
1313
---
14-
# Source: twingate-operator/templates/clusterrole.yaml
14+
# Source: kubernetes-operator-chart/templates/clusterrole.yaml
1515
apiVersion: rbac.authorization.k8s.io/v1
1616
kind: ClusterRole
1717
metadata:
18-
name: test-twingate-operator-role-cluster
18+
name: test-kubernetes-operator-chart-role-cluster
1919
rules:
2020
# Framework: runtime observation of namespaces & CRDs (addition/deletion).
2121
- apiGroups: [apiextensions.k8s.io]
@@ -42,29 +42,29 @@ rules:
4242
resources: [pods, services, secrets, services/status]
4343
verbs: [list, watch, patch, get, create, delete]
4444
---
45-
# Source: twingate-operator/templates/clusterrolebinding.yaml
45+
# Source: kubernetes-operator-chart/templates/clusterrolebinding.yaml
4646
apiVersion: rbac.authorization.k8s.io/v1
4747
kind: ClusterRoleBinding
4848
metadata:
49-
name: test-twingate-operator-rolebinding-cluster
49+
name: test-kubernetes-operator-chart-rolebinding-cluster
5050
roleRef:
5151
apiGroup: rbac.authorization.k8s.io
5252
kind: ClusterRole
53-
name: test-twingate-operator-role-cluster
53+
name: test-kubernetes-operator-chart-role-cluster
5454
subjects:
5555
- kind: ServiceAccount
56-
name: test-twingate-operator
56+
name: test-kubernetes-operator-chart
5757
namespace: default
5858
---
59-
# Source: twingate-operator/templates/deployment.yaml
59+
# Source: kubernetes-operator-chart/templates/deployment.yaml
6060
apiVersion: apps/v1
6161
kind: Deployment
6262
metadata:
63-
name: test-twingate-operator
63+
name: test-kubernetes-operator-chart
6464
namespace: default
6565
labels:
66-
helm.sh/chart: twingate-operator-major.minor.patch-test
67-
app.kubernetes.io/name: twingate-operator
66+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
67+
app.kubernetes.io/name: kubernetes-operator-chart
6868
app.kubernetes.io/instance: test
6969
app.kubernetes.io/managed-by: Helm
7070
spec:
@@ -73,20 +73,20 @@ spec:
7373
type: Recreate
7474
selector:
7575
matchLabels:
76-
app.kubernetes.io/name: twingate-operator
76+
app.kubernetes.io/name: kubernetes-operator-chart
7777
app.kubernetes.io/instance: test
7878
template:
7979
metadata:
8080
labels:
81-
app.kubernetes.io/name: twingate-operator
81+
app.kubernetes.io/name: kubernetes-operator-chart
8282
app.kubernetes.io/instance: test
8383
spec:
84-
serviceAccountName: test-twingate-operator
84+
serviceAccountName: test-kubernetes-operator-chart
8585
securityContext:
8686
seccompProfile:
8787
type: RuntimeDefault
8888
containers:
89-
- name: twingate-operator
89+
- name: kubernetes-operator-chart
9090
securityContext:
9191
allowPrivilegeEscalation: false
9292
capabilities:

deploy/test/golden/extraEnvVars.golden.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
2-
# Source: twingate-operator/templates/serviceaccount.yaml
2+
# Source: kubernetes-operator-chart/templates/serviceaccount.yaml
33
apiVersion: v1
44
kind: ServiceAccount
55
metadata:
6-
name: test-twingate-operator
6+
name: test-kubernetes-operator-chart
77
namespace: default
88
labels:
9-
helm.sh/chart: twingate-operator-major.minor.patch-test
10-
app.kubernetes.io/name: twingate-operator
9+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
10+
app.kubernetes.io/name: kubernetes-operator-chart
1111
app.kubernetes.io/instance: test
1212
app.kubernetes.io/managed-by: Helm
1313
---
14-
# Source: twingate-operator/templates/secrets.yaml
14+
# Source: kubernetes-operator-chart/templates/secrets.yaml
1515
apiVersion: v1
1616
kind: Secret
1717
metadata:
18-
name: test-twingate-operator
18+
name: test-kubernetes-operator-chart
1919
namespace: default
2020
labels:
21-
helm.sh/chart: twingate-operator-major.minor.patch-test
22-
app.kubernetes.io/name: twingate-operator
21+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
22+
app.kubernetes.io/name: kubernetes-operator-chart
2323
app.kubernetes.io/instance: test
2424
app.kubernetes.io/managed-by: Helm
2525
data:
2626
TWINGATE_API_KEY: PGFwaSBrZXk+
2727
---
28-
# Source: twingate-operator/templates/clusterrole.yaml
28+
# Source: kubernetes-operator-chart/templates/clusterrole.yaml
2929
apiVersion: rbac.authorization.k8s.io/v1
3030
kind: ClusterRole
3131
metadata:
32-
name: test-twingate-operator-role-cluster
32+
name: test-kubernetes-operator-chart-role-cluster
3333
rules:
3434
# Framework: runtime observation of namespaces & CRDs (addition/deletion).
3535
- apiGroups: [apiextensions.k8s.io]
@@ -56,29 +56,29 @@ rules:
5656
resources: [pods, services, secrets, services/status]
5757
verbs: [list, watch, patch, get, create, delete]
5858
---
59-
# Source: twingate-operator/templates/clusterrolebinding.yaml
59+
# Source: kubernetes-operator-chart/templates/clusterrolebinding.yaml
6060
apiVersion: rbac.authorization.k8s.io/v1
6161
kind: ClusterRoleBinding
6262
metadata:
63-
name: test-twingate-operator-rolebinding-cluster
63+
name: test-kubernetes-operator-chart-rolebinding-cluster
6464
roleRef:
6565
apiGroup: rbac.authorization.k8s.io
6666
kind: ClusterRole
67-
name: test-twingate-operator-role-cluster
67+
name: test-kubernetes-operator-chart-role-cluster
6868
subjects:
6969
- kind: ServiceAccount
70-
name: test-twingate-operator
70+
name: test-kubernetes-operator-chart
7171
namespace: default
7272
---
73-
# Source: twingate-operator/templates/deployment.yaml
73+
# Source: kubernetes-operator-chart/templates/deployment.yaml
7474
apiVersion: apps/v1
7575
kind: Deployment
7676
metadata:
77-
name: test-twingate-operator
77+
name: test-kubernetes-operator-chart
7878
namespace: default
7979
labels:
80-
helm.sh/chart: twingate-operator-major.minor.patch-test
81-
app.kubernetes.io/name: twingate-operator
80+
helm.sh/chart: kubernetes-operator-chart-major.minor.patch-test
81+
app.kubernetes.io/name: kubernetes-operator-chart
8282
app.kubernetes.io/instance: test
8383
app.kubernetes.io/managed-by: Helm
8484
spec:
@@ -87,20 +87,20 @@ spec:
8787
type: Recreate
8888
selector:
8989
matchLabels:
90-
app.kubernetes.io/name: twingate-operator
90+
app.kubernetes.io/name: kubernetes-operator-chart
9191
app.kubernetes.io/instance: test
9292
template:
9393
metadata:
9494
labels:
95-
app.kubernetes.io/name: twingate-operator
95+
app.kubernetes.io/name: kubernetes-operator-chart
9696
app.kubernetes.io/instance: test
9797
spec:
98-
serviceAccountName: test-twingate-operator
98+
serviceAccountName: test-kubernetes-operator-chart
9999
securityContext:
100100
seccompProfile:
101101
type: RuntimeDefault
102102
containers:
103-
- name: twingate-operator
103+
- name: kubernetes-operator-chart
104104
securityContext:
105105
allowPrivilegeEscalation: false
106106
capabilities:
@@ -123,7 +123,7 @@ spec:
123123
- name: TWINGATE_API_KEY
124124
valueFrom:
125125
secretKeyRef:
126-
name: test-twingate-operator
126+
name: test-kubernetes-operator-chart
127127
key: TWINGATE_API_KEY
128128
- name: TWINGATE_NETWORK
129129
value: <network slug>

0 commit comments

Comments
 (0)