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

Add periodic job for the publishing bot #30572

Closed
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
periodics:
- name: periodic-publishing-bot
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-release-publishing-bot
testgrid-tab-name: publish
spec:
initContainers:
- name: initialize-repos
command:
- /init-repo
- --alsologtostderr
- --source-repo=kubernetes
- --source-org=kubernetes
- --target-org=kubernetes
- --rules-file=https://raw.githubusercontent.com/kubernetes/kubernetes/master/staging/publishing/rules.yaml
- 2>&1
image: gcr.io/k8s-staging-publishing-bot/k8s-publishing-bot:latest
imagePullPolicy: Always
resources:
requests:
cpu: 300m
memory: 2Gi
limits:
cpu: 2
memory: 2Gi
volumeMounts:
- mountPath: /go-workspace
name: publisher-gopath
- mountPath: /.cache
name: cache
containers:
- name: publisher
command:
- /publishing-bot
- --alsologtostderr
- --source-repo=kubernetes
- --source-org=kubernetes
- --target-org=kubernetes
- --token-file=/etc/secret-volume/token
- --interval=0
- --server-port=8080
- --dry-run=false
- --github-issue=56876
- 2>&1
image: gcr.io/k8s-staging-publishing-bot/k8s-publishing-bot
imagePullPolicy: Always
resources:
requests:
cpu: 300m
memory: 2Gi
limits:
cpu: 2
memory: 2Gi
volumeMounts:
- mountPath: /etc/secret-volume
name: secret-volume
- mountPath: /netrc
name: netrc
- mountPath: /gitrepos
name: repo
- mountPath: /go-workspace
name: publisher-gopath
- mountPath: /.cache
name: cache
volumes:
- name: secret-volume
secret:
secretName: publishing-bot-github-token
- name: repo
emptyDir: {}
- name: cache
emptyDir: {}
- name: netrc
emptyDir:
medium: Memory
- name: publisher-gopath
persistentVolumeClaim:
claimName: publishing-bot-pvc