Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in the way live-sim works with scheme files #593

Closed
zivnevo opened this issue Sep 5, 2023 · 1 comment
Closed

Inconsistency in the way live-sim works with scheme files #593

zivnevo opened this issue Sep 5, 2023 · 1 comment

Comments

@zivnevo
Copy link
Member

zivnevo commented Sep 5, 2023

When using a scheme file:

  • If using a global podList or resourceList and not setting a network-config-specific podList or resourceList - live-sim doesn't work (in the log it seems as if kube-dns was added, but in practice it is not added).
  • If a network-config-specific podList or resourceList is set, live-sim works as expected.

Example

The two scheme files below produce different connectivity maps.

test.scheme.yaml - live-sim doesn't work

resourceList: tests/k8s_testcases/example_policies/online_boutique/new_online_boutique_manifests
networkConfigList:
  - name: test
    networkPolicyList:
      - tests/k8s_testcases/example_policies/online_boutique/synthesis_res_new_online_boutique.yaml

queries:
  - name: test-query
    connectivityMap:
      - test

test2.scheme.yaml - live-sim works

resourceList: tests/k8s_testcases/example_policies/online_boutique/new_online_boutique_manifests
networkConfigList:
  - name: test
    resourceList: tests/k8s_testcases/example_policies/online_boutique/new_online_boutique_manifests
    networkPolicyList:
      - tests/k8s_testcases/example_policies/online_boutique/synthesis_res_new_online_boutique.yaml

queries:
  - name: test-query
    connectivityMap:
      - test
@zivnevo
Copy link
Member Author

zivnevo commented Dec 5, 2023

A duplicate of #638, which has more details + an additional problem.

@zivnevo zivnevo closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant