Skip to content

Commit

Permalink
Fix CI/CD e2e test to ignore the status part of the ClientIntents res…
Browse files Browse the repository at this point in the history
…ource (#347)
  • Loading branch information
NetanelBollag committed Jan 25, 2024
1 parent b684779 commit cc1edf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/intents-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ spec:
- name: server
service:
name: client
status:
2 changes: 1 addition & 1 deletion .github/workflows/netpol-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
kubectl apply -f https://docs.otterize.com/code-examples/automate-network-policies/intents.yaml
echo "Validate intents spec format"
kubectl get clientintents.k8s.otterize.com -n otterize-tutorial-npol client -o yaml | awk '/spec:/,EOF' | diff -s - .github/workflows/intents-spec.yaml
kubectl get clientintents.k8s.otterize.com -n otterize-tutorial-npol client -o yaml | sed -n '/spec:/,/status:/p' | diff -s - .github/workflows/intents-spec.yaml
# should work because there is an applied intent
echo check client log
Expand Down

0 comments on commit cc1edf7

Please sign in to comment.