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

Bump peter-evans/create-pull-request from 5 to 6 #65

Closed
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: 1 addition & 1 deletion .github/workflows/update_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
fi
git cherry-pick "$commit_hash"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.ANTREA_BOT_WRITE_PAT }}
delete-branch: true
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ antrea-agent-simulator:
@mkdir -p $(BINDIR)
GOOS=linux $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/antrea/cmd/antrea-agent-simulator

.PHONY: antrea-scale
antrea-scale:
@mkdir -p $(BINDIR)
GOOS=linux $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/antrea/cmd/antrea-scale

.PHONY: antrea-agent-instr-binary
antrea-agent-instr-binary:
@mkdir -p $(BINDIR)
Expand Down Expand Up @@ -332,6 +337,12 @@ else
endif
docker tag antrea/antrea-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-ubuntu

.PHONY: antrea-scale-image
antrea-scale-image:
@echo "===> Building antrea/antrea-scale Docker image <==="
docker build -t antrea/antrea-scale:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.scale .
docker tag antrea/antrea-scale:$(DOCKER_IMG_VERSION) antrea/antrea-scale

# Build bins in a golang container, and build the antrea-ubuntu Docker image.
.PHONY: build-ubuntu
build-ubuntu:
Expand Down
1 change: 1 addition & 0 deletions build/charts/antrea/templates/simulator/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
initContainers:
- name: init-inotify-limit
image: projects.registry.vmware.com/antrea/busybox:latest
imagePullPolicy: IfNotPresent
command: ['sysctl', '-w', 'fs.inotify.max_user_instances=200']
securityContext:
privileged: true
Expand Down
9 changes: 9 additions & 0 deletions build/images/Dockerfile.scale
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:20.04

LABEL maintainer="Antrea <[email protected]>"
LABEL description="Antrea scale test image."

USER root

COPY test/performance/scale.yml .
COPY bin/antrea-scale /usr/local/bin
172 changes: 172 additions & 0 deletions build/yamls/antrea-scale-exec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: antrea-scale
namespace: default
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: antrea-scale
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- watch
- list
- apiGroups:
- ""
resources:
- pods
- endpoints
- services
- namespaces
verbs:
- create
- get
- watch
- list
- delete
- deletecollection
- apiGroups:
- ""
resources:
- pods/exec
verbs:
- create
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
verbs:
- create
- get
- delete
- list
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- get
- watch
- list
- create
- delete
- deletecollection
- apiGroups:
- clusterinformation.antrea.tanzu.vmware.com
resources:
- antreaagentinfos
verbs:
- get
- create
- update
- delete
- apiGroups:
- controlplane.antrea.tanzu.vmware.com
- networking.antrea.tanzu.vmware.com
resources:
- networkpolicies
- appliedtogroups
- addressgroups
verbs:
- get
- watch
- list
- apiGroups:
- controlplane.antrea.tanzu.vmware.com
resources:
- nodestatssummaries
verbs:
- create
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- ""
resourceNames:
- extension-apiserver-authentication
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- antrea-ca
verbs:
- get
- watch
- list
- apiGroups:
- ops.antrea.tanzu.vmware.com
resources:
- traceflows
- traceflows/status
verbs:
- get
- watch
- list
- update
- patch
- create
- delete
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: antrea-scale
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: antrea-scale
subjects:
- kind: ServiceAccount
name: antrea-scale
namespace: default
---
apiVersion: batch/v1
kind: Job
metadata:
name: antrea-scale
spec:
template:
metadata:
name: antrea-scale
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: antrea/instance
operator: NotIn
values:
- simulator
containers:
- name: antrea-scale
image: antrea/antrea-scale:latest
imagePullPolicy: IfNotPresent
command: ["antrea-scale"]
args:
- "--config=scale.yml"
serviceAccountName: antrea-scale
restartPolicy: Never
priorityClassName: system-node-critical
nodeSelector:
kubernetes.io/os: linux
backoffLimit: 1
Loading
Loading