-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: validate pods and systemd-networkd restart for PRs (#1909)
* update script to check cns in memory and add to pr pipeline * adding stage to both overlay and podsubnet cilium stages * add exit case if priveleged pod is not found * check status of priv pod * call ds status before exit * install cilium ds with kubectl and not helm for systemd-networkd initcontainer patch * upload cilium ds * adding files for cilium-agent and cilium-operator deployment * update cilium ds * addressing comments
- Loading branch information
1 parent
64bfb38
commit 5949700
Showing
12 changed files
with
983 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
test/integration/manifests/cilium/cilium-agent/clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: cilium | ||
rules: | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- networkpolicies | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- discovery.k8s.io | ||
resources: | ||
- endpointslices | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
- services | ||
- pods | ||
- endpoints | ||
- nodes | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- list | ||
- watch | ||
# This is used when validating policies in preflight. This will need to stay | ||
# until we figure out how to avoid "get" inside the preflight, and then | ||
# should be removed ideally. | ||
- get | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- ciliumbgploadbalancerippools | ||
- ciliumbgppeeringpolicies | ||
- ciliumclusterwideenvoyconfigs | ||
- ciliumclusterwidenetworkpolicies | ||
- ciliumegressgatewaypolicies | ||
- ciliumegressnatpolicies | ||
- ciliumendpoints | ||
- ciliumendpointslices | ||
- ciliumenvoyconfigs | ||
- ciliumidentities | ||
- ciliumlocalredirectpolicies | ||
- ciliumnetworkpolicies | ||
- ciliumnodes | ||
verbs: | ||
- list | ||
- watch | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- ciliumidentities | ||
- ciliumendpoints | ||
- ciliumnodes | ||
verbs: | ||
- create | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- ciliumendpoints | ||
verbs: | ||
- delete | ||
- get | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- ciliumnodes | ||
- ciliumnodes/status | ||
verbs: | ||
- get | ||
- update | ||
- apiGroups: | ||
- cilium.io | ||
resources: | ||
- ciliumnetworkpolicies/status | ||
- ciliumclusterwidenetworkpolicies/status | ||
- ciliumendpoints/status | ||
- ciliumendpoints | ||
verbs: | ||
- patch |
12 changes: 12 additions & 0 deletions
12
test/integration/manifests/cilium/cilium-agent/clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: cilium | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cilium | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "cilium" | ||
namespace: kube-system |
Oops, something went wrong.