Skip to content

Commit

Permalink
feat: helm allow disabling prometheus rules (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Oct 19, 2023
1 parent 240cb9c commit 2951fa0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
11 changes: 5 additions & 6 deletions charts/coralogix-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coralogix-operator

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.11](https://img.shields.io/badge/AppVersion-0.1.11-informational?style=flat-square)
![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.18](https://img.shields.io/badge/AppVersion-0.1.18-informational?style=flat-square)

Coralogix Operator Helm Chart

Expand All @@ -25,8 +25,8 @@ Kubernetes: `>=1.16.0-0`
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| coralogixOperator | object | `{"image":{"repository":"coralogixrepo/coralogix-operator","tag":""},"region":"","resources":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}}` | Coralogix operator container config |
| coralogixOperator.image | object | `{"repository":"coralogixrepo/coralogix-operator","tag":""}` | Coralogix operator Image |
| coralogixOperator | object | `{"image":{"pullPolicy":"IfNotPresent","repository":"coralogixrepo/coralogix-operator","tag":""},"prometheusRules":{"enabled":true},"region":"","resources":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}}` | Coralogix operator container config |
| coralogixOperator.image | object | `{"pullPolicy":"IfNotPresent","repository":"coralogixrepo/coralogix-operator","tag":""}` | Coralogix operator Image |
| coralogixOperator.region | string | `""` | Coralogix Account Region |
| coralogixOperator.resources | object | `{}` | resource config for Coralogix operator |
| coralogixOperator.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}` | Security context for Coralogix operator container |
Expand All @@ -51,8 +51,7 @@ Kubernetes: `>=1.16.0-0`
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | If not set and create is true, a name is generated using the fullname template |
| tolerations | list | `[]` | ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |

----------------------------------------------
-----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

## Installation
Expand All @@ -74,4 +73,4 @@ To uninstall the helm chart you can run:

```bash
helm delete <my-release>
```
```
3 changes: 2 additions & 1 deletion charts/coralogix-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
kubectl.kubernetes.io/default-container: {{ .Chart.Name }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -54,6 +54,7 @@ spec:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
- --prometheus-rule-controller={{.Values.coralogixOperator.prometheusRules.enabled}}
env:
- name: CORALOGIX_REGION
value: {{ .Values.coralogixOperator.region | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/coralogix-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ kubeRbacProxy:

# -- Coralogix operator container config
coralogixOperator:
# Set this is to true if Prometheus Operator is installed and
# PrometheusRule CRD is available in cluster.
prometheusRules:
enabled: true
# -- Coralogix operator Image
image:
repository: coralogixrepo/coralogix-operator
Expand Down
8 changes: 4 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Alert is the Schema for the alerts API
<td>true</td>
</tr>
<tr>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta">metadata</a></b></td>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta">metadata</a></b></td>
<td>object</td>
<td>Refer to the Kubernetes API documentation for the fields of the `metadata` field.</td>
<td>true</td>
Expand Down Expand Up @@ -4621,7 +4621,7 @@ RecordingRuleGroupSet is the Schema for the recordingrulegroupsets API
<td>true</td>
</tr>
<tr>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta">metadata</a></b></td>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta">metadata</a></b></td>
<td>object</td>
<td>Refer to the Kubernetes API documentation for the fields of the `metadata` field.</td>
<td>true</td>
Expand Down Expand Up @@ -4925,7 +4925,7 @@ RuleGroup is the Schema for the rulegroups API
<td>true</td>
</tr>
<tr>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta">metadata</a></b></td>
<td><b><a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta">metadata</a></b></td>
<td>object</td>
<td>Refer to the Kubernetes API documentation for the fields of the `metadata` field.</td>
<td>true</td>
Expand Down Expand Up @@ -6200,4 +6200,4 @@ RuleGroupStatus defines the observed state of RuleGroup
</td>
<td>true</td>
</tr></tbody>
</table>
</table>

0 comments on commit 2951fa0

Please sign in to comment.