Skip to content

Commit

Permalink
feat: add github-comment-ops chart (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Jul 21, 2022
1 parent 7e64e58 commit 612cb5d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
12 changes: 12 additions & 0 deletions clusters/prodpublick8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ repositories:
url: https://charts.jetstack.io
- name: prometheus-community
url: https://prometheus-community.github.io/helm-charts
- name: github-comment-ops
url: https://timja.github.io/github-comment-ops/
releases:
- name: datadog
namespace: datadog
Expand Down Expand Up @@ -253,3 +255,13 @@ releases:
- public-nginx-ingress/public-nginx-ingress # Required to expose both the UI and the webhooks endpoint
values:
- "../config/jenkinsisthewayio.yaml"
- name: github-comment-ops
namespace: github-comment-ops
chart: github-comment-ops/github-comment-ops
version: 1.2.0
needs:
- public-nginx-ingress/public-nginx-ingress # Required to expose the webhooks endpoint
values:
- "../config/ext_github-comment-ops.yaml"
secrets:
- "../secrets/config/github-comment-ops/secrets.yaml"
15 changes: 15 additions & 0 deletions config/ext_github-comment-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ingress:
enabled: true
className: public-nginx
annotations:
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
"nginx.ingress.kubernetes.io/ssl-redirect": "true"
hosts:
- host: webhook-github-comment-ops.jenkins.io
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: github-comment-ops-tls
hosts:
- webhook-github-comment-ops
41 changes: 41 additions & 0 deletions updatecli/updatecli.d/charts/github-comment-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
title: "Bump github-comment-ops Helm Chart Version"

scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"

sources:
lastChartVersion:
kind: helmchart
spec:
url: https://timja.github.io/github-comment-ops
name: github-comment-ops

targets:
updateChartVersion:
name: "Update the chart version for github-comment-ops"
kind: file
spec:
file: clusters/prodpublick8s.yaml
matchpattern: 'chart: github-comment-ops\/github-comment-ops((\r\n|\r|\n)(\s+))version: .*'
replacepattern: 'chart: github-comment-ops/github-comment-ops${1}version: {{ source "lastChartVersion" }}'
scmid: default

pullrequests:
default:
kind: github
scmid: default
targets:
- updateChartVersion
spec:
labels:
- dependencies
- github-comment-ops

0 comments on commit 612cb5d

Please sign in to comment.