Skip to content

Commit 1b3b4e0

Browse files
committed
Adjust deploying/tests codes.
1 parent a81c49a commit 1b3b4e0

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
lines changed

deploy/1.clusterrole-and-binding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ rules:
2020
resources: ["configmaps", "events", "ingresses/status", "services/status"]
2121
verbs: ["get", "list", "watch", "update", "create", "patch"]
2222
- apiGroups: ["gateway.networking.k8s.io"]
23-
resources: ["gatewayclasses", "gateways", "httproutes"]
23+
resources: ["gatewayclasses", "gateways", "httproutes", "referencegrants"]
2424
verbs: ["get", "list", "watch"]
2525
- apiGroups: ["gateway.networking.k8s.io"]
26-
resources: ["gatewayclasses/status"]
26+
resources: ["gatewayclasses/status", "gateways/status", "httproutes/status", "referencegrants/status"]
2727
verbs: ["get", "list", "watch", "update"]
2828

2929
---

deploy/3.deploy-bigip-kubernetes-gateway-controller.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
---
22

3-
apiVersion: v1
4-
kind: Secret
5-
metadata:
6-
name: bigip-login
7-
namespace: kube-system
8-
data:
9-
password: UEBzc3cwcmQxMjM= # base64 encoded
10-
type: Opaque
11-
123
apiVersion: v1
134
type: kubernetes.io/tls
145
kind: Secret
@@ -119,6 +110,17 @@ webhooks:
119110

120111
---
121112

113+
apiVersion: v1
114+
kind: Secret
115+
metadata:
116+
name: bigip-login
117+
namespace: kube-system
118+
data:
119+
password: UEBzc3cwcmQxMjM= # base64 encoded
120+
type: Opaque
121+
122+
---
123+
122124
apiVersion: v1
123125
kind: ConfigMap
124126
metadata:

tests/systest/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test-config.yaml

tests/systest/controllers_basics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func checkResourcesAsExpected() {
131131
Expect(err).To(Succeed())
132132
// slog.Infof("members: %d", len(members))
133133
return err == nil && len(members) == svcVars["replicas"].(int)
134-
}).WithContext(ctx).ProbeEvery(time.Millisecond * 500).WithTimeout(time.Second * 50).Should(BeTrue())
134+
}).WithContext(ctx).ProbeEvery(time.Millisecond * 500).WithTimeout(time.Second * 120).Should(BeTrue())
135135

136136
slog.Infof("pool is created as expected")
137137
slog.Infof("finished bigip resources checking")

tests/systest/controllers_resource_order_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
. "github.com/onsi/gomega"
1010
)
1111

12-
var _ = Describe("Controllers random resource list", Ordered, func() {
12+
var _ = Describe("Controllers random resource list", func() {
1313

1414
BeforeEach(func() {
1515
yamls := []string{
File renamed without changes.

tests/systest/webhooks_gatewayclass_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
. "github.com/onsi/gomega"
99
)
1010

11-
var _ = Describe("Webhhooks Validating GatewayClass", Ordered, func() {
11+
var _ = PDescribe("Webhhooks Validating GatewayClass", Ordered, func() {
1212

1313
BeforeAll(func() {
1414
for _, yaml := range []string{

0 commit comments

Comments
 (0)