You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Helm chart for installing the Kosli K8S reporter as a cronjob.
10
10
The chart allows you to create a Kubernetes cronjob and all its necessary RBAC to report running images to Kosli at a given cron schedule.
@@ -13,30 +13,66 @@ The chart allows you to create a Kubernetes cronjob and all its necessary RBAC t
13
13
14
14
- A Kubernetes cluster (minimum supported version is `v1.21`)
15
15
- Helm v3.0+
16
-
- Create a secret for the Kosli API token which will be used for reporting. You can create a secret by running: `kubectl create secret generic <secret-name> --from-literal=<secret-key>=<your-api-key>`
16
+
- If you want to report artifacts from just one namespace, you need to have permissions to `get` and `list` pods in that namespace.
17
+
- If you want to report artifacts from multiple namespaces or entire cluster, you need to have cluster-wide permissions to `get` and `list` pods.
17
18
18
19
## Installing the chart
19
20
20
21
To install this chart via the Helm chart repository:
| image.tag | string |`"v2.10.13"`| the kosli reporter image tag, overrides the image tag whose default is the chart appVersion. |
85
+
| image.tag | string |`"v2.11.3"`| the kosli reporter image tag, overrides the image tag whose default is the chart appVersion. |
50
86
| kosliApiToken.secretKey | string |`"key"`| the name of the key in the secret data which contains the Kosli API token |
51
87
| kosliApiToken.secretName | string |`"kosli-api-token"`| the name of the secret containing the kosli API token |
52
88
| nameOverride | string |`""`| overrides the name used for the created k8s resources. If `fullnameOverride` is provided, it has higher precedence than this one |
53
-
| podAnnotations | object |`{}`||
89
+
| podAnnotations | object |`{}`|any custom annotations to be added to the cronjob|
54
90
| reporterConfig.dryRun | bool |`false`| whether the dry run mode is enabled or not. In dry run mode, the reporter logs the reports to stdout and does not send them to kosli. |
55
91
| reporterConfig.httpProxy | string |`""`| the http proxy url |
56
92
| reporterConfig.kosliEnvironmentName | string |`""`| the name of Kosli environment that the k8s cluster/namespace correlates to |
57
93
| reporterConfig.kosliOrg | string |`""`| the name of the Kosli org |
58
-
| reporterConfig.namespaces | string |`""`| the namespaces which represent the environment. It is a comma separated list of namespace name regex patterns. e.g. `^prod$,^dev-*` reports for the `prod` namespace and any namespace that starts with `dev-` leave this unset if you want to report what is running in the entire cluster |
94
+
| reporterConfig.namespaces | string |`""`| the namespaces which represent the environment. It is a comma separated list of namespace names. leave this unset if you want to report what is running in the entire cluster |
59
95
| resources.limits.cpu | string |`"100m"`| the cpu limit |
60
96
| resources.limits.memory | string |`"256Mi"`| the memory limit |
61
97
| resources.requests.memory | string |`"64Mi"`| the memory request |
62
98
| serviceAccount.annotations | object |`{}`| annotations to add to the service account |
63
99
| serviceAccount.create | bool |`true`| specifies whether a service account should be created |
64
100
| serviceAccount.name | string |`""`| the name of the service account to use. If not set and create is true, a name is generated using the fullname template |
101
+
| serviceAccount.permissionScope | string |`"cluster"`| specifies whether to create a cluster-wide permissions for the service account or namespace-scoped permissions. allowed values are: [cluster, namespace]|
65
102
66
103
----------------------------------------------
67
-
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
104
+
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
Copy file name to clipboardExpand all lines: charts/k8s-reporter/_templates.gotmpl
+46-9Lines changed: 46 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,36 +7,73 @@ The chart allows you to create a Kubernetes cronjob and all its necessary RBAC t
7
7
8
8
- A Kubernetes cluster (minimum supported version is `v1.21`)
9
9
- Helm v3.0+
10
-
- Create a secret for the Kosli API token which will be used for reporting. You can create a secret by running: `kubectl create secret generic <secret-name> --from-literal=<secret-key>=<your-api-key>`
10
+
- If you want to report artifacts from just one namespace, you need to have permissions to `get`and`list` pods in that namespace.
11
+
- If you want to report artifacts from multiple namespaces or entire cluster, you need to have cluster-wide permissions to `get`and`list` pods.
11
12
{{- end }}
12
13
13
14
{{ define"extra.install" -}}
14
15
## Installing the chart
15
16
16
17
To install this chart via the Helm chart repository:
Copy file name to clipboardExpand all lines: charts/k8s-reporter/values.yaml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ image:
8
8
# -- the kosli reporter image pull policy
9
9
pullPolicy: IfNotPresent
10
10
# -- the kosli reporter image tag, overrides the image tag whose default is the chart appVersion.
11
-
tag: "v2.10.13"
11
+
tag: "v2.11.3"
12
12
13
13
# -- overrides the name used for the created k8s resources. If `fullnameOverride` is provided, it has higher precedence than this one
14
14
nameOverride: ""
@@ -18,6 +18,8 @@ fullnameOverride: ""
18
18
serviceAccount:
19
19
# -- specifies whether a service account should be created
20
20
create: true
21
+
# -- specifies whether to create a cluster-wide permissions for the service account or namespace-scoped permissions. allowed values are: [cluster, namespace]
22
+
permissionScope: cluster
21
23
# -- annotations to add to the service account
22
24
annotations: {}
23
25
# -- the name of the service account to use.
@@ -39,8 +41,7 @@ reporterConfig:
39
41
# -- the name of Kosli environment that the k8s cluster/namespace correlates to
40
42
kosliEnvironmentName: ""
41
43
# -- the namespaces which represent the environment.
42
-
# It is a comma separated list of namespace name regex patterns.
43
-
# e.g. `^prod$,^dev-*` reports for the `prod` namespace and any namespace that starts with `dev-`
44
+
# It is a comma separated list of namespace names.
44
45
# leave this unset if you want to report what is running in the entire cluster
45
46
namespaces: ""
46
47
# -- whether the dry run mode is enabled or not. In dry run mode, the reporter logs the reports to stdout and does not send them to kosli.
0 commit comments