Skip to content

Commit e90e7de

Browse files
authored
Merge pull request #7 from scalyr/bump_agent_version
Bump agent version to v2.1.26
2 parents 8c8c289 + 01f501f commit e90e7de

File tree

9 files changed

+42
-4
lines changed

9 files changed

+42
-4
lines changed

.github/actions/install-helm-chart/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ inputs:
1616
description: "How many seconds to sleep / wait after the pod has been started up for initial ingestion"
1717
required: true
1818
default: 20
19+
image_type:
20+
description: "Docker image type to use (buster, alpine)"
21+
required: true
22+
default: "buster"
23+
1924

2025
runs:
2126
using: "composite"
@@ -26,6 +31,9 @@ runs:
2631
# Set write API key
2732
sed -i "s#REPLACE_ME#${{ inputs.scalyr_api_key }}#g" "${{ inputs.values_file_path }}"
2833
34+
# Set image type
35+
sed -i "s#IMAGE_TYPE#${{ inputs.image_type }}#g" "${{ inputs.values_file_path }}"
36+
2937
# Install chart
3038
helm install --debug --wait --values "${{ inputs.values_file_path }}" scalyr-agent charts/scalyr-agent
3139

.github/workflows/end_to_end_tests.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
github_token: ${{ github.token }}
3131

3232
daemonset_controller_type:
33-
name: Daemonset - k8s ${{ matrix.k8s_version }}
33+
name: Daemonset - k8s ${{ matrix.k8s_version }} - ${{ matrix.image_type }}
3434
runs-on: ubuntu-latest
3535

3636
needs: pre_job
@@ -44,6 +44,9 @@ jobs:
4444
- 'v1.16.4'
4545
- 'v1.17.2'
4646
- 'v1.22.2'
47+
image_type:
48+
- "buster"
49+
- "alpine"
4750

4851
steps:
4952
- name: Checkout Repository
@@ -68,6 +71,7 @@ jobs:
6871
with:
6972
scalyr_api_key: "${{ secrets.SCALYR_WRITE_API_KEY_US }}"
7073
values_file_path: "ci/daemonset-agent-values.yaml"
74+
image_type: "${{ matrix.image_type }}"
7175

7276
- name: Verify Agent Logs are Ingested
7377
env:
@@ -119,7 +123,7 @@ jobs:
119123
# channel: '#cloud-tech'
120124

121125
deployment_controller_type:
122-
name: Deployment - k8s ${{ matrix.k8s_version }}
126+
name: Deployment - k8s ${{ matrix.k8s_version }} - ${{ matrix.image_type }}
123127
runs-on: ubuntu-latest
124128

125129
needs: pre_job
@@ -133,6 +137,9 @@ jobs:
133137
- 'v1.16.4'
134138
- 'v1.17.2'
135139
- 'v1.22.2'
140+
image_type:
141+
- "buster"
142+
- "alpine"
136143

137144
steps:
138145
- name: Checkout Repository
@@ -157,6 +164,7 @@ jobs:
157164
with:
158165
scalyr_api_key: "${{ secrets.SCALYR_WRITE_API_KEY_US }}"
159166
values_file_path: "ci/deployment-agent-values.yaml"
167+
image_type: "${{ matrix.image_type }}"
160168

161169
- name: Verify Logs are Ingested
162170
env:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
For actual scalyr agent changelog, please see https://github.com/scalyr/scalyr-agent-2/blob/master/CHANGELOG.md.
44

5+
## 0.2.8
6+
7+
- Update agent to the latest stable version (v2.1.28). This new agent version Docker Images now utilize Python 3.8.
8+
- Add new ``image.type`` config option with which user can specify which base type image to use (``buster``, ``alpine``). Defaults to ``buster``.
9+
510
## 0.2.7
611

712
- Update agent to the latest stable version (v2.1.25).

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ For chart changelog, please see <https://github.com/scalyr/helm-scalyr/blob/main
7676
| image.pullPolicy | string | `"IfNotPresent"` | |
7777
| image.repository | string | `"scalyr/scalyr-k8s-agent"` | Image to use. Defaults to the official scalyr agent image |
7878
| image.tag | string | `""` | Tag to use. Defaults to appVersion from the chart metadata |
79+
| image.type | string | `"buster"` | Which image distribution to use - "buster" for Debian Buster and "alpine" for Alpine Linux based image. Alpine Linux images are around 50% smaller in size than Debian buster based ones. |
7980
| imagePullSecrets | list | `[]` | Image pull secrets to use if the image is in a private repository |
8081
| livenessProbe.enabled | bool | `true` | set to false to disable default liveness probe which utilizes scalyr-agent-2 status -H command |
8182
| livenessProbe.timeoutSeconds | int | `10` | timeout in seconds after which probe should be considered as failed if there is no response |

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.7
6-
appVersion: 2.1.25
5+
version: 0.2.8
6+
appVersion: 2.1.26
77
keywords:
88
- scalyr
99
- logging

charts/scalyr-agent/templates/daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ spec:
5555
- name: {{ .Chart.Name }}
5656
securityContext:
5757
{{- toYaml .Values.securityContext | nindent 12 }}
58+
{{- if eq .Values.image.type "alpine" }}
59+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}-alpine"
60+
{{- else if eq .Values.image.type "buster"}}
5861
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
62+
{{- else }}
63+
{{- fail "Valid values for .Values.image.type are: buster, alpine" }}
64+
{{- end }}
5965
imagePullPolicy: {{ .Values.image.pullPolicy }}
6066
{{- if .Values.livenessProbe.enabled }}
6167
livenessProbe:

charts/scalyr-agent/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ spec:
5656
- name: {{ .Chart.Name }}
5757
securityContext:
5858
{{- toYaml .Values.securityContext | nindent 12 }}
59+
{{- if eq .Values.image.type "alpine" }}
60+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}-alpine"
61+
{{- else if eq .Values.image.type "buster"}}
5962
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
63+
{{- else }}
64+
{{- fail "Valid values for .Values.image.type are: buster, alpine" }}
65+
{{- end }}
6066
imagePullPolicy: {{ .Values.image.pullPolicy }}
6167
{{- if .Values.livenessProbe.enabled }}
6268
livenessProbe:

charts/scalyr-agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ image:
5151
pullPolicy: IfNotPresent
5252
# image.tag -- Tag to use. Defaults to appVersion from the chart metadata
5353
tag: ""
54+
# image.type -- Which image distribution to use - "buster" for Debian Buster and "alpine" for Alpine Linux based image. Alpine Linux images are around 50% smaller in size than Debian buster based ones.
55+
type: "buster"
5456

5557
# imagePullSecrets -- Image pull secrets to use if the image is in a private repository
5658
imagePullSecrets: []

ci/daemonset-agent-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ scalyr:
66
apiKey: "REPLACE_ME"
77
k8s:
88
verifyKubeletQueries: false
9+
image:
10+
distro: "IMAGE_TYPE"

0 commit comments

Comments
 (0)