Skip to content

Commit 248f65e

Browse files
authored
Merge pull request #3 from scalyr/more_changes
README and other changes
2 parents 4eac607 + 3045b81 commit 248f65e

File tree

11 files changed

+66
-52
lines changed

11 files changed

+66
-52
lines changed

.github/workflows/end_to_end_tests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ on:
88
push:
99
branches:
1010
- main
11-
- end_to_end_tests
1211
pull_request:
1312
branches:
1413
- main
15-
- end_to_end_tests
1614
schedule:
1715
- cron: '0 4 * * *'
1816

.github/workflows/lint_tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ on:
66
push:
77
branches:
88
- main
9-
- end_to_end_tests
109
pull_request:
1110
branches:
1211
- main
13-
- end_to_end_tests
1412
schedule:
1513
- cron: '0 4 * * *'
1614

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
CR_TOKEN: "${{ github.token }}"
3434
with:
3535
charts_dir: charts
36-
# TODO: This can be removed once it's moved to Scalyr org
37-
charts_repo_url: http://www.tomaz.me/helm-scalyr/
3836

3937
- name: Notify Slack on Failure
4038
# NOTE: github.ref is set to pr ref (and not branch name, e.g. refs/pull/28/merge) for pull

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
venv/
33
ci/test-values.yaml
44
charts/*/ci/*-values.yaml
5+
charts/scalyr-agent/README.md

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Scalyr Agent 2 Helm Chart Changes by Release
2+
3+
For actual scalyr agent changelog, please see https://github.com/scalyr/scalyr-agent-2/blob/master/CHANGELOG.md.
4+
5+
## 0.2.4
6+
7+
- Scalyr agent has been updated to v2.1.24.
8+
- Removed unnecessary ports resource definition from the deployment and daemonset template.
9+
- Allow user to define arbitrary agent pod labels using ``podLabels`` config option.
10+
11+
## 0.2.3
12+
13+
- Fix permission mask for the ``kubernetes.json`` file which is written as part of the ConfigMap.

README.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# scalyr-agent Helm Chart
22

3-
[![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
44

55
## Introduction
66

@@ -13,17 +13,17 @@ database service etc.).
1313

1414
Use
1515

16-
helm install <name of release> scalyr-agent --repo https://dodevops.io/helm-scalyr
16+
helm install <name of release> scalyr-agent --repo https://scalyr.github.io/helm-scalyr/
1717

1818
to install this chart.
1919

2020
## Configuration
2121

2222
Two basic configuration keys have to be set up to allow logging to Scalyr cloud:
2323

24-
* scalyr.server: The name of the Scalyr api server (defaults to scalyr.com. use ``eu.scalyr.com`` for EU.)
25-
* scalyr.apiKey: The api key used to authenticate to the Scalyr api server
26-
* scalyr.config: The Scalyr configuration
24+
* ``scalyr.server``: The name of the Scalyr api server (defaults to ``agent.scalyr.com``. use ``eu.scalyr.com`` for EU.)
25+
* ``scalyr.apiKey``: The api key used to authenticate to the Scalyr api server
26+
* ``scalyr.config``: The Scalyr configuration
2727

2828
The scalyr configuration is done using the
2929
[configuration map approach](https://app.scalyr.com/help/scalyr-agent-k8s#modify-config). This is basically a key/value
@@ -33,12 +33,12 @@ for each monitor.
3333
This chart's default values are set to support the monitoring of a Kubernetes cluster. The only value you have
3434
to set manually is:
3535

36-
* config.k8s.clusterName: name of the Kubernetes cluster to monitor (will be visible in the Scalyr UI)
36+
* ``config.k8s.clusterName``: name of the Kubernetes cluster to monitor (will be visible in the Scalyr UI)
3737

3838
If you want to monitor additional things outside of Kubernetes (e.g. Databases), you can set the following values:
3939

40-
* controllerType: For other monitors, it is usually best to set this to "deployment" instead of "daemonset"
41-
* scalyr.k8s.enableLogs and scalyr.k8s.enableEvents: Set this to false to remove the serviceaccount, clusterroles and
40+
* ``controllerType``: For other monitors, it is usually best to set this to "deployment" instead of "daemonset"
41+
* ``scalyr.k8s.enableLogs`` and ``scalyr.k8s.enableEvents``: Set this to false to remove the serviceaccount, clusterroles and
4242
additional mounts to the Scalyr agent pods
4343

4444
## Controller type
@@ -157,15 +157,23 @@ Keep in mind that it may take a while since it needs to pull down a large Docker
157157
first run. This tool also may not work correctly on some operating systems since it relies on
158158
Docker inside Docker functionality for creating kind Kubernetes cluster.
159159

160-
## Thank You
160+
## Publishing new version
161+
162+
New version of the chart is automatically released by the [Release](https://github.com/scalyr/helm-scalyr/actions/workflows/release.yml)
163+
Github Actions workflow on push to main branch when changes are detected in the chart (e.g. chart
164+
content or metadata has been updated).
161165

162-
The chart has been originally developed by [Dennis Ploeger](https://github.com/dploeger). They
163-
have agreed to transfer the ownership to Scalyr so we can continue improving, supporting and
164-
maintaining the chart.
166+
Helm Chart repository is available at https://scalyr.github.io/helm-scalyr/.
165167

166168
## License
167169

168170
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except
169171
in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
170172

171173
http://www.apache.org/licenses/LICENSE-2.0
174+
175+
## Thank You
176+
177+
The chart has been originally developed by [Dennis Ploeger](https://github.com/dploeger) from
178+
[dodevops](https://github.com/dodevops). They have agreed to transfer the ownership to Scalyr so we
179+
can continue developing, improving and maintaining the chart.

README.md.gotmpl

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ template "chart.header" . }}
22
{{ template "chart.deprecationWarning" . }}
33

4-
[![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml) {{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
4+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml) {{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
55

66
## Introduction
77

@@ -10,14 +10,11 @@ cluster. It supports installing the agent with all features required to support
1010
Additionally, it can deploy Scalyr agents which monitor other parts of the infrastructure (for example a hosted
1111
database service etc.).
1212

13-
This chart is not affiliated with Scalyr, Inc. in any way. For support, please open an issue in this
14-
project's [issue tracker](https://github.com/dodevops/helm-scalyr/issues).
15-
1613
## Installation
1714

1815
Use
1916

20-
helm install <name of release> scalyr-agent --repo https://dodevops.io/helm-scalyr
17+
helm install <name of release> scalyr-agent --repo https://scalyr.github.io/helm-scalyr/
2118

2219
to install this chart.
2320

@@ -100,15 +97,17 @@ pip install yamale yamllint
10097
minikube start
10198

10299
# 6. Run actual lint and install task
103-
ct lint --debug --charts . --chart-dirs "$(pwd)"
100+
ct lint --debug --config ci/ct.yaml
104101

105102
# To use valid API key
106-
mkdir -p ci/
107-
echo -e 'scalyr:\n apiKey: "SCALYR_TEST_WRITE_API_KEY"' > ci/test-values.yaml
103+
echo -e 'scalyr:\n apiKey: "SCALYR_TEST_WRITE_API_KEY"' > charts/scalyr-agent/ci//test-values.yaml
108104

109-
ct install --debug --charts . --chart-dirs "$(pwd)"
105+
ct install --debug
110106
```
111107

108+
You can find more example configs which are used by integration and end to
109+
end tests in ``ci/`` directory.
110+
112111
As an alternative to manually installing those tools and setting up the environment, you can also
113112
use [act](https://github.com/nektos/act) tool which allows you to run GHA workflow locally inside
114113
Docker containers as shown below.
@@ -121,3 +120,25 @@ act
121120
Keep in mind that it may take a while since it needs to pull down a large Docker image during the
122121
first run. This tool also may not work correctly on some operating systems since it relies on
123122
Docker inside Docker functionality for creating kind Kubernetes cluster.
123+
124+
## Publishing new version
125+
126+
New version of the chart is automatically released by the [Release](https://github.com/scalyr/helm-scalyr/actions/workflows/release.yml)
127+
Github Actions workflow on push to main branch when changes are detected in the chart (e.g. chart
128+
content or metadata has been updated).
129+
130+
Helm Chart repository is available at https://scalyr.github.io/helm-scalyr/.
131+
132+
## License
133+
134+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except
135+
in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
136+
137+
http://www.apache.org/licenses/LICENSE-2.0
138+
139+
## Thank You
140+
141+
142+
The chart has been originally developed by [Dennis Ploeger](https://github.com/dploeger) from
143+
[dodevops](https://github.com/dodevops). They have agreed to transfer the ownership to Scalyr so we
144+
can continue developing, improving and maintaining the chart.

charts/scalyr-agent/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: scalyr-agent
33
description: A Helm chart for deploying the Scalyr agent
44
type: application
5-
version: 0.2.3
6-
appVersion: 2.1.20
5+
version: 0.2.4
6+
appVersion: 2.1.24
77
keywords:
88
- scalyr
99
- logging

charts/scalyr-agent/templates/daemonset.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ spec:
5757
{{- toYaml .Values.securityContext | nindent 12 }}
5858
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
5959
imagePullPolicy: {{ .Values.image.pullPolicy }}
60-
ports:
61-
- name: http
62-
containerPort: 80
63-
protocol: TCP
6460
env:
6561
- name: "SCALYR_SERVER"
6662
value: {{ .Values.scalyr.server }}

charts/scalyr-agent/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ spec:
5858
{{- toYaml .Values.securityContext | nindent 12 }}
5959
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6060
imagePullPolicy: {{ .Values.image.pullPolicy }}
61-
ports:
62-
- name: http
63-
containerPort: 80
64-
protocol: TCP
6561
env:
6662
- name: "SCALYR_SERVER"
6763
value: {{ .Values.scalyr.server }}

0 commit comments

Comments
 (0)