Skip to content

Commit fcfe2b3

Browse files
committed
Upgrade Otterize-CLI to support new features in future e2e tests
1 parent a66ac9d commit fcfe2b3

File tree

3 files changed

+33
-22
lines changed

3 files changed

+33
-22
lines changed

.github/actions/e2e-test-setup-action/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ runs:
9797
helm install otterize ./helm-charts/network-mapper -n otterize-system --create-namespace --set debug=true $MAPPER_FLAGS $SNIFFER_FLAGS $TELEMETRY_FLAG ${{inputs.install-extra-flags}}
9898
shell: bash
9999

100+
- name: Install CLI
101+
run: |-
102+
wget --header="X-Otterize-Test: true" https://get.otterize.com/otterize-cli/v2.0.3/otterize_linux_x86_64.tar.gz
103+
tar xf otterize_linux_x86_64.tar.gz
104+
sudo cp otterize /usr/local/bin
105+
shell: bash
106+
100107
- name: Wait for Otterize
101108
run: |-
102109
kubectl wait pods -n otterize-system -l app=otterize-network-sniffer --for condition=Ready --timeout=90s

.github/workflows/e2e-test.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ jobs:
5959
sniffer-image: ${{ inputs.sniffer-image }}
6060
registry: ${{ inputs.registry }}
6161

62-
- name: Install CLI
63-
run: |-
64-
wget --header="X-Otterize-Test: true" https://get.otterize.com/otterize-cli/v0.1.30/otterize_linux_x86_64.tar.gz
65-
tar xf otterize_linux_x86_64.tar.gz
66-
sudo cp otterize /usr/local/bin
67-
6862
- name: Deploy Tutorial services
6963
run: |-
7064
kubectl apply -n otterize-tutorial-mapper -f https://docs.otterize.com/code-examples/network-mapper/all.yaml
@@ -131,12 +125,6 @@ jobs:
131125
registry: ${{ inputs.registry }}
132126
install-extra-flags: " --set kafkawatcher.enable=true --set kafkawatcher.kafkaServers={\"kafka-0.kafka\"} "
133127

134-
- name: Install CLI
135-
run: |-
136-
wget --header="X-Otterize-Test: true" https://get.otterize.com/otterize-cli/v2.0.3/otterize_linux_x86_64.tar.gz
137-
tar xf otterize_linux_x86_64.tar.gz
138-
sudo cp otterize /usr/local/bin
139-
140128
- name: Deploy Kafka
141129
run: |-
142130
helm repo add otterize https://helm.otterize.com
Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,56 @@
11
[
22
{
33
"kind": "ClientIntents",
4-
"apiVersion": "k8s.otterize.com/v1alpha2",
4+
"apiVersion": "k8s.otterize.com/v2beta1",
55
"metadata": {
66
"name": "client",
77
"namespace": "otterize-tutorial-mapper",
88
"creationTimestamp": null
99
},
1010
"spec": {
11-
"service": {
12-
"name": "client"
11+
"workload": {
12+
"name": "client",
13+
"kind": "Deployment"
1314
},
14-
"calls": [
15+
"targets": [
1516
{
16-
"name": "server"
17+
"kubernetes": {
18+
"name": "server",
19+
"kind": "Deployment"
20+
}
1721
}
1822
]
23+
},
24+
"status": {
25+
"upToDate": false,
26+
"observedGeneration": 0
1927
}
2028
},
2129
{
2230
"kind": "ClientIntents",
23-
"apiVersion": "k8s.otterize.com/v1alpha2",
31+
"apiVersion": "k8s.otterize.com/v2beta1",
2432
"metadata": {
2533
"name": "client2",
2634
"namespace": "otterize-tutorial-mapper",
2735
"creationTimestamp": null
2836
},
2937
"spec": {
30-
"service": {
31-
"name": "client2"
38+
"workload": {
39+
"name": "client2",
40+
"kind": "Deployment"
3241
},
33-
"calls": [
42+
"targets": [
3443
{
35-
"name": "server"
44+
"kubernetes": {
45+
"name": "server",
46+
"kind": "Deployment"
47+
}
3648
}
3749
]
50+
},
51+
"status": {
52+
"upToDate": false,
53+
"observedGeneration": 0
3854
}
3955
}
4056
]

0 commit comments

Comments
 (0)