Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
# Test reasonably complicated CRDs; promethesurules and servicemonitors
- run: just test-pr
- run: just test-sm
# Cilium with a non/spec-status model
- run: just test-cilium-netpol
# Test a fake CRD with multiple versions
- run: just test-mv
# Test argocd Application
Expand Down
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,12 @@ test-istio-destrule:
# NB: this currently fails because of an empty status object with preserve-unknown-fields
cargo test --test runner -- --nocapture

test-cilium-netpol:
kubectl apply --server-side -f tests/ciliumnetpol-crd.yaml
cargo run --bin kopium -- -A ciliumnetworkpolicies.cilium.io > tests/gen.rs
echo "pub type CR = CiliumNetworkPolicy;" >> tests/gen.rs
kubectl apply -f tests/ciliumnetpol-working.yaml
cargo test --test runner -- --nocapture

release:
cargo release minor --execute
15 changes: 15 additions & 0 deletions tests/ciliumnetpol-broken.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
name: "gen"
specs:
- endpointSelector:
matchLabels: {}
egress:
- toEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": default
ingress:
- fromEndpoints:
- matchLabels:
"k8s:io.kubernetes.pod.namespace": default
Loading