Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(k8s-metacollector): Add podLabels #701

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions charts/k8s-metacollector/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
This file documents all notable changes to `k8s-metacollector` Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).

## v0.1.9

* Add podLabels

## v0.1.8

* Bump application version to 0.1.1. For more info see release notes: https://github.com/falcosecurity/k8s-metacollector/releases/tag/v0.1.1
Expand All @@ -23,7 +27,7 @@ numbering uses [semantic versioning](http://semver.org).
## v0.1.4

* Lower `interval` and `scrape_timeout` values for service monitor;
*

## v0.1.3

* Bump application version to 0.1.3
Expand All @@ -45,4 +49,4 @@ numbering uses [semantic versioning](http://semver.org).

### Major Changes

* Initial release of k8s-metacollector Helm Chart. **Note:** the chart uses the `main` tag, since we don't have released the k8s-metacollector yet.
* Initial release of k8s-metacollector Helm Chart. **Note:** the chart uses the `main` tag, since we don't have released the k8s-metacollector yet.
2 changes: 1 addition & 1 deletion charts/k8s-metacollector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.8
version: 0.1.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion charts/k8s-metacollector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The command removes all the Kubernetes resources associated with the chart and d

## Configuration

The following table lists the main configurable parameters of the k8s-metacollector chart v0.1.8 and their default values. See `values.yaml` for full list.
The following table lists the main configurable parameters of the k8s-metacollector chart v0.1.9 and their default values. See `values.yaml` for full list.

## Values

Expand Down Expand Up @@ -110,6 +110,7 @@ The following table lists the main configurable parameters of the k8s-metacollec
| namespaceOverride | string | `""` | namespaceOverride overrides the deployment namespace. It's useful for multi-namespace deployments in combined charts. |
| nodeSelector | object | `{}` | nodeSelector specifies a set of key-value pairs that must match labels assigned to nodes for the Pod to be eligible for scheduling on that node. |
| podAnnotations | object | `{}` | podAnnotations are custom annotations to be added to the pod. |
| podLabels | object | `{}` | podLabels are labels to be added to the pod. |
| podSecurityContext | object | `{"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000}` | These settings are override by the ones specified for the container when there is overlap. |
| podSecurityContext.fsGroup | int | `1000` | fsGroup specifies the group ID (GID) that should be used for the volume mounted within a Pod. |
| podSecurityContext.runAsGroup | int | `1000` | runAsGroup specifies the group ID (GID) that the containers inside the pod should run as. |
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-metacollector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
{{- end }}
labels:
{{- include "k8s-metacollector.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
Expand Down
4 changes: 3 additions & 1 deletion charts/k8s-metacollector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ fullnameOverride: ""
# -- namespaceOverride overrides the deployment namespace. It's useful for multi-namespace deployments in combined charts.
namespaceOverride: ""


# -- serviceAccount is the configuration for the service account.
serviceAccount:
# -- create specifies whether a service account should be created.
Expand All @@ -39,6 +38,9 @@ serviceAccount:
# -- podAnnotations are custom annotations to be added to the pod.
podAnnotations: {}

# -- podLabels are labels to be added to the pod.
podLabels: {}

# -- podSecurityContext holds the security settings for the pod.
# -- These settings are override by the ones specified for the container when there is overlap.
podSecurityContext:
Expand Down
Loading