-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(kuma-cp) more provided gateway id tests
Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
- Loading branch information
Paul Parkanzky
committed
Aug 3, 2022
1 parent
f44269b
commit 48c54b5
Showing
8 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
pkg/plugins/runtime/k8s/controllers/testdata/21.dataplane.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mesh: default | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
networking: | ||
address: 192.168.0.1 | ||
gateway: | ||
tags: | ||
app: example | ||
k8s.kuma.io/namespace: demo | ||
k8s.kuma.io/service-name: example | ||
k8s.kuma.io/service-port: "80" | ||
kuma.io/protocol: tcp | ||
kuma.io/service: example_demo_svc_80 | ||
kuma.io/zone: zone-1 | ||
version: "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
metadata: | ||
namespace: demo | ||
name: example | ||
labels: | ||
app: example | ||
version: "0.1" | ||
annotations: | ||
kuma.io/gateway: provided | ||
spec: | ||
containers: | ||
- ports: | ||
- containerPort: 7070 | ||
- containerPort: 6060 | ||
name: metrics | ||
status: | ||
podIP: 192.168.0.1 |
12 changes: 12 additions & 0 deletions
12
pkg/plugins/runtime/k8s/controllers/testdata/21.services-for-pod.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
metadata: | ||
namespace: demo | ||
name: example | ||
spec: | ||
clusterIP: 192.168.0.1 | ||
ports: | ||
- # protocol defaults to TCP | ||
port: 80 | ||
targetPort: 8080 | ||
- protocol: TCP | ||
port: 443 | ||
targetPort: 8443 |
16 changes: 16 additions & 0 deletions
16
pkg/plugins/runtime/k8s/controllers/testdata/22.dataplane.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mesh: default | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
networking: | ||
address: 192.168.0.1 | ||
gateway: | ||
tags: | ||
app: example | ||
k8s.kuma.io/namespace: demo | ||
k8s.kuma.io/service-name: example | ||
k8s.kuma.io/service-port: "80" | ||
kuma.io/protocol: tcp | ||
kuma.io/service: example_demo_svc_80 | ||
kuma.io/zone: zone-1 | ||
version: "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metadata: | ||
namespace: demo | ||
ownerReferences: | ||
- name: replicaSetOne | ||
kind: ReplicaSet | ||
name: example | ||
labels: | ||
app: example | ||
version: "0.1" | ||
annotations: | ||
kuma.io/gateway: provided | ||
spec: | ||
containers: | ||
- ports: | ||
- containerPort: 7070 | ||
- containerPort: 6060 | ||
name: metrics | ||
status: | ||
podIP: 192.168.0.1 |
11 changes: 11 additions & 0 deletions
11
pkg/plugins/runtime/k8s/controllers/testdata/22.replicasets-for-pod.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
name: replicaSetOne | ||
namespace: demo | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: app | ||
image: app-image |
12 changes: 12 additions & 0 deletions
12
pkg/plugins/runtime/k8s/controllers/testdata/22.services-for-pod.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
metadata: | ||
namespace: demo | ||
name: example | ||
spec: | ||
clusterIP: 192.168.0.1 | ||
ports: | ||
- # protocol defaults to TCP | ||
port: 80 | ||
targetPort: 8080 | ||
- protocol: TCP | ||
port: 443 | ||
targetPort: 8443 |