diff --git a/charts/port-k8s-exporter/Chart.yaml b/charts/port-k8s-exporter/Chart.yaml index 7fc5c35..afdb7e3 100644 --- a/charts/port-k8s-exporter/Chart.yaml +++ b/charts/port-k8s-exporter/Chart.yaml @@ -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 diff --git a/charts/port-k8s-exporter/README.md b/charts/port-k8s-exporter/README.md index 0784df2..d2db594 100644 --- a/charts/port-k8s-exporter/README.md +++ b/charts/port-k8s-exporter/README.md @@ -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 \ @@ -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` | @@ -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: diff --git a/charts/port-k8s-exporter/templates/deployment.yaml b/charts/port-k8s-exporter/templates/deployment.yaml index 70cdff8..fb5761a 100644 --- a/charts/port-k8s-exporter/templates/deployment.yaml +++ b/charts/port-k8s-exporter/templates/deployment.yaml @@ -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" }} diff --git a/charts/port-k8s-exporter/values.yaml b/charts/port-k8s-exporter/values.yaml index 551afaa..65f1f49 100644 --- a/charts/port-k8s-exporter/values.yaml +++ b/charts/port-k8s-exporter/values.yaml @@ -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