Skip to content

Commit a22299e

Browse files
chore: release 0.0.4
1 parent 3a551f5 commit a22299e

File tree

6 files changed

+152
-2
lines changed

6 files changed

+152
-2
lines changed

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Changes
2+
3+
### Bug Fixes
4+
5+
* avoid breaking lighthouse job creation (Vincent Behar)
6+
7+
### Pull Requests
8+
9+
* [#2](https://github.com/jenkins-x/lighthouse-telemetry-plugin/pull/2) fix: avoid breaking tekton reconciliation

charts/lighthouse-telemetry-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: lighthouse-telemetry-plugin
33
description: Lighthouse plugin to export telemetry data, including distributed traces
44
icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-website/master/images/logo/jenkinsx-icon-color.svg
55
home: https://github.com/jenkins-x/lighthouse-telemetry-plugin
6-
version: 0.0.1
6+
version: 0.0.4
77
appVersion: latest
88
sources:
99
- https://github.com/jenkins-x/lighthouse-telemetry-plugin
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# lighthouse-telemetry-plugin
2+
3+
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
4+
5+
Lighthouse plugin to export telemetry data, including distributed traces
6+
7+
**Homepage:** <https://github.com/jenkins-x/lighthouse-telemetry-plugin>
8+
9+
## Source Code
10+
11+
* <https://github.com/jenkins-x/lighthouse-telemetry-plugin>
12+
13+
## Values
14+
15+
| Key | Type | Default | Description |
16+
|-----|------|---------|-------------|
17+
| config.logLevel | string | `"INFO"` | |
18+
| config.resyncInterval | string | `"1h"` | |
19+
| deployment.annotations | object | `{}` | |
20+
| deployment.labels | object | `{}` | |
21+
| deployment.replicas | int | `1` | |
22+
| deployment.revisionHistoryLimit | int | `2` | |
23+
| fullnameOverride | string | `nil` | |
24+
| image.pullPolicy | string | `nil` | |
25+
| image.repository | string | `"gcr.io/jenkinsxio/lighthouse-telemetry-plugin"` | |
26+
| image.tag | string | `nil` | |
27+
| jx.releaseCRD | bool | `true` | |
28+
| nameOverride | string | `nil` | |
29+
| pod.activeDeadlineSeconds | string | `nil` | |
30+
| pod.affinity | object | `{}` | |
31+
| pod.annotations | object | `{}` | |
32+
| pod.enableServiceLinks | bool | `false` | |
33+
| pod.env | object | `{}` | |
34+
| pod.hostAliases | list | `[]` | |
35+
| pod.labels | object | `{}` | |
36+
| pod.nodeSelector | object | `{}` | |
37+
| pod.resources.limits.cpu | string | `"1"` | |
38+
| pod.resources.limits.memory | string | `"512M"` | |
39+
| pod.resources.requests.cpu | string | `"0.2"` | |
40+
| pod.resources.requests.memory | string | `"256M"` | |
41+
| pod.schedulerName | string | `nil` | |
42+
| pod.securityContext.fsGroup | int | `1000` | |
43+
| pod.terminationGracePeriodSeconds | string | `nil` | |
44+
| pod.tolerations | list | `[]` | |
45+
| role.rules[0].apiGroups[0] | string | `"jenkins.io"` | |
46+
| role.rules[0].resources[0] | string | `"pipelineactivities"` | |
47+
| role.rules[0].verbs[0] | string | `"list"` | |
48+
| role.rules[0].verbs[1] | string | `"watch"` | |
49+
| role.rules[0].verbs[2] | string | `"get"` | |
50+
| role.rules[0].verbs[3] | string | `"patch"` | |
51+
| role.rules[1].apiGroups[0] | string | `"tekton.dev"` | |
52+
| role.rules[1].resources[0] | string | `"pipelineruns"` | |
53+
| role.rules[1].resources[1] | string | `"taskruns"` | |
54+
| role.rules[1].verbs[0] | string | `"list"` | |
55+
| role.rules[1].verbs[1] | string | `"watch"` | |
56+
| role.rules[1].verbs[2] | string | `"get"` | |
57+
| role.rules[1].verbs[3] | string | `"patch"` | |
58+
| role.rules[2].apiGroups[0] | string | `"lighthouse.jenkins.io"` | |
59+
| role.rules[2].resources[0] | string | `"lighthousejobs"` | |
60+
| role.rules[2].verbs[0] | string | `"list"` | |
61+
| role.rules[2].verbs[1] | string | `"watch"` | |
62+
| role.rules[2].verbs[2] | string | `"get"` | |
63+
| role.rules[2].verbs[3] | string | `"patch"` | |
64+
| role.rules[3].apiGroups[0] | string | `""` | |
65+
| role.rules[3].resources[0] | string | `"pods"` | |
66+
| role.rules[3].verbs[0] | string | `"list"` | |
67+
| role.rules[3].verbs[1] | string | `"watch"` | |
68+
| role.rules[3].verbs[2] | string | `"get"` | |
69+
| role.rules[3].verbs[3] | string | `"patch"` | |
70+
| role.rules[4].apiGroups[0] | string | `""` | |
71+
| role.rules[4].resources[0] | string | `"events"` | |
72+
| role.rules[4].verbs[0] | string | `"list"` | |
73+
| role.rules[4].verbs[1] | string | `"watch"` | |
74+
| role.rules[4].verbs[2] | string | `"get"` | |
75+
| secrets.lighthouse.hmac.secretKeyRef.key | string | `"hmac"` | |
76+
| secrets.lighthouse.hmac.secretKeyRef.name | string | `"lighthouse-hmac-token"` | |
77+
| service.annotations | object | `{}` | |
78+
| service.labels | object | `{}` | |
79+
| service.loadBalancerIP | string | `nil` | |
80+
| service.port | int | `80` | |
81+
| service.type | string | `nil` | |
82+
| serviceAccount.annotations | object | `{}` | |
83+
84+
----------------------------------------------
85+
Autogenerated from chart metadata using [helm-docs v1.4.0](https://github.com/norwoodj/helm-docs/releases/v1.4.0)
Binary file not shown.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{{- if and (.Capabilities.APIVersions.Has "jenkins.io/v1/Release") (hasKey .Values.jx "releaseCRD") (.Values.jx.releaseCRD)}}
2+
apiVersion: jenkins.io/v1
3+
kind: Release
4+
metadata:
5+
creationTimestamp: "2021-05-20T13:39:20Z"
6+
deletionTimestamp: null
7+
name: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
8+
spec:
9+
commits:
10+
- author:
11+
12+
name: Vincent Behar
13+
branch: master
14+
committer:
15+
16+
name: Vincent Behar
17+
issueIds:
18+
- "2"
19+
message: |
20+
fix: avoid breaking lighthouse job creation
21+
22+
similar as #2 but for lighthouse
23+
24+
lighthouse creates its jobs in 2 steps:
25+
- for the job with its spec
26+
- and then it updates the status to set the initial state ("triggered")
27+
28+
if we patch the job in the middle of these 2 steps, the status update will fail, and the job creation will fail, and the pipeline won't be triggered
29+
30+
the fix is to wait until the state is defined in the status before patching the job
31+
sha: 71de25e6e9c7722c4f487e8f8708569c13f3c99d
32+
gitHttpUrl: https://github.com/jenkins-x/lighthouse-telemetry-plugin
33+
gitOwner: jenkins-x
34+
gitRepository: lighthouse-telemetry-plugin
35+
name: '{{ .Chart.Name }}'
36+
pullRequests:
37+
- body: "on old tekton v0.11.3 (used in jx v2), the pipelinerun reconciliation might
38+
fail because the tekton controller can't update the pipelinerun, because it
39+
has been changed (by our patching operation).\r\nthis is turn result in multiple
40+
taskruns being created (1 for each reconciliation attempt).\r\n\r\nthe \"fix\"
41+
is to wait until the initial reconciliation is finished, which is after the
42+
tekton controller has updated the PR labels, adding the `tekton.dev/pipeline`
43+
label.\r\nwhich is why here we are now waiting until this label is present before
44+
handling the PR."
45+
creationTimestamp: "2021-05-17T13:49:34Z"
46+
id: "2"
47+
labels:
48+
- url: approved
49+
- url: size/XS
50+
state: closed
51+
title: 'fix: avoid breaking tekton reconciliation'
52+
url: https://github.com/jenkins-x/lighthouse-telemetry-plugin/pull/2
53+
version: 0.0.4
54+
status: {}
55+
56+
{{- end }}

charts/lighthouse-telemetry-plugin/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jx:
2121
image:
2222
repository: gcr.io/jenkinsxio/lighthouse-telemetry-plugin
2323
# If no tag, fallback to the Chart's AppVersion
24-
tag:
24+
tag: 0.0.4
2525
pullPolicy:
2626

2727
deployment:

0 commit comments

Comments
 (0)