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 1 commit
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
34 changes: 13 additions & 21 deletions config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,45 @@ periodics:
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-release-publishing-bot
testgrid-tab-name: periodic
testgrid-tab-name: publish
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might have to create a new tab for this

spec:
initContainers:
- name: initialize-repos
command:
- /init-repo
- --alsologtostderr
- --config=/etc/munge-config/config
- --rules-file=/etc/publisher-rules/config
- --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
image: gcr.io/k8s-staging-publishing-bot/k8s-publishing-bot:latest
imagePullPolicy: Always
resources:
requests:
cpu: 300m
memory: 200Mi
memory: 2Gi
limits:
cpu: 2
memory: 1639Mi
memory: 2Gi
volumeMounts:
- mountPath: /etc/munge-config
name: munge-config
- mountPath: /go-workspace
name: publisher-gopath
- mountPath: /etc/publisher-rules
name: publisher-rules
- mountPath: /.cache
name: cache
containers:
- name: publisher
command:
- /publishing-bot
- --alsologtostderr
- --config=/etc/munge-config/config
- --source-repo=kubernetes
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akhilerm do we need the rules-file flag for the /publishing-bot as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It is needed.

- --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
Expand All @@ -51,10 +53,6 @@ periodics:
cpu: 2
memory: 1639Mi
sayanchowdhury marked this conversation as resolved.
Show resolved Hide resolved
volumeMounts:
- mountPath: /etc/munge-config
name: munge-config
- mountPath: /etc/publisher-rules
name: publisher-rules
- mountPath: /etc/secret-volume
name: secret-volume
- mountPath: /netrc
Expand All @@ -66,12 +64,6 @@ periodics:
- mountPath: /.cache
name: cache
volumes:
- name: munge-config
configMap:
name: publisher-config
- name: publisher-rules
configMap:
name: publisher-rules
- name: secret-volume
secret:
secretName: publishing-bot-github-token
Expand Down