Skip to content

Commit a91183e

Browse files
authored
Merge branch 'master' into cleanversion
2 parents d08279e + 3c0b3c7 commit a91183e

File tree

16 files changed

+79
-53
lines changed

16 files changed

+79
-53
lines changed

.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: v0.2.71
1+
version: v0.2.77

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#!/usr/bin/env groovy
2-
@Library('github.com/stakater/stakater-pipeline-library@v2.16.15') _
1+
#!/usr/bin/groovy
2+
@Library('github.com/stakater/stakater-pipeline-library@v2.16.24') _
33

44
goBuildViaGoReleaser {
55
publicChartRepositoryURL = 'https://stakater.github.io/stakater-charts'
66
publicChartGitURL = 'git@github.com:stakater/stakater-charts.git'
7-
}
7+
toolsImage = 'stakater/pipeline-tools:v2.0.18'
8+
}

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ jenkinswebhookproxy:
131131
restart: on-failure
132132
```
133133

134+
## Troubleshooting
135+
### 405 Method Not Allowed with Jenkins & github plugin
136+
If you get the following error when setting up webhooks for your jobs in Jenkins, make sure you have the trailing `/` in the webhook configured in Jenkins.
137+
```
138+
Error Redirecting '/github-webhook' to upstream', Upstream Redirect Status: 405 Method Not Allowed
139+
```
134140
135141
## Help
136142
@@ -140,8 +146,8 @@ File a GitHub [issue](https://github.com/stakater/GitWebhookProxy/issues), or se
140146
### Talk to us on Slack
141147
Join and talk to us on the #tools-gwp channel for discussing about GitWebhookProxy
142148
143-
[![Join Slack](https://stakater.github.io/README/stakater-join-slack-btn.png)](https://stakater-slack.herokuapp.com/)
144-
[![Chat](https://stakater.github.io/README/stakater-chat-btn.png)](https://stakater.slack.com/messages/CAQ5A4HGD/)
149+
[![Join Slack](https://stakater.github.io/README/stakater-join-slack-btn.png)](https://slack.stakater.com/)
150+
[![Chat](https://stakater.github.io/README/stakater-chat-btn.png)](https://stakater-community.slack.com/messages/CAQ5A4HGD)
145151
146152
## Contributing
147153

deployments/kubernetes/chart/gitwebhookproxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: v1
44
name: gitwebhookproxy
55
description: GitWebhookProxy chart that runs on kubernetes
6-
version: v0.2.71
6+
version: v0.2.77
77
keywords:
88
- GitWebhookProxy
99
- kubernetes

deployments/kubernetes/chart/gitwebhookproxy/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ spec:
8383
valueFrom:
8484
secretKeyRef:
8585
key: secret
86-
{{- if .Values.gitWebhookProxy.useCustomName }}
86+
{{- if .Values.gitWebhookProxy.existingSecretName }}
87+
name: {{ .Values.gitWebhookProxy.existingSecretName }}
88+
{{- else if .Values.gitWebhookProxy.useCustomName }}
8789
name: {{ .Values.gitWebhookProxy.customName }}
8890
{{- else }}
8991
name: {{ template "gitwebhookproxy.name" . }}

deployments/kubernetes/chart/gitwebhookproxy/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ spec:
3030
tls:
3131
- hosts:
3232
- {{ .Values.gitWebhookProxy.ingress.host }}
33+
{{- if .Values.gitWebhookProxy.ingress.tlsSecretName }}
34+
secretName: {{ .Values.gitWebhookProxy.ingress.tlsSecretName }}
35+
{{- end }}
3336
{{- end }}

deployments/kubernetes/chart/gitwebhookproxy/templates/secret.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.gitWebhookProxy.existingSecretName }}
12
apiVersion: v1
23
kind: Secret
34
metadata:
@@ -10,4 +11,5 @@ metadata:
1011
name: {{ template "gitwebhookproxy.name" . }}
1112
{{- end }}
1213
data:
13-
secret: "{{ .Values.gitWebhookProxy.config.secret | b64enc }}"
14+
secret: "{{ .Values.gitWebhookProxy.config.secret | b64enc }}"
15+
{{- end }}

deployments/kubernetes/chart/gitwebhookproxy/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ gitWebhookProxy:
77
useCustomName: false
88
customName: gitlabwebhookproxy
99
namespace: default
10+
# name of existing secret containing secret for hashes
11+
existingSecretName: ""
1012
labels:
1113
provider: stakater
1214
group: com.stakater.platform
13-
version: v0.2.71
15+
version: v0.2.77
1416
image:
1517
name: stakater/gitwebhookproxy
16-
tag: "v0.2.71"
18+
tag: "v0.2.77"
1719
pullPolicy: IfNotPresent
1820
config:
1921
provider: github
@@ -38,5 +40,6 @@ gitWebhookProxy:
3840
kubernetes.io/ingress.class: external-ingress
3941
monitor.stakater.com/enabled: "true"
4042
host: gitwebhookproxy.tools.stackator.com
43+
tlsSecretName: ""
4144
serviceName: gitwebhookproxy
4245
servicePort: 80

deployments/kubernetes/gitwebhookproxy.yaml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
---
2+
# Source: gitwebhookproxy/templates/configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
annotations:
7+
fabric8.io/target-platform: kubernetes
8+
labels:
9+
app: gitwebhookproxy
10+
group: com.stakater.platform
11+
provider: stakater
12+
version: v0.2.77
13+
chart: "gitwebhookproxy-v0.2.77"
14+
release: "gitwebhookproxy"
15+
heritage: "Tiller"
16+
name: gitwebhookproxy
17+
data:
18+
provider: github
19+
upstreamURL: https://jenkins.tools.stackator.com
20+
allowedPaths: /github-webhook,/project
21+
ignoredUsers: stakater-user
22+
allowedUsers: myuser
23+
124
---
225
# Source: gitwebhookproxy/templates/deployment.yaml
326
apiVersion: apps/v1
@@ -7,8 +30,8 @@ metadata:
730
app: gitwebhookproxy
831
group: com.stakater.platform
932
provider: stakater
10-
version: v0.2.71
11-
chart: "gitwebhookproxy-v0.2.71"
33+
version: v0.2.77
34+
chart: "gitwebhookproxy-v0.2.77"
1235
release: "gitwebhookproxy"
1336
heritage: "Tiller"
1437
annotations:
@@ -66,7 +89,7 @@ spec:
6689
secretKeyRef:
6790
key: secret
6891
name: gitwebhookproxy
69-
image: "stakater/gitwebhookproxy:v0.2.71"
92+
image: "stakater/gitwebhookproxy:v0.2.77"
7093
imagePullPolicy: IfNotPresent
7194
name: gitwebhookproxy
7295
livenessProbe:
@@ -96,20 +119,22 @@ spec:
96119

97120
---
98121
# Source: gitwebhookproxy/templates/secret.yaml
122+
99123
apiVersion: v1
100124
kind: Secret
101125
metadata:
102126
labels:
103127
app: gitwebhookproxy
104128
group: com.stakater.platform
105129
provider: stakater
106-
version: v0.2.71
107-
chart: "gitwebhookproxy-v0.2.71"
130+
version: v0.2.77
131+
chart: "gitwebhookproxy-v0.2.77"
108132
release: "gitwebhookproxy"
109133
heritage: "Tiller"
110134
name: gitwebhookproxy
111135
data:
112136
secret: ""
137+
113138
---
114139
# Source: gitwebhookproxy/templates/service.yaml
115140
apiVersion: v1
@@ -119,8 +144,8 @@ metadata:
119144
app: gitwebhookproxy
120145
group: com.stakater.platform
121146
provider: stakater
122-
version: v0.2.71
123-
chart: "gitwebhookproxy-v0.2.71"
147+
version: v0.2.77
148+
chart: "gitwebhookproxy-v0.2.77"
124149
release: "gitwebhookproxy"
125150
heritage: "Tiller"
126151
expose: "true"
@@ -136,26 +161,3 @@ spec:
136161
app: gitwebhookproxy
137162
group: com.stakater.platform
138163
provider: stakater
139-
---
140-
# Source: gitwebhookproxy/templates/configmap.yaml
141-
apiVersion: v1
142-
kind: ConfigMap
143-
metadata:
144-
annotations:
145-
fabric8.io/target-platform: kubernetes
146-
labels:
147-
app: gitwebhookproxy
148-
group: com.stakater.platform
149-
provider: stakater
150-
version: v0.2.71
151-
chart: "gitwebhookproxy-v0.2.71"
152-
release: "gitwebhookproxy"
153-
heritage: "Tiller"
154-
name: gitwebhookproxy
155-
data:
156-
provider: github
157-
upstreamURL: https://jenkins.tools.stackator.com
158-
allowedPaths: /github-webhook,/project
159-
ignoredUsers: stakater-user
160-
allowedUsers: myuser
161-

deployments/kubernetes/manifests/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ metadata:
99
app: gitwebhookproxy
1010
group: com.stakater.platform
1111
provider: stakater
12-
version: v0.2.71
13-
chart: "gitwebhookproxy-v0.2.71"
12+
version: v0.2.77
13+
chart: "gitwebhookproxy-v0.2.77"
1414
release: "gitwebhookproxy"
1515
heritage: "Tiller"
1616
name: gitwebhookproxy

0 commit comments

Comments
 (0)