Skip to content

Commit

Permalink
Merge pull request #86 from port-labs/PORT-6197-k-8-s-exporter-add-ba…
Browse files Browse the repository at this point in the history
…ckward-compatability-for-config-map

Update k8s exporter Chart.yaml
  • Loading branch information
yairsimantov20 authored Feb 8, 2024
2 parents 71f6c8d + d86be9f commit 5067689
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/port-k8s-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: port-k8s-exporter
description: A Helm chart for Port Kubernetes Exporter
type: application
version: 0.2.14
appVersion: "0.2.11"
version: 0.2.15
appVersion: "0.2.12"
home: https://getport.io/
sources:
- https://github.com/port-labs/port-k8s-exporter
Expand Down
7 changes: 5 additions & 2 deletions charts/port-k8s-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ port-labs` to see the charts.

Next, prepare your own exporter `config.yaml` file, as explained [below](#Exporter).

Then, use the `config.yaml` and your `PORT_CLIENT_ID` & `PORT_CLIENT_SECRET` to install the chart, with the following command:
Then, use the `config.yaml` and your `PORT_CLIENT_ID` & `PORT_CLIENT_SECRET` to install the chart, with the following
command:

helm install my-port-k8s-exporter port-labs/port-k8s-exporter \
--create-namespace --namespace port-k8s-exporter \
Expand Down Expand Up @@ -53,6 +54,7 @@ The following table lists the configuration parameters of the `port-k8s-exporter
| `createMissingRelatedEntities` | Deprecated. Will be used only for installation, configure this from the ui / migration from older versions. A flag to enable creation of missing related Port Entities. | `false` |
| `verbosity` | A number for the log level verbosity. Set to `-1` to print less info logs. | `0` |
| `createDefaultResources` | If `true`, upon installing the exporter will try to initiate default blueprints & app configuration | `true` |
| `overwriteConfigurationOnRestart` | If `true`, the exporter will overwrite the configuration in Port with the resources provided in `configMap.config` during restart | `false` |
| `eventListener.type` | Event listener type. currently supporting `KAFKA` & `POLLING` | `KAFKA` |
| `eventListener.brokers` | Kafka event listener brokers list | Port EU kafka brokers |
| `eventListener.securityProtocol` | Kafka event listener security protocol | `SASL_SSL` |
Expand Down Expand Up @@ -93,7 +95,8 @@ The following table lists the configuration parameters of the `port-k8s-exporter
| `extraVolumes` | extraVolumes applied to the pod | `[]` |
| `extraVolumeMounts` | extraVolumeMounts applied to the pod | `[]` |

To override values in `helm install`, use either the `--set` flag or the `--set-file` flag to set individual values from a file.
To override values in `helm install`, use either the `--set` flag or the `--set-file` flag to set individual values from
a file.

Alternatively, you can use a YAML file that specifies the values while installing the chart. For example:

Expand Down
2 changes: 2 additions & 0 deletions charts/port-k8s-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
key: state_key
- name: CREATE_DEFAULT_RESOURCES
value: {{ .Values.createDefaultResources | quote }}
- name: OVERWRITE_CONFIGURATION_ON_RESTART
value: {{ .Values.overwriteConfigurationOnRestart | quote }}
- name: EVENT_LISTENER_TYPE
value: {{ .Values.eventListener.type }}
{{- if eq .Values.eventListener.type "POLLING" }}
Expand Down
1 change: 1 addition & 0 deletions charts/port-k8s-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ createMissingRelatedEntities: false
portBaseUrl: https://api.getport.io
verbosity: 0
createDefaultResources: true
overwriteConfigurationOnRestart: false

image:
repository: ghcr.io/port-labs/port-k8s-exporter
Expand Down

0 comments on commit 5067689

Please sign in to comment.