Skip to content

Commit

Permalink
[APF-14] Send MANAGED_BY environment variable (#1492)
Browse files Browse the repository at this point in the history
* add variable

* bump chart version

* change var name

* bump version

* bump runner image
  • Loading branch information
ksun154 authored Aug 16, 2024
1 parent ab49c85 commit db2b99a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions charts/private-action-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Datadog changelog

### 0.8.0

* Send MANAGED_BY environment variable to container. Update private action image version to `v0.0.1-alpha28`.

### 0.7.0

* Simplify README instructions to reflect the new Kubernetes UI. Split image value to be consistent with other charts. Fix bug requiring port for Workflow mode.
Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: private-action-runner
description: A Helm chart to deploy the private action runner

type: application
version: 0.7.0
version: 0.8.0
appVersion: "1.22.0"
keywords:
- app builder
Expand Down
4 changes: 2 additions & 2 deletions charts/private-action-runner/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Private Action Runner

![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![AppVersion: v0.0.1-alpha27](https://img.shields.io/badge/AppVersion-v0.0.1--alpha27-informational?style=flat-square)
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![AppVersion: v0.0.1-alpha28](https://img.shields.io/badge/AppVersion-v0.0.1--alpha28-informational?style=flat-square)

This Helm Chart deploys the Datadog Private Action runner inside a Kubernetes cluster. It allows you to use private actions from the Datadog Workflow and Datadog App Builder products. When deploying this chart, you can give permissions to the runner in order to be able to run Kubernetes actions.

Expand Down Expand Up @@ -99,7 +99,7 @@ helm install <RELEASE_NAME> ./private-action-runner -f ./config.yaml

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| common.image | object | `{"repository":"us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner","tag":"v0.0.1-alpha27"}` | Current Datadog Private Action Runner image |
| common.image | object | `{"repository":"us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner","tag":"v0.0.1-alpha28"}` | Current Datadog Private Action Runner image |
| runners[0].config | object | `{"actionsAllowlist":["com.datadoghq.kubernetes.core.listPod"],"appBuilder":{"port":9016},"ddBaseURL":"https://app.datadoghq.com","modes":["workflowAutomation","appBuilder"],"privateKey":"PRIVATE_KEY_FROM_CONFIG","urn":"URN_FROM_CONFIG"}` | Configuration for the Datadog Private Action Runner |
| runners[0].config.actionsAllowlist | list | `["com.datadoghq.kubernetes.core.listPod"]` | List of actions that the Datadog Private Action Runner is allowed to execute |
| runners[0].config.appBuilder.port | int | `9016` | Required port for App Builder Mode |
Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Datadog Private Action Runner

![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![AppVersion: v0.0.1-alpha27](https://img.shields.io/badge/AppVersion-v0.0.1--alpha27-informational?style=flat-square)
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![AppVersion: v0.0.1-alpha28](https://img.shields.io/badge/AppVersion-v0.0.1--alpha28-informational?style=flat-square)

This Helm Chart deploys the Datadog Private Action runner inside a Kubernetes cluster. It allows you to use private actions from the Datadog Workflow and Datadog App Builder products. When deploying this chart, you can give permissions to the runner in order to be able to run Kubernetes actions.

Expand Down
2 changes: 2 additions & 0 deletions charts/private-action-runner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
# See https://nodejs.org/docs/latest-v16.x/api/cli.html#--max-old-space-sizesize-in-megabytes
# 75% of memory limit/request
value: "--max-old-space-size=1536"
- name: MANAGED_BY
value: "helm"
volumes:
- name: secrets
secret:
Expand Down
2 changes: 1 addition & 1 deletion charts/private-action-runner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ common:
# -- Current Datadog Private Action Runner image
image:
repository: us-east4-docker.pkg.dev/datadog-sandbox/apps-on-prem/onprem-runner
tag: v0.0.1-alpha27
tag: v0.0.1-alpha28

runners:
# runners[0].name -- Name of the Datadog Private Action Runner
Expand Down

0 comments on commit db2b99a

Please sign in to comment.