Skip to content

Commit

Permalink
Merge pull request #140 from port-labs/PORT-10510-add-base-port-url-p…
Browse files Browse the repository at this point in the history
…aram-to-agent

Send PORT_API_BASE_URL parameter
  • Loading branch information
omby8888 authored Sep 17, 2024
2 parents ded807d + d28fda3 commit 6606b19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/port-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: port-agent
description: A Helm chart for Port Agent
type: application
version: 0.8.2
appVersion: "v0.7.3"
version: 0.8.3
appVersion: "v0.7.6"
home: https://getport.io/
sources:
- https://github.com/port-labs/port-agent
Expand Down
19 changes: 10 additions & 9 deletions charts/port-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ port-labs` to see the charts.
Then, install the chart.
For example, to use the `KafkaToWebhookStreamer` Streamer, use the following command:

helm install my-port-agent port-labs/port-agent \
helm upgrade --install my-port-agent port-labs/port-agent \
--create-namespace --namespace port-agent \
--set env.normal.STREAMER_NAME=KafkaToWebhookStreamer \
--set env.normal.PORT_ORG_ID=YOUR_PORT_ORG_ID
--set env.normal.PORT_API_BASE_URL=https://api.getport.io \
--set env.normal.KAFKA_CONSUMER_GROUP_ID=YOUR_KAFKA_CONSUMER_GROUP_ID \
--set env.secret.PORT_CLIENT_ID=YOUR_PORT_CLIENT_ID \
--set env.secret.PORT_CLIENT_SECRET=YOUR_PORT_CLIENT_SECRET
Expand Down Expand Up @@ -59,8 +60,8 @@ The following table lists the configuration parameters of the `port-agent` chart
| `podServiceAccount.name` | Service account to attach to the pod. | `null` |
| `env.normal.STREAMER_NAME` | Streamer name, one of: [`KafkaToWebhookStreamer`] - **Required** | `"KafkaToWebhookStreamer"` |
| `env.normal.PORT_ORG_ID` | Your Port org id - **Required** | `""` |
| `env.normal.PORT_API_BASE_URL` | Port API base url | `"https://api.getport.io"` |
| `env.normal.KAFKA_CONSUMER_GROUP_ID` | Kafka consumer group id - **Required if using any Kafka streamer** | `""` |
| `env.normal.KAFKA_CONSUMER_BROKERS` | Kafka consumer brokers | `"b-1-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-2-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-3-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196"` |
| `env.normal.KAFKA_CONSUMER_SECURITY_PROTOCOL` | Kafka consumer security protocol | `"SASL_SSL"` |
| `env.normal.KAFKA_CONSUMER_AUTHENTICATION_MECHANISM` | Kafka consumer authentication mechanism | `"SCRAM-SHA-512"` |
| `env.normal.KAFKA_CONSUMER_AUTO_OFFSET_RESET` | Kafka consumer auto offset reset | `"largest"` |
Expand All @@ -74,13 +75,13 @@ The following table lists the configuration parameters of the `port-agent` chart
| `nodeSelector` | NodeSelector applied to the pod | `{}` |
| `tolerations` | Tolerations applied to the pod | `[]` |
| `affinity` | Affinity applied to the pod | `{}` |
| `selfSignedCertificate` | Self Signed certificate for the agent | `{}` |
| `selfSignedCertificate.enabled` | Enable self-signed certificate trust for the agent | `false` |
| `selfSignedCertificate.certificate` | The value of the self-signed certificate (only when `selfSignedCertificate.enabled=true`) | `""` |
| `selfSignedCertificate.secret` | Secret with self-signed certificate | `{}` |
| `selfSignedCertificate.secret.useExistingSecret` | Enable this if you wish to use your own secret with the self-signed certificate | `false` |
| `selfSignedCertificate.secret.key` | The key in the existing self-signed certificate secret | `crt` |
| `selfSignedCertificate.secret.name` | The name of an existing secret containing the self-signed certificate | `""` |
| `selfSignedCertificate` | Self Signed certificate for the agent | `{}` |
| `selfSignedCertificate.enabled` | Enable self-signed certificate trust for the agent | `false` |
| `selfSignedCertificate.certificate` | The value of the self-signed certificate (only when `selfSignedCertificate.enabled=true`) | `""` |
| `selfSignedCertificate.secret` | Secret with self-signed certificate | `{}` |
| `selfSignedCertificate.secret.useExistingSecret` | Enable this if you wish to use your own secret with the self-signed certificate | `false` |
| `selfSignedCertificate.secret.key` | The key in the existing self-signed certificate secret | `crt` |
| `selfSignedCertificate.secret.name` | The name of an existing secret containing the self-signed certificate | `""` |

To override values in `helm install`, use either the `--set` flag or the `--set-file` flag to set individual values from
a file.
Expand Down
2 changes: 1 addition & 1 deletion charts/port-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ env:
GITLAB_URL: "https://gitlab.com/"
STREAMER_NAME: "KAFKA"
PORT_ORG_ID: ""
PORT_API_BASE_URL: 'https://api.getport.io'
KAFKA_CONSUMER_GROUP_ID: ""
KAFKA_CONSUMER_BROKERS: "b-1-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-2-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196,b-3-public.publicclusterprod.t9rw6w.c1.kafka.eu-west-1.amazonaws.com:9196"
KAFKA_CONSUMER_SECURITY_PROTOCOL: "SASL_SSL"
KAFKA_CONSUMER_AUTHENTICATION_MECHANISM: "SCRAM-SHA-512"
KAFKA_CONSUMER_AUTO_OFFSET_RESET: "largest"
Expand Down

0 comments on commit 6606b19

Please sign in to comment.