From e502562aa45e8469fb9e12f0358ba19c5be618c9 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Wed, 23 Aug 2023 00:09:35 +0530 Subject: [PATCH 1/4] Add periodic job for the publishing bot Signed-off-by: Sayan Chowdhury --- .../publishing-bot-periodics.yml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml diff --git a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml new file mode 100644 index 000000000000..a76cdfe300f3 --- /dev/null +++ b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml @@ -0,0 +1,87 @@ +periodics: +- name: periodic-publishing-bot + cluster: k8s-infra-prow-build-trusted + annotations: + testgrid-dashboards: sig-release-publishing-bot + testgrid-tab-name: periodic + spec: + initContainers: + - name: initialize-repos + command: + - /init-repo + - --alsologtostderr + - --config=/etc/munge-config/config + - --rules-file=/etc/publisher-rules/config + - 2>&1 + image: gcr.io/k8s-staging-publishing-bot/k8s-publishing-bot + imagePullPolicy: Always + resources: + requests: + cpu: 300m + memory: 200Mi + limits: + cpu: 2 + memory: 1639Mi + 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 + - --token-file=/etc/secret-volume/token + - --interval=0 + - --server-port=8080 + - 2>&1 + image: gcr.io/k8s-staging-publishing-bot/k8s-publishing-bot + imagePullPolicy: Always + resources: + requests: + cpu: 300m + memory: 200Mi + limits: + cpu: 2 + memory: 1639Mi + volumeMounts: + - mountPath: /etc/munge-config + name: munge-config + - mountPath: /etc/publisher-rules + name: publisher-rules + - 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: munge-config + configMap: + name: publisher-config + - name: publisher-rules + configMap: + name: publisher-rules + - 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 From c7f85efec361cdd7e05f99caa534493b5b2dd0ea Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 5 Jul 2024 12:27:07 +0530 Subject: [PATCH 2/4] fixup! Add periodic job for the publishing bot Signed-off-by: Sayan Chowdhury --- .../publishing-bot-periodics.yml | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml index a76cdfe300f3..cb5caf1d9edf 100644 --- a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml +++ b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml @@ -3,32 +3,30 @@ periodics: cluster: k8s-infra-prow-build-trusted annotations: testgrid-dashboards: sig-release-publishing-bot - testgrid-tab-name: periodic + testgrid-tab-name: publish 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: @@ -36,10 +34,14 @@ periodics: command: - /publishing-bot - --alsologtostderr - - --config=/etc/munge-config/config + - --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 @@ -51,10 +53,6 @@ periodics: cpu: 2 memory: 1639Mi volumeMounts: - - mountPath: /etc/munge-config - name: munge-config - - mountPath: /etc/publisher-rules - name: publisher-rules - mountPath: /etc/secret-volume name: secret-volume - mountPath: /netrc @@ -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 From b0522e967626c6f2480b4acb36ec850970789e3f Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 5 Jul 2024 12:56:47 +0530 Subject: [PATCH 3/4] fixup! Add periodic job for the publishing bot Signed-off-by: Sayan Chowdhury --- .../kubernetes/publishing-bot/publishing-bot-periodics.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml index cb5caf1d9edf..d914d2a133f8 100644 --- a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml +++ b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml @@ -48,10 +48,10 @@ periodics: resources: requests: cpu: 300m - memory: 200Mi + memory: 2Gi limits: cpu: 2 - memory: 1639Mi + memory: 2Gi volumeMounts: - mountPath: /etc/secret-volume name: secret-volume From f561d75b7de16fe47d9d5c3c36dcc7b7c62f9d11 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Tue, 9 Jul 2024 18:18:11 +0530 Subject: [PATCH 4/4] fixup! Add periodic job for the publishing bot Signed-off-by: Sayan Chowdhury --- ...publishing-bot-periodics.yml => publishing-bot-periodics.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename config/jobs/kubernetes/publishing-bot/{publishing-bot-periodics.yml => publishing-bot-periodics.yaml} (100%) diff --git a/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml b/config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yaml similarity index 100% rename from config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yml rename to config/jobs/kubernetes/publishing-bot/publishing-bot-periodics.yaml