Skip to content

Commit 5067689

Browse files
Merge pull request #86 from port-labs/PORT-6197-k-8-s-exporter-add-backward-compatability-for-config-map
Update k8s exporter Chart.yaml
2 parents 71f6c8d + d86be9f commit 5067689

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

charts/port-k8s-exporter/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: port-k8s-exporter
33
description: A Helm chart for Port Kubernetes Exporter
44
type: application
5-
version: 0.2.14
6-
appVersion: "0.2.11"
5+
version: 0.2.15
6+
appVersion: "0.2.12"
77
home: https://getport.io/
88
sources:
99
- https://github.com/port-labs/port-k8s-exporter

charts/port-k8s-exporter/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ port-labs` to see the charts.
2121

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

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

2627
helm install my-port-k8s-exporter port-labs/port-k8s-exporter \
2728
--create-namespace --namespace port-k8s-exporter \
@@ -53,6 +54,7 @@ The following table lists the configuration parameters of the `port-k8s-exporter
5354
| `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` |
5455
| `verbosity` | A number for the log level verbosity. Set to `-1` to print less info logs. | `0` |
5556
| `createDefaultResources` | If `true`, upon installing the exporter will try to initiate default blueprints & app configuration | `true` |
57+
| `overwriteConfigurationOnRestart` | If `true`, the exporter will overwrite the configuration in Port with the resources provided in `configMap.config` during restart | `false` |
5658
| `eventListener.type` | Event listener type. currently supporting `KAFKA` & `POLLING` | `KAFKA` |
5759
| `eventListener.brokers` | Kafka event listener brokers list | Port EU kafka brokers |
5860
| `eventListener.securityProtocol` | Kafka event listener security protocol | `SASL_SSL` |
@@ -93,7 +95,8 @@ The following table lists the configuration parameters of the `port-k8s-exporter
9395
| `extraVolumes` | extraVolumes applied to the pod | `[]` |
9496
| `extraVolumeMounts` | extraVolumeMounts applied to the pod | `[]` |
9597

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

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

charts/port-k8s-exporter/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ spec:
5757
key: state_key
5858
- name: CREATE_DEFAULT_RESOURCES
5959
value: {{ .Values.createDefaultResources | quote }}
60+
- name: OVERWRITE_CONFIGURATION_ON_RESTART
61+
value: {{ .Values.overwriteConfigurationOnRestart | quote }}
6062
- name: EVENT_LISTENER_TYPE
6163
value: {{ .Values.eventListener.type }}
6264
{{- if eq .Values.eventListener.type "POLLING" }}

charts/port-k8s-exporter/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ createMissingRelatedEntities: false
77
portBaseUrl: https://api.getport.io
88
verbosity: 0
99
createDefaultResources: true
10+
overwriteConfigurationOnRestart: false
1011

1112
image:
1213
repository: ghcr.io/port-labs/port-k8s-exporter

0 commit comments

Comments
 (0)