Skip to content

Commit

Permalink
fix(agent):Fix dragent.yaml indentation for security block (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroberts87 authored Apr 6, 2023
1 parent 5be65f4 commit 6cefcd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Sysdig Monitor and Secure agent
type: application

# currently matching sysdig 1.14.32
version: 1.6.7
version: 1.6.8

appVersion: 12.13.0

Expand Down
15 changes: 14 additions & 1 deletion charts/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ The Sysdig agent uses a file called `dragent.yaml` to store the configuration.

Using the Helm chart, the default configuration settings can be updated using `sysdig.settings` either
via `--set sysdig.settings.key = value` or in the values YAML file. For example, to eanble Prometheus metrics scraping,
you need this in your `values.yaml` file::
you need this in your `values.yaml` file:

```yaml
sysdig:
Expand All @@ -299,6 +299,19 @@ sysdig:
$ helm install --namespace sysdig-agent sysdig-agent -f values.yaml sysdig/agent
```

### Agent Modes
When directly specifying the agent mode by `sysdig.settitngs.feature.mode`, the values of `monitor.enabled` and
`secure.enabled` must match the provided type. For example, setting `sysdig.settings.feature.mode=secure` would require
the following:
```yaml
monitor:
enabled: false
sysdig:
settings:
feature:
mode: secure
```

## Upgrading Sysdig agent configuration

If you need to upgrade the agent configuration file, first modify the YAML file (in this case we are increasing the
Expand Down
4 changes: 2 additions & 2 deletions charts/agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ For monitor.enabled=false, disable all Monitor specific extras (like app checks,
"statsd") }}
{{- $_ := set $monitorBlock $monitorFeature (dict "enabled" false) }}
{{- end }}
{{- toYaml $monitorBlock }}
{{ toYaml $monitorBlock }}
{{- end -}}
{{- end -}}

Expand Down Expand Up @@ -428,7 +428,7 @@ agent config to prevent a backend push from enabling them after installation.
{{- $_ := set $secureConfig $secureFeature (dict "enabled" false) }}
{{- end }}
{{- end }}
{{- toYaml $secureConfig }}
{{ toYaml $secureConfig }}
{{- end }}

{{ define "agent.k8sColdStart" }}
Expand Down

0 comments on commit 6cefcd1

Please sign in to comment.