Skip to content

Commit

Permalink
feat: add node affinity to events values (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-nikhildua authored Jan 31, 2024
1 parent b33cf16 commit 289f6a0
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 27 deletions.
2 changes: 1 addition & 1 deletion charts/events/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: events
description: Observe kubernetes event collection
type: application
version: 0.1.20
version: 0.1.21
appVersion: v0.11.1
dependencies:
- name: endpoint
Expand Down
4 changes: 3 additions & 1 deletion charts/events/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# events

![Version: 0.1.20](https://img.shields.io/badge/Version-0.1.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.1](https://img.shields.io/badge/AppVersion-v0.11.1-informational?style=flat-square)
![Version: 0.1.21](https://img.shields.io/badge/Version-0.1.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.1](https://img.shields.io/badge/AppVersion-v0.11.1-informational?style=flat-square)

Observe kubernetes event collection

Expand All @@ -20,6 +20,8 @@ Observe kubernetes event collection

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | `"observeinc.com/unschedulable"` | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | `"DoesNotExist"` | |
| customLabels | object | `{}` | |
| global.observe | object | `{}` | |
| image.kube_cluster_info.pullPolicy | string | `"Always"` | |
Expand Down
9 changes: 3 additions & 6 deletions charts/events/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ spec:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- {key: observeinc.com/unschedulable, operator: DoesNotExist}
- {key: kubernetes.io/os, operator: NotIn, values: [windows]}
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "kube-events.serviceAccountName" . }}
initContainers:
- name: kube-cluster-info
Expand Down
7 changes: 7 additions & 0 deletions charts/events/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ resources:
memory: 256Mi

tolerations: {}

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- {key: observeinc.com/unschedulable, operator: DoesNotExist}
2 changes: 1 addition & 1 deletion charts/logs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: logs
description: Observe logs collection
type: application
version: 0.1.17
version: 0.1.18
dependencies:
- name: fluent-bit
version: 0.43.0
Expand Down
4 changes: 2 additions & 2 deletions charts/logs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# logs

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

Observe logs collection

Expand All @@ -15,7 +15,7 @@ Observe logs collection
| Repository | Name | Version |
|------------|------|---------|
| file://../endpoint | endpoint | 0.1.8 |
| https://fluent.github.io/helm-charts | fluent-bit | 0.42.0 |
| https://fluent.github.io/helm-charts | fluent-bit | 0.43.0 |

## Values

Expand Down
10 changes: 5 additions & 5 deletions charts/stack/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
dependencies:
- name: logs
repository: file://../logs
version: 0.1.17
version: 0.1.18
- name: metrics
repository: file://../metrics
version: 0.3.13
- name: events
repository: file://../events
version: 0.1.20
version: 0.1.21
- name: proxy
repository: file://../proxy
version: 0.1.4
- name: traces
repository: file://../traces
version: 0.2.12
digest: sha256:abddea18d961718c332c92d12a73db2ac1767546ea803445784aac8e564346f9
generated: "2024-01-28T00:17:21.657996003Z"
version: 0.2.13
digest: sha256:7bf26d91090abe5762259763cb49fc224cb9d41c46d8682e54e742bbd6da9b1d
generated: "2024-01-30T18:21:43.611895-08:00"
8 changes: 4 additions & 4 deletions charts/stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ apiVersion: v2
name: stack
description: Observe Kubernetes agent stack
type: application
version: 0.4.17
version: 0.4.18
dependencies:
- name: logs
version: 0.1.17
version: 0.1.18
repository: file://../logs
condition: logs.enabled
- name: metrics
version: 0.3.13
repository: file://../metrics
condition: metrics.enabled
- name: events
version: 0.1.20
version: 0.1.21
repository: file://../events
condition: events.enabled
- name: proxy
version: 0.1.4
repository: file://../proxy
condition: proxy.enabled
- name: traces
version: 0.2.12
version: 0.2.13
repository: file://../traces
condition: traces.enabled
maintainers:
Expand Down
8 changes: 4 additions & 4 deletions charts/stack/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# stack

![Version: 0.4.17](https://img.shields.io/badge/Version-0.4.17-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.4.18](https://img.shields.io/badge/Version-0.4.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Observe Kubernetes agent stack

Expand All @@ -14,11 +14,11 @@ Observe Kubernetes agent stack

| Repository | Name | Version |
|------------|------|---------|
| file://../events | events | 0.1.20 |
| file://../logs | logs | 0.1.15 |
| file://../events | events | 0.1.21 |
| file://../logs | logs | 0.1.18 |
| file://../metrics | metrics | 0.3.13 |
| file://../proxy | proxy | 0.1.4 |
| file://../traces | traces | 0.2.12 |
| file://../traces | traces | 0.2.13 |

## Values

Expand Down
2 changes: 1 addition & 1 deletion charts/traces/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: traces
description: Observe OpenTelemetry trace collection
type: application
version: 0.2.12
version: 0.2.13
dependencies:
- name: opentelemetry-collector
version: 0.80.0
Expand Down
4 changes: 2 additions & 2 deletions charts/traces/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# traces

![Version: 0.2.12](https://img.shields.io/badge/Version-0.2.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.2.13](https://img.shields.io/badge/Version-0.2.13-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Observe OpenTelemetry trace collection

Expand All @@ -16,7 +16,7 @@ Observe OpenTelemetry trace collection
|------------|------|---------|
| file://../endpoint | endpoint | 0.1.8 |
| file://../proxy | proxy | 0.1.4 |
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.78.1 |
| https://open-telemetry.github.io/opentelemetry-helm-charts | opentelemetry-collector | 0.80.0 |

## Values

Expand Down

0 comments on commit 289f6a0

Please sign in to comment.