Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,29 @@ jobs:
# no need to run e2e tests with race, as this will just apply to the test code.
# all objects created in e2e tests have a generated name, so they can run in parallel safely.
go test -v github.com/kagent-dev/kagent/go/core/test/e2e -failfast -shuffle=on

- name: Run namespace-scoped e2e tests
if: success()
env:
OPENAI_API_KEY: fake
KAGENT_HELM_EXTRA_ARGS: >-
--set rbac.clusterScoped=false
--set 'rbac.namespaces={kagent}'
run: |
# Upgrade helm to use namespace-scoped RBAC
make helm-install-provider

# Wait for controller to be ready after upgrade
kubectl rollout status deployment/kagent-controller -n kagent --timeout=90s

# Setup environment variables (reusing logic from previous step)
HOST_IP=$(docker network inspect kind -f '{{range .IPAM.Config}}{{if .Gateway}}{{.Gateway}}{{"\n"}}{{end}}{{end}}' | grep -E '^[0-9]+\.' | head -1)
export KAGENT_LOCAL_HOST=$HOST_IP
export KAGENT_URL="http://$(kubectl get svc -n kagent kagent-controller -o jsonpath='{.status.loadBalancer.ingress[0].ip}'):8083"

# Run critical tests with namespace-scoped RBAC to verify the controller didn't lose needed permissions
cd go
go test -v github.com/kagent-dev/kagent/go/core/test/e2e -run '^TestE2EInvokeInlineAgent$|^TestE2EInvokeDeclarativeAgentWithMcpServerTool$' -failfast
- name: fail print info
if: failure()
run: |
Expand Down
126 changes: 0 additions & 126 deletions helm/agents/argo-rollouts/templates/rbac.yaml

This file was deleted.

68 changes: 0 additions & 68 deletions helm/agents/cilium-debug/templates/rbac.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions helm/agents/cilium-manager/templates/rbac.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions helm/agents/cilium-policy/templates/rbac.yaml

This file was deleted.

Loading
Loading